Commit graph

252 commits

Author SHA1 Message Date
Martin Schaffner 73cd3552d0 avoid assigments between unsigned and signed char, MPW does not like these 2004-08-01 16:28:33 +00:00
Martin Schaffner 113141a4c9 use portable CFILE instead of POSIX file in write_bmp 2004-08-01 14:22:54 +00:00
Martin Schaffner 4d398d1fa6 New file for supporting compilation with MPW for carbon (Mac OS 9) 2004-08-01 13:08:34 +00:00
Martin Schaffner e55a95f124 add "#ifdef macintosh" for carbon target 2004-08-01 13:01:39 +00:00
Bradley Bell c66de1feb7 XCode compilability fixes 2004-05-31 08:33:41 +00:00
Bradley Bell abaf2a8ba9 added XCode project files 2004-05-31 07:50:17 +00:00
Bradley Bell 47600f2f1f make libpng optional 2004-05-23 00:21:06 +00:00
Bradley Bell 012659cb9e fix compile when GL_NV_register_combiners isn't defined (d1x r1.40) 2004-05-22 23:06:58 +00:00
Bradley Bell 2c9986da72 fix strict-aliasing errors (d1x r1.13) 2004-05-22 23:01:20 +00:00
Bradley Bell ad5e1dc5c3 Fix mismatched arg types in the win32 code (d1x r1.8, key_arch.c r1.2) 2004-05-22 22:58:09 +00:00
Bradley Bell 89feeb17e2 made opengl use 32bpp screen mode by default, add option to use 16bpp (d1x r1.4, r1.16, r1.34) 2004-05-22 22:43:56 +00:00
Bradley Bell de10ddc84e allow for texture dimensions of 1, and fix ogl replacement texture paletted->rgb conversion alpha problem (d1x r1.43) 2004-05-22 22:29:20 +00:00
Bradley Bell 751aa6bbf1 add opengl replacement texture support (requires libpng and zlib) (d1x r1.42, r1.1, r1.10, r1.4, r1.1) 2004-05-22 22:24:32 +00:00
Bradley Bell d1a591cef7 fix win32 GL_NV_register_combiners build stuff (d1x r1.39, r1.7) 2004-05-22 21:55:33 +00:00
Bradley Bell 62b2385312 opengl hardware super-transparency support using GL_NV_register_combiners (d1x r1.38, r1.41, r1.6, r1.26, r1.7) 2004-05-22 21:48:48 +00:00
Bradley Bell 7a31dd4804 function prototypes 2004-05-22 09:21:24 +00:00
Bradley Bell 2a095b8f8b use GL_RGB for non-transparent textures, and fix fonts not having transparent flag set (wouldn't get paletted) (d1x r1.15, r1.37, r1.40, r1.25) 2004-05-22 09:15:28 +00:00
Bradley Bell b805367364 don't try to use paletted textures with mipmapping since gluBuild2DMipmaps can't handle it (d1x r1.39) 2004-05-22 08:47:14 +00:00
Bradley Bell 9bf950500b add ogl paletted texture support (d1x r1.36, r1.38, r1.5, r1.24) 2004-05-22 08:43:11 +00:00
Bradley Bell 29cd30b9a8 fix phantom hat when used with a joystick without one, since the code ignored the JOYCAPS_HASPOV flag (d1x r1.5) 2004-05-22 08:00:04 +00:00
Bradley Bell c423c903b8 fix possibility of saving incomplete .tga screenshots if the entire thing wasn't written in one call to write() (d1x r1.35) 2004-05-22 07:55:34 +00:00
Bradley Bell 43017a3445 fix persistent sounds (fans, etc) volume/pan info not being updated on win32 (d1x r1.11) 2004-05-22 07:51:33 +00:00
Bradley Bell 81996c4811 remove some redundancy by not needing to do SoundSlots[i].playing = 0; in addition to DS_release_slot. Also clean up some indenting of DS_release_slot calls. And make DS_release_slot return 1 when a sound is already not playing, in addition to when a sound was killed. (d1x r1.10) 2004-05-22 07:42:18 +00:00
Bradley Bell 80bbbb6a7e fix crash/hang when using -nojoystick in linux version (d1x r1.5) 2004-05-22 07:31:38 +00:00
Bradley Bell d9b48e875d use JOY_NUM_AXES instead of 4 in joy_(get|set)_cal_vals (d1x r1.3, r1.4) 2004-05-22 01:40:14 +00:00
Bradley Bell 84c8953ddb patch from Steven Mueller for using more than 4 joystick devices in linux (d1x r1.3, r1.3, r1.3) 2004-05-22 01:32:13 +00:00
Bradley Bell f459fd912b digisound fixes (d1x r1.7) 2004-05-22 00:50:42 +00:00
Bradley Bell 6469a06ecb dos gcc 2.95 asm fixes (d1x r1.2) 2004-05-21 01:31:49 +00:00
Bradley Bell ee7e591823 added new arg and printfs for mouse driver problems (d1x r1.2, r1.2) 2004-05-21 00:48:14 +00:00
Bradley Bell 4e862e361b fix a couple of defines 2004-05-20 23:38:20 +00:00
Bradley Bell a147d6d25d fixed the config bug where it'd always put in some weird axis (d1x r1.3) 2004-05-20 23:10:17 +00:00
Bradley Bell 1cececd6e1 set win32 icon to icon from resource file 2004-05-20 23:06:24 +00:00
Bradley Bell 153e29b049 win32: fixed space key not working in messages (d1x r1.2) 2004-05-20 22:53:53 +00:00
Bradley Bell cde8b4c703 w32: check -no(mouse|joystick) within respective _init() funcs (d1x r1.2, r1.6) 2004-05-20 19:02:58 +00:00
Bradley Bell af46f29a9a fixed win32 gr_*_mode funcs that I forgot to change the arg type for (d1x r1.5) 2004-05-20 18:48:44 +00:00
Bradley Bell 4e39740519 altsounds (d1x r1.6) 2004-05-20 09:17:18 +00:00
Bradley Bell 7e8d7d298c fixed a major memory leak and removed a bit of redundancy (d1x r1.5) 2004-05-20 08:29:58 +00:00
Bradley Bell 7b1c66d2a1 call digi_reset_digi_sounds in digi_close to fix crashing (d1x r1.4) 2004-05-20 08:23:08 +00:00
Bradley Bell 1e9f0618f2 win32's digi_start_sound was not calling DS_release_slot after setting .playing=0, resulting in a memleak. Thanks to Stefan Ring for catching this (d1x r1.9) 2004-05-20 08:07:44 +00:00
Bradley Bell d4236338d8 remove joySetCapture in win32 joystick code, apparently it was somehow causing some joysticks (Sidewinder Precision 2) to only turn when the stick was moving, but not when at turned but held stationary. And it was completely unused anyway. Thanks to Stefan Ring for (somehow) finding this 2004-05-20 08:03:39 +00:00
Bradley Bell b15d0296d8 minor cleanup, use same for loop for filling r, g, and b values (d1x r1.15) 2004-05-20 07:49:21 +00:00
Bradley Bell a47da9acb6 fix funky ogl gammaramp palette when getting hit sometimes (didn't handle negative palette steps) (d1x r1.34) 2004-05-20 07:47:28 +00:00
Bradley Bell 5177356ea0 add caching of weapon inner models, screen shatter effects, robot explosions and weapons, and some more always present stuff. Also clean up ogl_cache_weapon_textures calling. (d1x r1.37) 2004-05-20 07:43:57 +00:00
Bradley Bell 1de277460d add -renderstats command-line arg to activate RENDERSTATS (d1x r1.36, r1.15, r1.33) 2004-05-20 07:25:22 +00:00
Bradley Bell fa4b1da8b7 fix last commit (d1x r1.35) 2004-05-20 07:16:53 +00:00
Bradley Bell ca09768f00 add RENDERSTATS counter for number of textures loaded after texture caching stage (d1x r1.34) 2004-05-20 07:13:20 +00:00
Bradley Bell 794d1749a7 use GL_INDEX_BITS to get bpp for color buffer for renderstats (d1x r1.33) 2004-05-20 07:02:54 +00:00
Bradley Bell ad42e7c895 add anisotropic texture filtering suport (d1x r1.33, r1.32, r1.23, r1.32) 2004-05-20 05:16:21 +00:00
Bradley Bell 730b28ef61 make RENDERSTATS show size of color/depth buffer too (d1x r1.31) 2004-05-20 05:02:53 +00:00
Bradley Bell 12a67e5014 utilize hardware multitexturing support if possible (requires GL_NV_texture_env_combine4 extension) (d1x r1.32, r1.30, r1.4, 1.22) 2004-05-20 03:31:36 +00:00