Robert Osfield
e166b510c7
Improved compatibility with GLES2
2009-11-12 12:07:13 +00:00
Robert Osfield
95d54ba15c
Added glContexVersion, glContextFlags and glContextProfileMask members to osg::GraphicsContext::Traits to support GL3 graphics context creation.
...
Moved the handling of DisplaySettings into Traits constructor.
Added support for s/getGLContextVersion(), s/getGLContextFlags() and s/getGLContextProfileMask() to osg::DisplaySettings.
Added command line and env var support for setting the GLContextVersion, GLContextFlags and GLContextProfileMask to osg::DisplaySettings.
2009-11-11 15:25:42 +00:00
Robert Osfield
05b90497e1
From Paul Martz, enabled packed_depth_stencil support for GL3
2009-11-11 12:04:06 +00:00
Robert Osfield
2983bbe6c3
Merged runtime fix for Win32 OpenGLES build that avoids usage of wglGetProcAddress.
2009-11-11 09:15:03 +00:00
Robert Osfield
14838aafc5
Added OSG_GLES2_FEATURES and OSG_GL3_FEATURES usage where appropriate
2009-11-10 19:16:36 +00:00
Robert Osfield
b199a334d9
Introduced OSG_GL*_FEATURES macros defined in include/GL that are set to 0 or 1 according to what the assocoated version of GL is compiled against.
...
Removed EXT postfix of FrameBufferObject functions, and added support for checking non EXT versions frame buffer object GL functions.
Introduced usage of OSG_GL*_FEATURES to avoid some #if #else #endif code blocks.
Using a submissions from Paul Martz as a guide added perliminary GL3 support to a range of OSG classes
2009-11-10 17:01:08 +00:00
Robert Osfield
d3ab362eae
Removed debug message
2009-11-10 14:59:42 +00:00
Stephan Maximilian HUBER
6b87322e99
From Stephan Huber: updated XCode project
2009-11-10 14:31:16 +00:00
Robert Osfield
b00ff07294
Changed default enabling of vertex attribute mapping
2009-11-10 12:03:03 +00:00
Robert Osfield
f159ae0516
Removed redundant include of GLU
2009-11-10 12:02:40 +00:00
Robert Osfield
8bba7c9f98
Added enabling of lighting, and disabling of mipmapping to help out testing of GLES2 target
2009-11-10 12:01:28 +00:00
Robert Osfield
d0b021568e
Added support for mapping GL_QUADS, GL_QUAD_STRIP and GL_POLYGONS to GL_TRIANGLE equivalents.
2009-11-10 11:36:07 +00:00
Robert Osfield
def04324a4
Added the default usage of ShaderGenVisitor to help with GLES2 testing.
2009-11-10 11:34:57 +00:00
Robert Osfield
5b236c685b
Added state.checkGLErrors() calls to help in debugging of GLES 2 port
2009-11-10 11:34:31 +00:00
Robert Osfield
126f83e5b4
Added disabling of modes that aren't supported with GLES2
2009-11-10 11:28:21 +00:00
Robert Osfield
d515b69d88
Added GL token mappings for standard GL errors numbers for when no GLU is available
2009-11-09 11:36:54 +00:00
Robert Osfield
7fb88a83ff
Added remapping of internal texture formats to GL_RGBA etc when just the number of components is used i.e.
...
1 -> GL_ALPHA,
2 -> GL_LUMINANCE_ALPHA
3 -> GL_RGB
4 -> GL_RGBA
2009-11-06 18:06:16 +00:00
Robert Osfield
aa2bb575c4
Added simple textured scene graph test accessible using --texture or -t command line options.
2009-11-06 16:51:38 +00:00
Robert Osfield
4163f15052
Fixed build with no automatic conversion of ref_ptr<> to C pointer
2009-11-06 16:09:55 +00:00
Robert Osfield
40f2478b77
Fixed build
2009-11-06 16:09:16 +00:00
Robert Osfield
4c01079d57
Added dlsymb settting for QNX
2009-11-06 13:53:16 +00:00
Robert Osfield
959cd04097
Cleaned up the EGL context config set up.
2009-11-06 10:38:22 +00:00
Robert Osfield
0c8661be5f
Added EGL error checking and changed the egl context configuration settings
2009-11-06 10:31:03 +00:00
Robert Osfield
11fa315fb1
Added APIENTRY into glColor*/glNormal* calls and specialized the calls to just GLES1
2009-11-05 09:28:10 +00:00
Robert Osfield
d7d6d2b215
Moved glColor/glNormal definitions for GLES1.x from include/osg/GL to src/osg/ArrayDispatchers.cpp to avoid import/export issues on functions.
...
Fixed typo of GLES1 in disabling the build of OpenGL1.x/2.x specific examples
2009-11-04 17:26:59 +00:00
Robert Osfield
90d3c710c4
Reduced the number of aliased attributes to fit within the basic 8 attribute location available on basic GLES2 implementations
2009-11-04 12:17:58 +00:00
Robert Osfield
980c5bd6bb
Changed notify to output warnings and normally messages to std::out
2009-11-04 12:14:57 +00:00
Robert Osfield
211ea2f263
Added --simple option and associated set up of a very simple geometry and shader scene graph
2009-11-04 11:03:13 +00:00
Robert Osfield
da90b3f90a
Enabled the vertex aliasing and projection/modelview uniform setting by default for GLES2 and GL3 targets
2009-11-04 11:02:00 +00:00
Robert Osfield
12ca5156f8
Disabled osgteaport for GLES1, GLES2 and GL3 builds
2009-11-03 16:49:13 +00:00
Robert Osfield
8a4956a257
Replaced glColor4fv call with osg::State::Color(..)
2009-11-03 16:48:48 +00:00
Robert Osfield
72ff1f40f9
From Paul Martz, changes for compiling against OpenGL 3.x
2009-11-03 16:34:54 +00:00
Robert Osfield
8d67c9bb33
Disabled the build of plugins that aren't supported under GLES.
2009-11-03 15:22:14 +00:00
Robert Osfield
08903d65a1
Fixed handling of GL function pointer setup for GLES1/GLES2 targets
...
Dropped the fixed function pipeline defaults from StateSet and SceneView.
2009-11-03 11:10:41 +00:00
Robert Osfield
9c5409ad8a
Disable the default LightModel for GLES1 and GLES2 targets
2009-11-01 09:51:26 +00:00
Robert Osfield
a4639398e8
Fixed compile issue with Image.cpp and osgautocapture.cpp under GLES.
...
Fixed handling of EGLDisplay in EGL paths of GraphicsWindowX11
2009-11-01 09:04:41 +00:00
Robert Osfield
519c70ea5f
Fixed compile problem due to name change of getGLXContext to getContext
2009-10-31 14:44:43 +00:00
Robert Osfield
68556419cc
Fixed build under GLES2
2009-10-30 17:16:50 +00:00
Robert Osfield
93d83010f8
Added EGL support into build system for GLES1 + GLES2.
...
Added EGL support into GraphicsWindowX11.
2009-10-30 15:17:38 +00:00
Robert Osfield
0ca4c82e3a
Fixed for GLES1 build
2009-10-30 15:16:44 +00:00
Cedric Pinson
7e0a6fa68a
From Cedric Pinson, Fix warning in osgAnimation, UpdateCallback. Fix bug removing callback in Action. Fix warning Stats
2009-10-29 16:09:07 +00:00
Stephan Maximilian HUBER
50e10d52d7
From Stephan Huber: updated XCode projects
2009-10-29 09:54:52 +00:00
Robert Osfield
d17d7159a1
Ported osgUtil, osgDB, osgGA, NodeKits and plugins to compile against OpenGL ES 1.1 and OpenGL ES 2.0.
2009-10-28 20:31:57 +00:00
Robert Osfield
7e7135be59
From Cedric Pinson, updates to osganimation example to keep in sync with changes with osgAnimation, and introduction of a hardware skinning example
2009-10-28 13:31:24 +00:00
Robert Osfield
c8901d77a2
Fixed build aginst GLES1 and GLES2
2009-10-27 19:17:38 +00:00
Robert Osfield
e720a7a956
Fixed build on OpenGLES-1.1 and OpenGLES-2.0 targets
2009-10-27 18:07:12 +00:00
Cedric Pinson
8454d414a8
From Cedric Pinson, The following commit include:
...
* Refactore of RigGeometry to support hardware skinning
* Refactore of Timeline to split Action in differents files
* Add example how to use hardware skinning
2009-10-27 15:37:13 +00:00
Stephan Maximilian HUBER
874a13ee42
From Stephan Huber: added missing #define
2009-10-27 10:51:20 +00:00
Robert Osfield
37ee16403a
Introduced usage of OSG_GLES*_AVAILABLE macros to headers and .cpp's to enable building against OpenGL ES 1.x and 2.x headers
2009-10-25 11:52:01 +00:00
Robert Osfield
488d108ae0
Updated wrappers
2009-10-25 11:46:11 +00:00