Commit Graph

309 Commits

Author SHA1 Message Date
Glenn Maynard 141395e1d5 fix RageDisplay_OGL::GetTexture 2007-03-20 07:46:05 +00:00
Glenn Maynard 7f18ab6333 always pair AssertNoGLError with FlushGLErrors. Otherwise,
AssertNoGLError can trigger for an error that happened a long
time ago, and there's no way of knowing where the real error
was.
2007-03-07 20:08:55 +00:00
Glenn Maynard 201cb80965 matrix fix 2007-02-28 05:03:15 +00:00
Glenn Maynard c072f6e98b masking blend modes 2007-02-25 00:32:39 +00:00
Glenn Maynard 8ae6f53bfb CopySrc blend mode 2007-02-24 23:30:29 +00:00
Glenn Maynard 138b96a3b0 Unpremultiply shader 2007-02-24 23:20:25 +00:00
Glenn Maynard 45cff83b71 glBlendFuncSeparateEXT (since that's waht we test for) 2007-02-24 23:19:07 +00:00
Glenn Maynard 4af53a0de9 RageDisplay::GetTexture, mostly for debugging for now 2007-02-24 23:17:34 +00:00
Glenn Maynard d5542f24cf use glBlendFuncSeparate for 50% correct dest alpha 2007-02-24 13:03:35 +00:00
Glenn Maynard d866e18ca3 support GL_ARB_texture_float 2007-02-24 12:33:16 +00:00
Glenn Maynard ebf4bc5c0e more sensible shader handling, incomplete but functional
add mixing modes
2007-02-19 23:40:19 +00:00
Glenn Maynard 34b29827d0 Prefer to let OpenGL assign attribute locations, as in
http://developer.download.nvidia.com/opengl/glsl/glsl_release_notes.pdf
"Vertex Attribute Aliasing"
2007-02-18 10:37:06 +00:00
Steve Checkoway dc56558137 Sort extension list. 2007-02-18 07:30:58 +00:00
Glenn Maynard b67e19b09d print the extension string more intelligently. I'm tired of a two-page long line in every info.txt. 2007-02-17 14:14:44 +00:00
Glenn Maynard 3979202ce0 add EffectMode_ColorBurn 2007-02-14 01:59:41 +00:00
Glenn Maynard abd0f83cc8 short circuit on delete default texture 2007-02-14 00:07:55 +00:00
Glenn Maynard 7561b3b630 unneeded; done in TryVideoMode 2007-02-13 06:11:35 +00:00
Glenn Maynard 5600e93d3a add TextureUnit param to SetSphereEnvironmentMapping 2007-02-13 06:04:30 +00:00
Glenn Maynard a9fd52cce0 add TextureUnit param to SetTextureWrapping 2007-02-13 05:56:24 +00:00
Glenn Maynard 863062f7d1 add TextureUnit param to SetTextureFiltering 2007-02-13 05:09:54 +00:00
Glenn Maynard 4acd7f3971 pull out glBlendFunc call 2007-02-13 05:01:25 +00:00
Glenn Maynard ebb7189b88 add TextureUnit param to SetTextureMode 2007-02-13 04:59:05 +00:00
Glenn Maynard 256a737d25 fix ShaderType not used 2007-02-13 04:03:17 +00:00
Glenn Maynard 4b707da08b merge SetTextureMode functions 2007-02-13 04:02:08 +00:00
Glenn Maynard 2cebe3ef34 fix crash with empty models 2007-02-07 05:54:13 +00:00
Glenn Maynard 74aaecc2b9 add RageDisplay::DrawSymmetricQuadStrip 2007-01-15 08:08:57 +00:00
Steve Checkoway 4517499f0f lroundf -> lrintf. 2007-01-03 05:05:28 +00:00
Steve Checkoway eb0b26cd82 Float to int is slow on ppc. It requires a store, a big stall, and then a load. It's even worse on a G5 if the compiler is dumb (and let's face it, I'm using gcc here...). Just use lroundf when we want an int. It will certainly be no slower. 2007-01-02 23:36:44 +00:00
Glenn Maynard 17c32b90c2 Make* -> Driver::Create. Having these floating in arch.h isn't
useful; if you create the class, you need the class definition to
free it, and anyone creating a class is probably going to use it,
too.
2006-12-17 07:41:21 +00:00
Steve Checkoway 30d9410b65 Unneeded. 2006-11-01 10:45:51 +00:00
Glenn Maynard 617e8b5335 FOREACH_ENUM2 -> FOREACH_ENUM 2006-10-07 08:56:58 +00:00
Glenn Maynard 2ce839e4eb Invalid 2006-10-07 04:25:28 +00:00
Steve Checkoway 9df54e925c DEFAULT_FAIL. 2006-10-01 04:01:37 +00:00
Glenn Maynard 91e0961958 fix depth buffer cleared when it shouldn't be 2006-08-15 00:39:41 +00:00
Glenn Maynard 0b6f9ab4b5 remove comment 2006-07-29 19:29:19 +00:00
Glenn Maynard e57aa00b2a invert RenderTarget_FramebufferObject
set viewport
2006-07-29 00:23:44 +00:00
Glenn Maynard 3197d4ead9 unused params 2006-07-28 21:06:13 +00:00
Glenn Maynard 98591e9fc1 call Create() in CreateRenderTarget 2006-07-28 21:03:57 +00:00
Glenn Maynard 9ed6603349 add BLEND_WEIGHTED_MULTIPLY and BLEND_INVERT_DEST blend modes 2006-07-27 01:34:57 +00:00
Glenn Maynard 12059deb33 fix FBO left active 2006-07-27 01:30:55 +00:00
Glenn Maynard 871826bb2a use GL_EXT_framebuffer_object 2006-07-26 19:18:21 +00:00
Glenn Maynard 58bf179ad8 map, not multimap 2006-07-26 03:58:29 +00:00
Glenn Maynard 98e3e411c8 OpenGL RTT interface 2006-07-26 03:44:27 +00:00
Glenn Maynard 41461cbe23 clear alpha to 0 (if any) 2006-07-26 01:44:59 +00:00
Glenn Maynard b6e161889c cleanup 2006-07-26 01:43:51 +00:00
Glenn Maynard 9c73aed254 Do SetDefaultRenderStates in BeginFrame, instead of on init,
so we don't depend on state being preserved long-term, and
so every renderer doesn't have to do this.
2006-07-25 20:10:56 +00:00
Glenn Maynard 136559f9a6 comment belonged in a commit message, not a comment 2006-07-24 18:53:54 +00:00
Glenn Maynard 2ddb0c2912 Use "i" for ints; don't distinguish between signed and unsigned. (If we're
marking unsigned ints, that seems to imply marking long ints, doubles vs.
floats, etc; Hungarian serves little enough purpose without being that fine-
grained.)
2006-07-24 06:11:37 +00:00
Glenn Maynard f40b729eda cleanup 2006-07-24 05:53:57 +00:00
Glenn Maynard 89b30b5ac9 move more into OGL_Helpers: pulling in GL.h, GLToString 2006-07-24 05:48:21 +00:00