Commit Graph

536 Commits (be9c517d507adcd2b149162431c5d302e1d6fd28)

Author SHA1 Message Date
Armin Burgmeier 3da1963f31 Fix lighting of two-sided polygons 2010-07-20 01:33:49 +02:00
Richard Gerum 1c9435df55 pressing up while hangling means stop. So jumping to the ceiling can't accidentally move the clonk. (#310) 2010-07-16 18:40:43 +02:00
Nicolas Hake b5e1ae2a65 Remove automatic scaling to bounding box (#321) 2010-07-10 21:49:31 +02:00
Nicolas Hake ea2ab2740a Re-enable mesh scaling (#320) 2010-07-08 16:21:44 +02:00
Nicolas Hake d8b97e964d win32: Fix build 2010-06-29 14:10:42 +02:00
Günther Brammer 288cd032b1 Merge. 2010-06-29 01:06:00 +02:00
Günther Brammer e109df627c Remove a lot of old obsolete palette code
Hardcode the few remaining palette references instead. We might want to
include some method to customize some colors again, but not for debug
display and such things.
2010-06-29 01:02:16 +02:00
Günther Brammer 9a4c56fc10 More startup simplification 2010-06-29 01:02:14 +02:00
Günther Brammer 623cb9476c Fix scenario local Graphics.c4g 2010-06-29 01:02:14 +02:00
Günther Brammer a4976fb39c Don't clear fonts and graphics after a game, they are reloaded if necessary
This should speed up the return from a game to the main menu.
2010-06-29 01:02:14 +02:00
Armin Burgmeier 8dfa75a298 Apply GFXOV_MODE_ObjectPicture overlay transformations to all layers of source picture 2010-06-29 00:12:52 +02:00
Armin Burgmeier deb21f7f82 Apply DrawTransform to GFXOV_MODE_ObjectPicture overlays (#268) 2010-06-28 22:34:34 +02:00
Günther Brammer a7389bcef1 X11: Initial window size from config 2010-06-27 02:42:48 +02:00
Günther Brammer 087a02cc2e Make messageboard cgo simply fullscreen
The messageboard drawing code simply draws the messageboard from the bottom
of the cgo upwards, it doesn't matter what the top is.
2010-06-27 02:42:48 +02:00
Günther Brammer 46aa12def4 Merge C4GUI::Resource into C4GraphicsResource
Both classes did the same thing at the same time, with the only difference
that C4GUI::Resource was vaguely more associated with GUI stuff. Some
time ago, C4GUI::Resource could be freed during the game, but not anymore.

This saves some lines of code and one redundant class, but shouldn't change
anything besides progress bar being textured a little earlier during
startup.
2010-06-27 02:42:48 +02:00
Günther Brammer c0ce4d613b Make the startup progress bar more accurate
This should also simplify the startup code a bit. Not enough,
but it's a start.
2010-06-27 02:42:48 +02:00
Günther Brammer db6f4f502a Remove GDI font renderer, simplify font loader
Instead of having a list of fonts, simply look up the font file if
necessary, and cache the freetype library state for one font.
2010-06-27 02:30:47 +02:00
Günther Brammer 08b4858bd9 Fonts: Move the FontLoader into the global namespace
This speeds up recompilation when C4Fonts.h changes.
2010-06-27 02:21:23 +02:00
Günther Brammer 31e3293b84 Fonts: Remove support for prerendered bitmap fonts 2010-06-27 02:21:23 +02:00
Günther Brammer 06c62b31bd Script: Only warn about missing functions in the Parser
Non-failsafe calls will abort at runtime, but they might
only be used in a never taken branch, so unconditionally
aborting the function is wrong.
2010-06-27 02:03:23 +02:00
Armin Burgmeier cb39d6c228 Sort triangles by nearest Z instead of mean Z (#303) 2010-06-26 21:20:10 +02:00
Armin Burgmeier 55ced45be2 Fix crash when new chars need to be rendered after returning to main menu
Bugs #261, #276, #234, probably also #136, #183
2010-06-23 00:27:06 +02:00
Sven Eberhardt 470e6043a2 WIN32 warning fix 2010-06-22 22:19:31 +02:00
Nicolas Hake 3579a948b1 Update binary mesh loader file format documentation 2010-06-22 00:39:54 +02:00
Armin Burgmeier 4619179fe1 Remove debug logs on mesh loading (#308) 2010-06-22 00:19:42 +02:00
Stan 61a3e4569c win32: Use unrotated display modes only (#306) 2010-06-11 09:21:30 +02:00
Armin Burgmeier e282de55f1 Add support for scene_blend in material scripts (#303) 2010-06-09 00:55:34 +02:00
Armin Burgmeier 99f0a43cff Create records and savegames at user path (#250) 2010-05-22 20:49:42 +02:00
Nicolas Hake 59f5ee646c C4Real: Rename FIXEDnnn functions to C4REALnnn 2010-05-19 05:19:49 +02:00
Sven Eberhardt 65b73b7177 SendCursorPos controls issue CON_CursorPos (#289) 2010-05-07 15:57:56 +02:00
Nicolas Hake e27ecd59b5 Rename FIXED to C4Real
There's already a typedef struct _FIXED FIXED; in wingdi.h, which conflicts
with the definition of FIXED in OpenClonk.
2010-05-04 17:35:18 +02:00
Tobias Zwick 5c44c466e0 disabled MouseAutoScroll (PeterW-Zoom) again. Set it to 1 in the config to continue to test it 2010-04-25 03:37:37 +02:00
Sven Eberhardt 142cb65658 Do not issue disabled controls into queue (#269) 2010-04-29 00:46:38 +02:00
Armin Burgmeier 9f65838ae8 Fix a couple of compiler warnings 2010-04-28 23:43:25 +02:00
Armin Burgmeier 2197121e30 Show ingame instead of picture graphics for GFXOV_MODE_Base mesh overlays (#279) 2010-04-28 21:53:40 +02:00
Armin Burgmeier 2527f9316c Don't exceed 60 degrees of FOV in either direction
This makes a difference in scaling for non-quadratic target areas.
Related to #279.
2010-04-28 21:30:15 +02:00
Nicolas Hake 8a6370e434 Allow arbitrary resolutions when windowed (#277) 2010-04-28 14:06:17 +02:00
Sven Eberhardt bad8a3f3d3 Win32 build fix (#280) 2010-04-28 12:51:33 +02:00
Günther Brammer 824c69e94b Simplify messageboard code, remove bottom border 2010-04-28 03:24:16 +02:00
Günther Brammer 0f4e88db87 Improve the default Zoom and Zoom changes
The default Zoom should now show a piece of the landscape about the size of
one Clonk's vision.
2010-04-27 01:32:45 +02:00
Günther Brammer 349e463abd Fall back to the default font if the configured one doesn't load 2010-04-27 02:54:37 +02:00
Günther Brammer 4b503d3bea Remove editor configuration 2010-04-27 03:20:38 +02:00
Günther Brammer e8be520da5 Make StdBuf compile with g++ 4.5
This time without falling into the trap of ommitting the Foo(const Foo&) constructor.
2010-04-27 01:20:30 +02:00
Martin Plicht 4902679b56 DirectExec and C4ControlScript support executing script expressions that access variables and parameters of the parent context (used for watch expressions while debugging) 2010-04-26 22:16:45 +02:00
Martin Plicht 99cbfecdff Debugger: Execute scripts using the calling object 2010-04-26 20:16:04 +02:00
Martin Plicht faffb26b95 C4ControlScript::Execute informs the debugger about evaluated scripts 2010-04-26 20:13:36 +02:00
Martin Plicht 1d9911ced7 Debugger: Fix typo + change format of the VAR command result 2010-03-22 10:54:41 +01:00
Armin Burgmeier 056e200cca Create initial objects after pointer denumeration (#257) 2010-04-26 19:43:57 +02:00
Nicolas Hake 45a1acac6c merge backed-out changeset 2010-04-26 16:32:46 +02:00
Nicolas Hake 00e1298927 Backed out changeset 9384f37fca80
Re-breaking g++ 4.5, but at the same time un-breaking g++ 4.3, as well
as MSVC 2010 (Beta 2, at least). Sorry, g++ 4.5 users.

This wouldn't have happened with std::string.
2010-04-26 16:32:10 +02:00