1
0
forked from mirrors/0ad

Commit Graph

  • 668794e61d add sem_msgwait_np for philip/use with atlas. add API fail reporting for sem_* networkInternal - remove E* error codes; rely on system <errno.h> header wposix: add all SUSv3 error codes; value = that of CRT (where available), otherwise the linux value janwas 2005-11-03 07:26:38 +00:00
  • 7bfe647366 Atlas: Initial terrain-selection panel. Ykkrosh 2005-11-03 03:49:57 +00:00
  • e527c66fda document DynArray and add self-test. fix 2 tiny little bugs. janwas 2005-11-03 00:42:37 +00:00
  • d3441f3f48 This was SVN commit r3082. Mythos_Ruler 2005-11-03 00:07:13 +00:00
  • 62c0dc6fc2 Another grass texture. Should be one of my last for a while. I think e now have a good variety of grasses to fill out most biomes. Mythos_Ruler 2005-11-03 00:06:30 +00:00
  • aa70714a9f huge dehackification: moribund key input code (featuring static buffer and goto) now uses queue and is much simpler. use message crackers to simplify wndproc and delegate responsibility. grouped keyboard/mouse/app activation code together. janwas 2005-11-02 19:10:44 +00:00
  • 3a5969f126 boil 5 state indicator flags down to 3, and store them as flags instead of bitfield janwas 2005-11-02 06:35:34 +00:00
  • 32ee913936 Gallic Fortress Wijitmaker 2005-11-02 02:04:10 +00:00
  • ab0afbb299 Celt special building Wijitmaker 2005-11-01 10:33:09 +00:00
  • d41283ab52 This was SVN commit r3075. Mythos_Ruler 2005-11-01 06:26:14 +00:00
  • f1877c0493 First draft of the celt turf wall - deletion of some old unused celt meshes. Wijitmaker 2005-11-01 04:41:50 +00:00
  • 9f7de4bd3a Celt wall entities Wijitmaker 2005-11-01 04:43:35 +00:00
  • 74bf76d523 fix bug #71 - was a double-free (both ~CRenderer and UnloadResources were calling UnloadWaterTextures) janwas 2005-10-31 18:57:03 +00:00
  • 6af5888866 replace g_active with more clear g_app_has_focus and g_app_minimized reinstate g_keys - realized that atlas mode cannot call SDL_GetKeyState main: use g_app_minimized etc. to use up less CPU time when app isn't active (makes debugging more bearable) janwas 2005-10-31 18:36:36 +00:00
  • 8c76dc34af g_keys[] has been made redundant by SDL's key array; use SDL_GetKeyState instead to get address of new keys array fix W4 warnings (unused param and type conversion mostly) janwas 2005-10-31 16:26:51 +00:00
  • 7078279ca2 Atlas: Altered some terminology (command vs message etc). Allowed information to pass from engine to UI. Ykkrosh 2005-10-31 03:36:50 +00:00
  • 2452e29f0d remove key- and mouse-state-clear code (previously called after alt+tab out). wsdl now takes care of this: by maintaining its own key array+sending up events for all currently down keys; and by capturing the mouse on each click. janwas 2005-10-31 01:15:49 +00:00
  • be44dc842e Fix memory leaks in the new model code. prefect 2005-10-30 21:31:10 +00:00
  • f2b88d7792 GameSetup: "-autostart=mapname" command-line parameter, for faster testing. Ykkrosh 2005-10-30 21:30:52 +00:00
  • 416c7fe4ba Get rid of errors (selection can have size 0). prefect 2005-10-30 21:09:27 +00:00
  • 695d966788 ia32_memcpy now returns the destination pointer just like the standard library version does. Fixed improper non-use of delete[] in the new model code. prefect 2005-10-30 21:01:42 +00:00
  • dd031d5367 Force proper target file name in automatically generated dependency file. prefect 2005-10-30 20:58:12 +00:00
  • 20d038efda profiling indicates memcpy is a bottleneck, so globally replace all of them with memcpy2 (hand-optimized). depending on transfer size, this is 10%..300% faster. also made memcpy2 into a macro instead of thunk function because vc7 was still generating a jump. janwas 2005-10-30 16:19:20 +00:00
  • 252bd478c4 Fix wgl extension function pointers (I hope). Thanks for pointing it out, Philipp. prefect 2005-10-30 01:51:16 +00:00
  • 501acc65f5 Extension function pointers are renamed from glXyzARB to pglXyzARB to avoid conflicts with system header files. prefect 2005-10-30 01:18:15 +00:00
  • 5582e4b890 Added resetUpdateVars(), so that selection/property update handler is actually refreshed and so improves performance like it's meant to. ;) Thanks for spotting that, Philip. Acumen 2005-10-30 01:06:04 +00:00
  • 875cb3bca1 Add ARB_vertex_shader specific functions to glext_funcs.h Add an "instancing" model renderer to improve rendering of non-transparent, unanimated models. This renderer is used when the vertexshader path is rendering path is used. prefect 2005-10-30 00:22:22 +00:00
  • 998622ff54 Initialize some previously uninitialized variables. prefect 2005-10-29 22:50:54 +00:00
  • 15d9278af6 tex, mem: fix refcnt issue that is the possible cause of bug#70! huge thanks to philip, who localized the problem to tex_wrap/memory not getting freed. janwas 2005-10-29 22:29:55 +00:00
  • a7d6725f45 allocators, config: add CONFIG_OVERRUN_PROTECTION - allows disabling the lengthy work done by OverrunProtector h_mgr: clarification of fn_store code mem.cpp: fix recursive taking of a lock janwas 2005-10-29 21:40:41 +00:00
  • f323726118 allocators: bugfix, unlock mem range before calling dtor mem: made thread-safe; use OverrunProtector for Ptr2H janwas 2005-10-29 18:30:39 +00:00
  • bc78557f10 move boilerplate overrun protect code into OverrunProtector janwas 2005-10-29 17:58:26 +00:00
  • abee717a26 Few more updates for the celt buildings Wijitmaker 2005-10-29 09:26:17 +00:00
  • 5d821cc925 wrap placement new in #include "nommgr.h" so that it works with memory tracker enabled janwas 2005-10-29 03:18:27 +00:00
  • 8c437850e6 allocators: add include guard and posix.h (needed for PROT_*) debug: add debug_is_code_ptr and debug_is_stack_ptr config: add CONFIG_OMIT_FP (needed for ia32_stackwalk). h_mgr: hyperparanoid overrun detection straightjacket for key2idx - now safe to use at any time and any unexpected changes cause access violation. ia32: add ia32_get_call_target, which disassembles backwards and checks for a valid CALL instruction + its target wdbg_sym: add win-specific walk stack function. it's quite simple and requires EBP frames (hence CONFIG_OMIT_FP). rationale: dbghelp requires ~30 seconds (!) to start up. recent changes (tracking malloc callers via debug_get_nth_caller) made this happen on every run, so added a fast-path stack walker to avoid this. janwas 2005-10-29 02:32:36 +00:00
  • e8540b29bd Celt Structure updates Wijitmaker 2005-10-29 00:27:34 +00:00
  • b10534d224 Transform normals using the original bone matrix instead of the inverse of the transpose. This assumes orthogonal transformations (which we have exclusively, as far as I can tell), but is significantly faster, because calculating the inverse is slow. prefect 2005-10-28 19:25:47 +00:00
  • b5c489e1d5 This was SVN commit r3040. Mythos_Ruler 2005-10-28 06:00:02 +00:00
  • 900cb559e1 Trying out some different stone textures. Mythos_Ruler 2005-10-28 05:15:51 +00:00
  • 271b66965d This was SVN commit r3038. Mythos_Ruler 2005-10-28 05:14:44 +00:00
  • 813738c295 add debug_warn_err analogous to debug_assert_failed that reports an error code for use with CHECK_ERR et al. (as discussed in bug#70) janwas 2005-10-28 02:56:35 +00:00
  • bbda296289 TerrainProperties: Use CTerrainPropertiesPtr (boost::shared_ptr) instead of CTerrainProperties*, to fix (slightly inelegantly) memory leaks. Ykkrosh 2005-10-28 01:43:16 +00:00
  • e3b0f20d4e change requested by philip: debug_printf "tags" are now followed by '|' instead of ':' because something like "func: i am blowing up" is rather common. janwas 2005-10-27 16:53:41 +00:00
  • e56f8341dc This was SVN commit r3034. Mythos_Ruler 2005-10-27 08:46:46 +00:00
  • b155861284 Made some new parched grass textures and actors Mythos_Ruler 2005-10-27 08:45:59 +00:00
  • 7fa2770203 tex_dds now supports uncompressed images. also armor-plated the loader and split up decompression vs dds format code. janwas 2005-10-27 00:51:30 +00:00
  • ae87ca51aa Celtic Fortress, and scale fix for the Celtic tower (to match the other towers in height) Wijitmaker 2005-10-26 09:55:49 +00:00
  • 582a8cceed This was SVN commit r3030. Mythos_Ruler 2005-10-26 07:15:06 +00:00
  • 95fb49053e This was SVN commit r3029. Mythos_Ruler 2005-10-26 07:14:32 +00:00
  • 65abf65da0 Deletion of the UI backup art - it has been moved to the ~art/guibackup now if needed (down with the .png files!) Wijitmaker 2005-10-26 02:32:11 +00:00
  • 3ad3d32a82 Fortress fix for odd prop problem Wijitmaker 2005-10-26 02:25:42 +00:00
  • 8d6d6a1a1e Wireframe hotkey (default = Alt+W) cycles through wireframe modes for terrain and models now. prefect 2005-10-26 01:43:49 +00:00
  • a357c7334e Props remember who they're attached to and other mostly bone matrix related things that should fix the heads-detached-from-bodies problem. prefect 2005-10-26 01:03:28 +00:00
  • 2842098a49 portrait updates for the Celts and Greeks Wijitmaker 2005-10-25 08:46:18 +00:00
  • 409443d678 oops, wrong helmet Wijitmaker 2005-10-25 07:02:14 +00:00
  • 3548e09076 Themistocles update from Michaels request Wijitmaker 2005-10-25 06:55:40 +00:00
  • 2f341f5210 Sharpened up Themistocles' shield a bit. Mythos_Ruler 2005-10-25 06:37:23 +00:00
  • 724d072b1f This was SVN commit r3020. Mythos_Ruler 2005-10-25 05:36:26 +00:00
  • 4574c24a3a This was SVN commit r3019. Mythos_Ruler 2005-10-25 05:15:09 +00:00
  • 40e3ffa490 This was SVN commit r3018. Mythos_Ruler 2005-10-25 05:13:50 +00:00
  • 404dc10d6a This was SVN commit r3017. Mythos_Ruler 2005-10-25 05:13:15 +00:00
  • 7355310011 This was SVN commit r3016. Mythos_Ruler 2005-10-25 05:12:40 +00:00
  • 84ec0ac4a4 This was SVN commit r3015. Mythos_Ruler 2005-10-25 05:11:50 +00:00
  • 777fc4b7b5 The things CheeZy and I threw together for the Pond Battle screenshot. Mythos_Ruler 2005-10-25 05:11:07 +00:00
  • b7df6f7fbf Do not sort transparent models by default. prefect 2005-10-25 02:22:22 +00:00
  • d977bc27dc Eek.. apparently, I committed in the wrong subdirectory. prefect 2005-10-25 02:00:09 +00:00
  • 11d6b08360 GUI updates converting from .png to .dds Wijitmaker 2005-10-25 01:29:42 +00:00
  • 82ee484821 Massive rewrite/refactoring of the model rendering system. prefect 2005-10-25 01:43:07 +00:00
  • d17e48ad99 Updated to fix .png to .dds changes Wijitmaker 2005-10-25 01:12:59 +00:00
  • 178ad741b9 DevIL: Improved quality of DXT5 alpha compression. Ykkrosh 2005-10-24 23:45:52 +00:00
  • 0a202da843 also add code here to reset buttons when alt+tabbing out, analogous to CGUI (thanks to Philip for mentioning the problem) janwas 2005-10-24 21:43:39 +00:00
  • 0d6dd7836d fix assumption that SDL_BUTTON < 3 add ClearMouseState to reset buttons when alt+tabbing out (thanks to Philip for mentioning the problem and Gustav for telling me how to fix it :D) janwas 2005-10-24 21:10:45 +00:00
  • d49dd25385 ogl, h_mgr: tag-ified debug_printf string for use with new filter debug: filter mechanism now usable. added docs janwas 2005-10-24 17:38:22 +00:00
  • 7cb003f18c Greek shield changes - yet again Wijitmaker 2005-10-24 10:17:26 +00:00
  • 8aa0783b97 debug_putws was causing trouble on linux when mixing char and wchar_t writes to file. accordingly, have debug_wprintf do wchar->utf8 conversion (done there instead of in debug_putws because it's needed for the filtering logic as well) and call its char* equivalent and remove debug_putws. janwas 2005-10-24 03:20:54 +00:00
  • ea7f4054c4 Forgot to change a JSFunctionProperty getter function to the new prototype. prefect 2005-10-24 02:53:50 +00:00
  • 7362d746d5 Function property Getter/Setters now take a JSContext parameter. prefect 2005-10-24 02:32:44 +00:00
  • 52a8793450 Atlas: Bits of tool-related code. Ykkrosh 2005-10-24 01:53:03 +00:00
  • 034985c71f app_hooks.cpp: Remove "inline" from ah_xyz functions (gcc doesn't export those functions when inline). debug_putws converts to non-wide characters before printing. prefect 2005-10-24 01:43:37 +00:00
  • b80be29eab sdl: remove complicated mouse button check/workaround; that's now done in Interact.cpp (which makes the assumptions being tested) janwas 2005-10-24 00:06:08 +00:00
  • 359f55700a file_open: cleanup vfs_tree: move bucket allocator to allocators.cpp allocators: add matrix self-test zip: remove redundant timing code and add CHECK_ZFILE everywhere ogl_tex: implement app hook for overriding gl upload caps tex: add CHECK_TEX everywhere TextureManager: only call LoadTextures once (instead of for each file type) debug: add hook for translating error messages; add filtering mechanism to only show interesting debug_printfs (WIP). restructured code: debug_puts is the sysdep part, while debug_printf does filtering and then calls that janwas 2005-10-23 23:57:59 +00:00
  • 5bf15b107d Hero Thermistocles! Wijitmaker 2005-10-23 05:26:49 +00:00
  • aba61336b7 Ooops forgot some xenophon files Wijitmaker 2005-10-22 10:17:35 +00:00
  • c10b413f65 Hero Xenophon, Player colorized the Greek colored shields, Shield back for round greek shields. Wijitmaker 2005-10-22 10:02:26 +00:00
  • c0eb742373 Changed player colors to be more consitant in terms of brightness and hue Wijitmaker 2005-10-22 09:59:47 +00:00
  • a5a9f4b657 g++ compilation fixes. prefect 2005-10-21 18:32:16 +00:00
  • 26d2fc71ad loaders: increase timeout interval (less time wasted in main loop during loading) vfs: move public functions into vfs.cpp to avoid confusion (except vfs_mount in vfs_mount.cpp, but that's obvious) h_mgr: fix bug in filename display causing dir names to be truncated main/gamesetup: replace 2 bools with flags; remove Atlas trampoline functions (clutters up main.cpp) atlas: use GameSetup.h instead of extern .. janwas 2005-10-21 18:01:21 +00:00
  • 011aadb3df Added a new dry grass actor. Mythos_Ruler 2005-10-21 08:36:55 +00:00
  • d43aa11d36 file: free cached IO blocks to avoid them appearing as "leaks" vfs: now always check filter in VDir (Not only in debug mode) vfs_tree: free VFS nodes to avoid them appearing as "leaks". bugfix in bucket allocator - wasn't coping with exactly filled buckets correctly all Handle users: add to_string method that writes the interesting parts of a resource's user data to string. h_mgr: show this information when a handle is closed ogl_tex: add ogl_tex_find add 2 timer clients mem: now record address of function that allocated memory GameSetup: fix shutdown order Renderer: allow freeing individual alpha map textures (we cache the composite) janwas 2005-10-21 07:47:38 +00:00
  • 32cfc6d807 minimap: now use GUI event system instead of polling. fixes broken click feature. janwas 2005-10-20 15:27:39 +00:00
  • 1ff1045a7c Explicit minimap colours for each terrain, to improve loading times. Ykkrosh 2005-10-19 23:03:44 +00:00
  • a81d7adee4 restructure terrain texture loading to first get a filelist, then do work for each file. this is slightly more efficient than iterating over dir and doing work for each (due to less seeks) but intended to fix an issue where files are created while iterating over the directory (this confuses VFS). the problem had come up after adding terrain XML files. janwas 2005-10-19 22:39:54 +00:00
  • bed9363bfe lib/input.h was old+bad code. fixed in_add_handler return type to enum; renamed EV_PASS to IN_PASS; no longer include sdl.h from other code (instead rely on input.h) janwas 2005-10-20 17:44:56 +00:00
  • 39060e7900 cinput, ogl_shader, h_mgr, vfs: stomp on warnings ia32, sysdep: add rint() minimap: saw TODO on GetMapSpaceCoords and sped it up by 15% using rintf and precalculating scaleX timer: add indication of how often something was billed (helps measure stuff called an indeterminate number of times) janwas 2005-10-19 20:26:53 +00:00
  • 353260f8ec This was SVN commit r2971. janwas 2005-10-19 17:42:37 +00:00
  • 364e36128e g_YMinOffset declared in gameview.h instead of extern elsewhere terrain: made const-correct lib: Add round_up_to_pow2 minimap: cleanup. split user input and DrawViewRect out of Draw; add m_Camera; made pointers const; user local x,x2 variables instead of writing out m_CachedActualSize janwas 2005-10-19 17:16:34 +00:00
  • a953a8ef57 debug_assert now displays function name also. this neatly avoids the need for __func__ in every debug_warn, which also breaks on Linux. all such constructions have been removed. janwas 2005-10-19 06:29:55 +00:00
  • 02341916dc Minimap: refactor if() spanning 200 lines into if(!) return cause of minimap click no longer working has been found: GlobalInputHandler isn't getting called due to incorrect order of registration. fix is pending. janwas 2005-10-19 06:11:21 +00:00
  • 5213ca6f56 use "standard" _control87 _EM* flag names instead of our own names; also #undef (required since system header values aren't what we want) janwas 2005-10-19 03:22:13 +00:00
  • b17fbf003d -move app-specific stuff out of lib/ and into "hooks". see new lib/app_hooks* (note X macro goodness) -move tex_codec stuff out of tex.cpp and into tex_codec.cpp -tex_codec: use linked list of codecs instead of array (simplifies code and removes limit) -ogl_tex: add override mechanism for s3tc/automipmapgen extension detect -tired of keeping of debug_warn text in sync with function name; now use __func__ everywhere (and emulate that with __FUNCTION__ on MSC) -add ONCE_NOT (opposite of ONCE) -fix 3!! stupid bugs in ia32_control87, its caller and the header that were canceling each other out. float exceptions now enabled except for "inexact result" (too common). (update: nicolai had already fixed 2 of these) janwas 2005-10-19 03:06:54 +00:00