--- d1x/arch/ogl ---


Filename: glx.c
Revision 1.17donut 2002/04/02 19:27:37+4 -0
add ogl_setbrightness_internal stub for glx
Show difference between Revision 1.16 and 1.17
Revision 1.16donut 2000/02/07 10:13:12+1 -0
include u_mem.h
Show difference between Revision 1.15 and 1.16
Revision 1.15donut 2000/01/12 09:01:04+1 -0
set wm hints after resize
Show difference between Revision 1.14 and 1.15
Revision 1.14donut 1999/10/18 06:57:59+114 -4
added X window hints for glx code
Show difference between Revision 1.13 and 1.14
Revision 1.13donut 1999/10/08 10:55:55+24 -31
ogl updates
Show difference between Revision 1.12 and 1.13
Revision 1.12donut 1999/10/07 21:30:06+2 -2
ogl alttexmerge, sub_bitmap handling, new texture handling struct, renderstats & badtextures cheats, fixed viewport position, runtime ogl loading, etc
Show difference between Revision 1.11 and 1.12
Revision 1.11donut 1999/09/30 23:02:27+1 -3
opengl direct support for ingame and normal menus, fonts as textures, and automap support
Show difference between Revision 1.10 and 1.11
Revision 1.10donut 1999/09/29 07:49:01+6 -6
added code to prevent possible freeing of not yet allocated cursor/pixmap
Show difference between Revision 1.9 and 1.10
Revision 1.9donut 1999/09/29 01:18:20+41 -7
added hiding of cursor and grabbing of pointer in GLX "fullscreen" mode
Show difference between Revision 1.8 and 1.9
Revision 1.8donut 1999/09/25 02:54:26+1 -1
fixed squished sprite problem, and made viewport resize correctly
Show difference between Revision 1.7 and 1.8
Revision 1.7donut 1999/09/24 07:31:42+2 -0
optimized state changes with some handy defines to only change when needed
Show difference between Revision 1.6 and 1.7
Revision 1.6donut 1999/09/24 03:37:29+30 -2
preliminary GLX fullscreen support
Show difference between Revision 1.5 and 1.6
Revision 1.5donut 1999/09/23 03:03:46+1 -1
glx: fixed key release problem
Show difference between Revision 1.4 and 1.5
Revision 1.4donut 1999/09/22 01:53:31+21 -17
GLX: uses XResizeWindow instead of creating a new window each time
Show difference between Revision 1.3 and 1.4
Revision 1.3donut 1999/09/21 04:05:55+5 -2
mostly complete OGL implementation (still needs bitmap handling (reticle), and door/fan textures are corrupt)
Show difference between Revision 1.2 and 1.3
Revision 1.2donut 1999/09/16 03:00:10+1 -0
include event.h in proper file to remove undefined func for init_gii_xwin
Show difference between Revision 1.1 and 1.2
Revision 1.1donut 1999/09/16 02:57:09None
preliminary OpenGL support (GLX window creation, and a kludge to draw the framebuffer with ogl)

