Commit Graph

507 Commits

Author SHA1 Message Date
rdb 730a278372 minor cleanup 2011-03-02 11:33:23 +00:00
rdb 926f4e5b30 NULL -> 0 2011-03-02 11:27:55 +00:00
rdb 6fbdca0c96 Experimental texture compression with OpenGL ES 2011-03-01 19:20:32 +00:00
rdb 009c00d9f1 commit super awesome patch from 11thPenguin 2011-02-13 06:51:18 +00:00
rdb 100bec43b6 Work around annoyance in Mesa's GLES implementation 2011-01-26 15:22:33 +00:00
rdb 0ea72a4712 Remove GLU dependency from Panda3D. Yes. That's right, folks.
And now I shall make myself some coffee and wake up, in that order.
2010-12-19 07:03:49 +00:00
rdb 4b4ccee24a Don't even try to build Cg support when building for OpenGL ES, which is unsupported by the Cg Toolkit anyway.
The code tried to include cg/cgGL.h in the case that HAVE_CG was defined, but internally cgGL.h included GL/gl.h, so I got header file conflicts between OpenGL and OpenGL ES.
2010-12-18 23:29:00 +00:00
rdb 34f39259ca Fallback case for get_error_string in case we're not building with GLU 2010-12-18 12:47:15 +00:00
rdb 089f99659d Don't use GLU when compiling for GLES 2010-12-09 17:58:44 +00:00
rdb c5f2020858 protect from string destruction 2010-10-30 19:36:03 +00:00
Bei Yang 626cb5966a Added a windows OpenGL implementation of finish frame and begin finish. This allows for frame flip syncronization across multiple machines. This is a change made by WDI to aid cave rendering 2010-06-11 16:43:53 +00:00
Chris Brunner 547a72053c support for #ifdef WIN64_VC instead of just #ifdev WIN32_VC alone 2010-05-28 21:09:22 +00:00
rdb fb70cee298 I think this should fix a compilation error with OpenGL ES 2010-05-12 18:21:58 +00:00
rdb 045f7acb41 Fix compilation error when compiling without support for Cg 2010-05-05 15:19:41 +00:00
Mike Christel 01b720ceb9 Added get_supports_cg_profile 2010-05-05 14:13:24 +00:00
Mike Christel 5dfa504370 Texture arrays added to Texture class, passed to shader through setShaderInput(name, texture). A new Cg type sampler2DArray has been added to the panda3d Shader Class. 2010-04-29 14:48:44 +00:00
rdb 54769c76b5 Fix compilation error for OpenGL ES 2 2010-04-23 12:13:37 +00:00
rdb a464e45c0e Apply fix from andresv to fix flickering objects with a shader 2010-04-18 15:50:15 +00:00
Mike Christel 6418e6f221 extended shader input system support for Cg (see Panda SE Project 2010-03-17 blog post for more details) 2010-04-07 11:16:29 +00:00
rdb e9234408c0 Fix errors on destruction when the GLSL shader failed to link 2010-03-23 13:23:34 +00:00
David Rose 181663ad66 fix error handling in NDEBUG case 2010-03-07 17:44:32 +00:00
rdb 2e503bd284 Fix error message 2010-02-24 15:57:02 +00:00
rdb 0a372b463a Fix compile issue with OpenGL ES 2010-01-26 17:10:27 +00:00
rdb 26a8e60405 Fix compilation error with OpenGL ES 2010-01-25 12:40:14 +00:00
rdb eafe6572a9 Fix compile issue on OSX 2009-12-22 10:52:14 +00:00
rdb c136904fa9 Add hardware instancing support 2009-12-21 14:22:12 +00:00
rdb 98281d31c6 Changes from Keith: glPrioritizeTextures, initial_clear, slightly more helpful error reporting 2009-12-16 08:58:12 +00:00
David Rose 6505a4fbe5 int != GLint 2009-10-21 18:05:38 +00:00
rdb c6796739e9 Fixes for geometry shaders in GLSL, and fixes for nvidia's implementation of GLSL 2009-10-21 17:12:32 +00:00
David Rose 3f6192c963 clamp shininess at 128 2009-10-16 04:25:29 +00:00
rdb 30a2c57cb3 Fix an issue with programs being destroyed and then reused by different copies of the same shader. Also, added better error reporting system for Cg errors. 2009-09-19 09:55:05 +00:00
David Rose b137e55464 fix fog-flickering-nametag issue: shaders not resetting fog state 2009-09-14 22:50:31 +00:00
rdb 89d68a083c Fix a typo that causes texture flickering with custom shaders 2009-09-14 09:17:15 +00:00
rdb 5f4fe3bc32 Fix some compiler warnings 2009-09-12 10:45:49 +00:00
David Rose c07d10f74b fix crashing bug with compressed texture 2009-09-09 18:06:46 +00:00
Bei Yang 61bb918380 Modified glGsg to support Pointer Textures 2009-09-07 22:47:43 +00:00
David Rose 472d40b850 GL_ARB_multisample mainstream as of 1.3 2009-08-13 21:41:26 +00:00
rdb b2c4018466 Very very very minor optimization 2009-08-12 10:32:58 +00:00
rdb 6c89228477 Generic fixes and cleanup for geometry shaders and split shaders 2009-07-28 13:37:09 +00:00
David Rose 8826b702ca fix build errors: change int -> GLint 2009-07-14 22:13:24 +00:00
rdb bb5b817ce8 More builtin uniforms & vertex attribs 2009-07-02 18:00:41 +00:00
rdb ebf6291663 Fix build errors for mainstream OpenGL 2009-07-02 15:19:37 +00:00
rdb 66349ecaba This is another big commit - chief new features are:
* Working OpenGL ES 2.x support. Yay!
 * The shader code now supports separate vertex/fragment/geometry shaders.
 * The GLSL code supports passing vertex attrib arrays.
2009-07-02 15:01:36 +00:00
David Rose fb630dc7cf fix from keith leonard 2009-07-01 22:23:13 +00:00
rdb 442ef013c4 OpenGL ES 2.x doesn't require glEnable/glDisable on GL_TEXTURE_* targets anymore, apparently. 2009-07-01 14:28:56 +00:00
rdb e3fde823b0 More work on OpenGL ES 2 support 2009-07-01 13:11:24 +00:00
rdb 71dcf4bc55 Fix crash with OpenGL ES 1.x 2009-07-01 12:32:04 +00:00
rdb d8fe8dda6a Build for OpenGL ES (2) 2009-07-01 10:13:51 +00:00
Zachary Pavlov 909b86d68e fix for panda gl compile crash in vs 2003 2009-06-29 20:54:49 +00:00
rdb ab2737ac1a Fix crash when cleaning up GLSL shader 2009-06-29 13:48:43 +00:00