enable Tomaz's PIX-friendly shader debugging code if gl_paranoid is 1 made CHECKGLERROR not crash if qglGetError is NULL (as in D3D9 renderer for example) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10468 d7cf8633-e32d-0410-b094-e92efae38249
remove r_shadow_texturetype cvar (now always uses 2D textures), remove shadowmap cube and rect support removed GL_ARB_texture_rectangle texture support throughout engine (nothing using it) refactored D3D9 path in R_Mesh_SetRenderTargets in unsuccessful attempt to fix D3D9 shadowmapping git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10467 d7cf8633-e32d-0410-b094-e92efae38249
fix almost all g++ -pedantic warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10402 d7cf8633-e32d-0410-b094-e92efae38249
created new MSVC2008 project files and solution from scratch fixed several warnings in MSVC2008 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10266 d7cf8633-e32d-0410-b094-e92efae38249
overhauled vertex formats, now supports 100% interleaved arrays rendering mode, reworked vertexbuffer management to be a more robust system, added fully vertex buffered rendering options (gl_vbo_dynamicvertex, gl_vbo_dynamicindex) which are off by default (they seem to hurt fps in tests here) centralized handling of "generic" mesh rendering (fixed function stuff) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10109 d7cf8633-e32d-0410-b094-e92efae38249
remove support for GL_EXT_compiled_vertex_array extension git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9782 d7cf8633-e32d-0410-b094-e92efae38249
implemented support for caching compressed textures (.dds files), disabled by default git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9735 d7cf8633-e32d-0410-b094-e92efae38249
Adding FreeType2 and UTF-8 Support. UTF-8 is disabled by default, FreeType is enabled. new cvars: utf8_enable (0) r_font_disable_freetype (1) r_font_use_alpha_textures (0, not really finished yet) r_font_size_snapping (1 - 0 looks bad when vid_conwidth/height and vid_width/height are too different) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9641 d7cf8633-e32d-0410-b094-e92efae38249
remove some gl functions that are not used git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9626 d7cf8633-e32d-0410-b094-e92efae38249
implemented deferred rendering (r_shadow_deferred cvar) to accelerate lighting in scenes with many lights git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9588 d7cf8633-e32d-0410-b094-e92efae38249
removed DOT3 lighting path (bumpmapped lighting on pre-shader cards) added 3D texture attenuation support to vertex lighting path git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9576 d7cf8633-e32d-0410-b094-e92efae38249
remove a couple useless lines git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9572 d7cf8633-e32d-0410-b094-e92efae38249
converted all code using gl_support_* variables to use vid.support.* instead a few other cleanups git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9564 d7cf8633-e32d-0410-b094-e92efae38249
removed 1D texture management code, not used by anything git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9529 d7cf8633-e32d-0410-b094-e92efae38249
support for "realtime world/dynamic darks". Just for fun. Should impact nothing else, as it is just removing one check and adding a special case for negative light color values, which should be never happening in existing code. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9423 d7cf8633-e32d-0410-b094-e92efae38249
better VSDCT transform git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9272 d7cf8633-e32d-0410-b094-e92efae38249
automagically select best shadowmapping filter mode depending on hardware git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9269 d7cf8633-e32d-0410-b094-e92efae38249
added indirection cube map for shadowmapping and revised filtering modes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9255 d7cf8633-e32d-0410-b094-e92efae38249
implemented omnidirectional shadowmapping using depth textures (2D, Rect and Cube texture types supported) overhauled viewport handling (now has r_refdef.view.viewport), R_Viewport functions replace GL_SetupView_ functions, R_SetViewport makes a viewport current git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9219 d7cf8633-e32d-0410-b094-e92efae38249
added detection of GL_EXT_framebuffer_object extension git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9186 d7cf8633-e32d-0410-b094-e92efae38249