Filename: gr.c
Revision 1.41donut 2004/05/23 02:35:25+2 -0
restore gamma ramp on exit since some drivers don't do it automatically (eg, ati's fglrx linux driver)
Show difference between Revision 1.40 and 1.41
Revision 1.40donut 2004/02/26 04:14:03+4 -1
fix compile when GL_NV_register_combiners isn't defined
Show difference between Revision 1.39 and 1.40
Revision 1.39donut 2003/07/06 01:51:16+1 -0
fix win32 GL_NV_register_combiners build stuff
Show difference between Revision 1.38 and 1.39
Revision 1.38donut 2003/07/06 00:45:21+15 -2
opengl hardware super-transparency support using GL_NV_register_combiners
Show difference between Revision 1.37 and 1.38
Revision 1.37donut 2003/07/02 07:26:21+4 -2
use GL_RGB for non-transparent textures, and fix fonts not having transparent flag set (wouldn't get paletted)
Show difference between Revision 1.36 and 1.37
Revision 1.36donut 2003/07/01 14:58:22+17 -0
add OGL paletted texture support
Show difference between Revision 1.35 and 1.36
Revision 1.35donut 2003/03/09 19:50:30+1 -1
fix possibility of saving incomplete .tga screenshots if the entire thing wasn't written in one call to write()
Show difference between Revision 1.34 and 1.35
Revision 1.34donut 2002/07/08 00:10:02+3 -3
fix funky ogl gammaramp palette when getting hit sometimes (didn't handle negative palette steps)
Show difference between Revision 1.33 and 1.34
Revision 1.33donut 2002/04/22 20:15:35+13 -2
add anisotropic texture filtering support
Show difference between Revision 1.32 and 1.33
Revision 1.32donut 2002/04/06 17:21:25+9 -5
utilize hardware multitexturing support if possible (requires GL_NV_texture_env_combine4 extension)
Show difference between Revision 1.31 and 1.32
Revision 1.31donut 2002/04/01 08:04:53+30 -13
implement brightness/palette effects in OGL using SetGammaRamp, much faster than the hack that was being used. currently SDL only (though not too hard too add to WGL, not as easy as sdl)
Show difference between Revision 1.30 and 1.31
Revision 1.30donut 2002/04/01 01:58:17+4 -0
add -gl_trilinear OGL command line option
Show difference between Revision 1.29 and 1.30
Revision 1.29donut 2002/03/26 21:26:49+5 -5
fix off by .5 errors in ogl_upixelc and ogl_ulinec
Show difference between Revision 1.28 and 1.29
Revision 1.28donut 2002/03/26 09:02:07+2 -2
fix off-by-one error in ogl_urect, right and bottom are inclusive not exclusive
Show difference between Revision 1.27 and 1.28
Revision 1.27donut 2001/07/27 17:27:12+6 -0
added OGL check for matrox cards to disable GL_INTENSITY4
Show difference between Revision 1.26 and 1.27
Revision 1.26donut 2000/10/28 09:31:08+21 -0
OGL support for fullscreen toggle key while in menus
Show difference between Revision 1.25 and 1.26
Revision 1.25donut 2000/02/07 10:14:21+5 -1
fix gr_init mem leak
Show difference between Revision 1.24 and 1.25
Revision 1.24donut 2000/01/13 08:55:05+2 -2
moved some debug statements inside ifdefs where they should be
Show difference between Revision 1.23 and 1.24
Revision 1.23donut 2000/01/12 10:22:45+37 -5
WGL: fixed fullscreen toggle crash, alt-tab works, fullscreen doesn't resize stuff, setable refresh rate, first attempt at multi-texturing
Show difference between Revision 1.22 and 1.23
Revision 1.22donut 1999/11/21 13:00:09+7 -31
Changed screen_mode format. Now directly encodes res into a 32bit int, rather than using arbitrary values.
Show difference between Revision 1.21 and 1.22
Revision 1.21donut 1999/11/10 10:58:23+1 -1
fix segfault on shutdown while in opengl fullscreen mode
Show difference between Revision 1.20 and 1.21
Revision 1.20donut 1999/10/20 07:34:07+5 -0
opengl rendered reticle, and better g3_draw_sphere
Show difference between Revision 1.19 and 1.20
Revision 1.19donut 1999/10/18 07:26:38+71 -55
beginning work on bitblt with source==BM_OGL, fixes squished bitblts, better support for alternate texture formats, support for driver specific hacks, etc
Show difference between Revision 1.18 and 1.19
Revision 1.18donut 1999/10/12 05:28:42+23 -7
made screenshot func write a tga instead of raw rgb data
Show difference between Revision 1.17 and 1.18
Revision 1.17donut 1999/10/09 05:05:52+4 -2
fixed -gl_voodoo to set fullscreen immediatly
Show difference between Revision 1.16 and 1.17
Revision 1.16donut 1999/10/08 10:55:55+20 -1
ogl updates
Show difference between Revision 1.15 and 1.16
Revision 1.15donut 1999/10/07 21:30:06+86 -11
ogl alttexmerge, sub_bitmap handling, new texture handling struct, renderstats & badtextures cheats, fixed viewport position, runtime ogl loading, etc
Show difference between Revision 1.14 and 1.15
Revision 1.14donut 1999/09/30 23:02:27+93 -83
opengl direct support for ingame and normal menus, fonts as textures, and automap support
Show difference between Revision 1.13 and 1.14
Revision 1.13donut 1999/09/30 01:46:35+30 -13
added -gl_mipmap and -gl_simple, and documented them
Show difference between Revision 1.12 and 1.13
Revision 1.12donut 1999/09/29 04:35:23+111 -0
added preliminary ogl screenshot capability
Show difference between Revision 1.11 and 1.12
Revision 1.11donut 1999/09/27 07:56:38+3 -6
fixed texture filtering problem, I guess you need to set the filter when you create the texture
Show difference between Revision 1.10 and 1.11
Revision 1.10donut 1999/09/27 06:18:26+52 -30
cleanups, optimizations, and command line options for texture filter selection (mipmaping/etc)
Show difference between Revision 1.9 and 1.10
Revision 1.9donut 1999/09/25 02:54:26+1 -1
fixed squished sprite problem, and made viewport resize correctly
Show difference between Revision 1.8 and 1.9
Revision 1.8donut 1999/09/24 07:31:42+7 -4
optimized state changes with some handy defines to only change when needed
Show difference between Revision 1.7 and 1.8
Revision 1.7donut 1999/09/24 03:53:04+63 -58
cleaned up a bit of cruft and fixed indentiation, etc. Also added -fullscreen arg checking
Show difference between Revision 1.6 and 1.7
Revision 1.6sekmu 1999/09/23 16:20:07+33 -73
from Peter(dph) for windows ogl
Show difference between Revision 1.5 and 1.6
Revision 1.5donut 1999/09/22 05:59:52+3 -3
texture pre-loading now handles weapons and polymodels
Show difference between Revision 1.4 and 1.5
Revision 1.4donut 1999/09/21 06:51:11+17 -7
OpenGL: fixed corrupted textures, added bitmap display (reticle, etc)
Show difference between Revision 1.3 and 1.4
Revision 1.3donut 1999/09/21 04:05:55+152 -81
mostly complete OGL implementation (still needs bitmap handling (reticle), and door/fan textures are corrupt)
Show difference between Revision 1.2 and 1.3
Revision 1.2donut 1999/09/16 03:00:09+0 -1
include event.h in proper file to remove undefined func for init_gii_xwin
Show difference between Revision 1.1 and 1.2
Revision 1.1donut 1999/09/16 02:57:09None
preliminary OpenGL support (GLX window creation, and a kludge to draw the framebuffer with ogl)

Filename: makefile
Revision 1.4donut 2000/06/19 21:26:12+3 -0
SDL OpenGL support
Show difference between Revision 1.3 and 1.4
Revision 1.3donut 1999/10/07 02:31:57+3 -0
makefile support for wgl
Show difference between Revision 1.2 and 1.3
Revision 1.2donut 1999/09/21 04:05:55+1 -1
mostly complete OGL implementation (still needs bitmap handling (reticle), and door/fan textures are corrupt)
Show difference between Revision 1.1 and 1.2
Revision 1.1donut 1999/09/16 02:57:09None
preliminary OpenGL support (GLX window creation, and a kludge to draw the framebuffer with ogl)

Filename: makefile.nt
Revision 1.2donut 2000/06/19 21:26:12+3 -0
SDL OpenGL support
Show difference between Revision 1.1 and 1.2
Revision 1.1donut 1999/09/24 03:51:42None
makefile support for WGL compile

Filename: ogl.c
Revision 1.43donut 2003/07/07 11:18:04+2 -2
allow for texture dimensions of 1, and fix ogl replacement texture paletted->rgb conversion alpha problem
Show difference between Revision 1.42 and 1.43
Revision 1.42donut 2003/07/07 10:07:13+42 -7
add opengl replacement texture support (requires libpng and zlib)
Show difference between Revision 1.41 and 1.42
Revision 1.41donut 2003/07/06 00:45:21+134 -42
opengl hardware super-transparency support using GL_NV_register_combiners
Show difference between Revision 1.40 and 1.41
Revision 1.40donut 2003/07/02 07:26:21+73 -25
use GL_RGB for non-transparent textures, and fix fonts not having transparent flag set (wouldn't get paletted)
Show difference between Revision 1.39 and 1.40
Revision 1.39donut 2003/07/01 15:33:41+3 -1
don't try to use paletted textures with mipmapping since gluBuild2DMipmaps can't handle it.
Show difference between Revision 1.38 and 1.39
Revision 1.38donut 2003/07/01 14:58:22+74 -5
add OGL paletted texture support
Show difference between Revision 1.37 and 1.38
Revision 1.37donut 2002/04/24 07:53:00+41 -17
ogl texture precaching: 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.
Show difference between Revision 1.36 and 1.37
Revision 1.36donut 2002/04/24 06:44:07+0 -1
add -renderstats command line arg to activate RENDERSTATS
Show difference between Revision 1.35 and 1.36
Revision 1.35donut 2002/04/24 05:49:59+1 -1
fix last commit
Show difference between Revision 1.34 and 1.35
Revision 1.34donut 2002/04/24 05:45:51+3 -2
add RENDERSTATS counter for number of textures loaded after texture caching stage
Show difference between Revision 1.33 and 1.34
Revision 1.33donut 2002/04/23 19:38:04+4 -3
use GL_INDEX_BITS to get bpp for color buffer for RENDERSTATS
Show difference between Revision 1.32 and 1.33
Revision 1.32donut 2002/04/22 20:15:35+4 -0
add anisotropic texture filtering support
Show difference between Revision 1.31 and 1.32
Revision 1.31donut 2002/04/06 18:24:15+13 -0
make RENDERSTATS show size of color/depth buffer too
Show difference between Revision 1.30 and 1.31
Revision 1.30donut 2002/04/06 17:21:26+112 -73
utilize hardware multitexturing support if possible (requires GL_NV_texture_env_combine4 extension)
Show difference between Revision 1.29 and 1.30
Revision 1.29donut 2002/03/26 21:25:02+5 -20
fix ogl gr_ucircle
Show difference between Revision 1.28 and 1.29
Revision 1.28donut 2002/03/26 08:20:01+26 -1
fix briefing spinning robot display in OGL
Show difference between Revision 1.27 and 1.28
Revision 1.27donut 2000/10/30 07:33:03+2 -2
corrected overflow checks in ogl_ubitblt_tolinear since it uses RGB, needs 3 Bpp not 4
Show difference between Revision 1.26 and 1.27
Revision 1.26donut 2000/10/30 07:29:24+6 -13
did away with data buffer in ogl_ubitblt_tolinear entirely
Show difference between Revision 1.25 and 1.26
Revision 1.25donut 2000/10/28 03:53:23+8 -2
make size of data buffer in ogl_ubitblt_tolinear based on OGLTEXBUFSIZE, and check to make sure we fit. fixes crash at menu resolutions > 1152x864
Show difference between Revision 1.24 and 1.25
Revision 1.24donut 2000/10/27 09:32:54+3 -3
Increase number of verts on gl_reticle for secondary weaps circles
Show difference between Revision 1.23 and 1.24
Revision 1.23donut 2000/10/27 09:23:16+7 -4
make ogl_ubitblt merely a wrapper for renamed ogl_ubitblt_i which accepts a dest width/height as well.
Show difference between Revision 1.22 and 1.23
Revision 1.22donut 2000/06/20 06:57:44+4 -1
fix sdl opengl crash by actually deleting the textures instead of just reseting handles
Show difference between Revision 1.21 and 1.22
Revision 1.21donut 2000/06/19 21:08:04+6 -6
killed texture priority incrementer test.. didn't seem to help anything
Show difference between Revision 1.20 and 1.21
Revision 1.20donut 2000/01/23 20:19:34+20 -9
fixed up tex_format_supported(), and let ogl_readpixels_ok -1 do screen shots still
Show difference between Revision 1.19 and 1.20
Revision 1.19donut 2000/01/12 10:22:45+209 -71
WGL: fixed fullscreen toggle crash, alt-tab works, fullscreen doesn't resize stuff, setable refresh rate, first attempt at multi-texturing
Show difference between Revision 1.18 and 1.19
Revision 1.18donut 1999/11/22 06:16:55+10 -0
fixes for ming/cygwin compile
Show difference between Revision 1.17 and 1.18
Revision 1.17donut 1999/10/21 08:51:20+3 -3
made gl_reticile secondary use darker green so its easier to distinguish
Show difference between Revision 1.16 and 1.17
Revision 1.16donut 1999/10/20 07:34:06+242 -8
opengl rendered reticle, and better g3_draw_sphere
Show difference between Revision 1.15 and 1.16
Revision 1.15donut 1999/10/18 07:26:38+219 -91
beginning work on bitblt with source==BM_OGL, fixes squished bitblts, better support for alternate texture formats, support for driver specific hacks, etc
Show difference between Revision 1.14 and 1.15
Revision 1.14donut 1999/10/08 08:50:55+19 -16
fixed ogl sub bitmap support
Show difference between Revision 1.13 and 1.14
Revision 1.13donut 1999/10/07 21:30:06+442 -97
ogl alttexmerge, sub_bitmap handling, new texture handling struct, renderstats & badtextures cheats, fixed viewport position, runtime ogl loading, etc
Show difference between Revision 1.12 and 1.13
Revision 1.12donut 1999/09/30 23:02:27+151 -61
opengl direct support for ingame and normal menus, fonts as textures, and automap support
Show difference between Revision 1.11 and 1.12
Revision 1.11donut 1999/09/29 03:18:53+2 -1
changed perspective to 1.0 always, instead of (w*3)/(h*4), fixes disappearing polys prob caused to the view being wider than it should be.
Show difference between Revision 1.10 and 1.11
Revision 1.10donut 1999/09/27 07:56:38+8 -5
fixed texture filtering problem, I guess you need to set the filter when you create the texture
Show difference between Revision 1.9 and 1.10
Revision 1.9donut 1999/09/27 06:18:26+41 -29
cleanups, optimizations, and command line options for texture filter selection (mipmaping/etc)
Show difference between Revision 1.8 and 1.9
Revision 1.8donut 1999/09/25 02:54:26+11 -7
fixed squished sprite problem, and made viewport resize correctly
Show difference between Revision 1.7 and 1.8
Revision 1.7donut 1999/09/24 07:31:42+31 -15
optimized state changes with some handy defines to only change when needed
Show difference between Revision 1.6 and 1.7
Revision 1.6donut 1999/09/24 05:47:01+50 -30
added sizing (and padding) of ogl textures up to next multiple of 2, so they don't get mangled
Show difference between Revision 1.5 and 1.6
Revision 1.5donut 1999/09/24 03:34:38+7 -2
changed znear in gluPerspective to 0.1
Show difference between Revision 1.4 and 1.5
Revision 1.4donut 1999/09/22 05:59:52+79 -20
texture pre-loading now handles weapons and polymodels
Show difference between Revision 1.3 and 1.4
Revision 1.3donut 1999/09/22 02:11:16+118 -4
ogl texture pre-loading when starting level
Show difference between Revision 1.2 and 1.3
Revision 1.2donut 1999/09/21 06:51:11+51 -99
OpenGL: fixed corrupted textures, added bitmap display (reticle, etc)
Show difference between Revision 1.1 and 1.2
Revision 1.1donut 1999/09/21 04:05:55None
mostly complete OGL implementation (still needs bitmap handling (reticle), and door/fan textures are corrupt)

Filename: sdlgl.c
Revision 1.4donut 2003/11/19 04:31:29+3 -2
made opengl use 32bpp screen mode by default, add option to use 16bpp
Show difference between Revision 1.3 and 1.4
Revision 1.3donut 2002/04/01 08:04:53+25 -0
implement brightness/palette effects in OGL using SetGammaRamp, much faster than the hack that was being used. currently SDL only (though not too hard too add to WGL, not as easy as sdl)
Show difference between Revision 1.2 and 1.3
Revision 1.2donut 2000/06/20 06:58:20+15 -2
fix sdl opengl mode change crash and add some debug args
Show difference between Revision 1.1 and 1.2
Revision 1.1donut 2000/06/19 21:26:12None
SDL OpenGL support

Filename: wgl.c
Revision 1.16donut 2003/11/19 04:31:29+1 -1
made opengl use 32bpp screen mode by default, add option to use 16bpp
Show difference between Revision 1.15 and 1.16
Revision 1.15donut 2002/07/08 00:10:54+2 -3
minor cleanup, use same for loop for filling r, g, and b values
Show difference between Revision 1.14 and 1.15
Revision 1.14donut 2002/04/01 12:25:19+13 -4
implement SetGammaRamp on WGL
Show difference between Revision 1.13 and 1.14
Revision 1.13donut 2002/04/01 08:04:53+3 -0
implement brightness/palette effects in OGL using SetGammaRamp, much faster than the hack that was being used. currently SDL only (though not too hard too add to WGL, not as easy as sdl)
Show difference between Revision 1.12 and 1.13
Revision 1.12donut 2001/12/07 05:38:31+1 -1
Fix mismatched arg types in the win32 code, work around byte being defined by windows headers as well as our own, and allow overriding of make vars.
Show difference between Revision 1.11 and 1.12
Revision 1.11donut 2000/01/17 07:30:39+3 -1
set win32 icon to icon frome resource file
Show difference between Revision 1.10 and 1.11
Revision 1.10donut 2000/01/12 10:22:45+73 -26
WGL: fixed fullscreen toggle crash, alt-tab works, fullscreen doesn't resize stuff, setable refresh rate, first attempt at multi-texturing
Show difference between Revision 1.9 and 1.10
Revision 1.9donut 1999/11/22 06:25:03+0 -3
removed (undocumented) -wgl_nolowres, since -menu res commands are available now
Show difference between Revision 1.8 and 1.9
Revision 1.8donut 1999/10/18 07:31:47+127 -108
added wgl test command lines, fixed hInst being unspecified, got rid of some #defines to fit the fullscreen stuff, added clip* flags so windowed mode works correctly
Show difference between Revision 1.7 and 1.8
Revision 1.7donut 1999/10/09 09:34:00+18 -3
more descriptive wgl Errors, and fixed win32 digi support (including fixed sound falloff rate)
Show difference between Revision 1.6 and 1.7
Revision 1.6donut 1999/10/09 05:06:55+197 -69
fixed WGL fullscreen mode crashes, and generally cleaned up the code
Show difference between Revision 1.5 and 1.6
Revision 1.5donut 1999/10/08 10:55:55+247 -12
ogl updates
Show difference between Revision 1.4 and 1.5
Revision 1.4donut 1999/09/30 23:02:27+2 -4
opengl direct support for ingame and normal menus, fonts as textures, and automap support
Show difference between Revision 1.3 and 1.4
Revision 1.3donut 1999/09/25 02:54:26+1 -1
fixed squished sprite problem, and made viewport resize correctly
Show difference between Revision 1.2 and 1.3
Revision 1.2donut 1999/09/24 03:02:13+3 -1
added window resizing to WGL code
Show difference between Revision 1.1 and 1.2
Revision 1.1sekmu 1999/09/23 16:20:07None
from Peter(dph) for windows ogl