Introduced new scheme for setting up which version of OpenGL/OpenGL ES the OSG is compiled for.
To select standard OpenGL 1/2 build with full backwards and forwards comtability use: ./configure make OR ./configure -DOPENGL_PROFILE=GL2 To select OpenGL 3 core profile build using GL3/gl3.h header: ./configure -DOPENGL_PROFILE=GL3 To select OpenGL Arb core profile build using GL/glcorearb.h header: ./configure -DOPENGL_PROFILE=GLCORE To select OpenGL ES 1.1 profile use: ./configure -DOPENGL_PROFILE=GLES1 To select OpenGL ES 2 profile use: ./configure -DOPENGL_PROFILE=GLES2 Using OPENGL_PROFILE will select all the appropriate features required so no other settings in cmake will need to be adjusted. The new configuration options are stored in the include/osg/OpenGL header that deprecates the old include/osg/GL header.
This commit is contained in:
@@ -1495,9 +1495,9 @@ class OSG_EXPORT State : public Referenced, public Observer
|
||||
{
|
||||
return osg::Timer::instance()->delta_s(_startTick, _gpuTick);
|
||||
}
|
||||
GLuint64EXT getGpuTimestamp() const { return _gpuTimestamp; }
|
||||
GLuint64 getGpuTimestamp() const { return _gpuTimestamp; }
|
||||
|
||||
void setGpuTimestamp(Timer_t tick, GLuint64EXT timestamp)
|
||||
void setGpuTimestamp(Timer_t tick, GLuint64 timestamp)
|
||||
{
|
||||
_gpuTick = tick;
|
||||
_gpuTimestamp = timestamp;
|
||||
@@ -1930,8 +1930,8 @@ class OSG_EXPORT State : public Referenced, public Observer
|
||||
|
||||
Timer_t _startTick;
|
||||
Timer_t _gpuTick;
|
||||
GLuint64EXT _gpuTimestamp;
|
||||
int _timestampBits;
|
||||
GLuint64 _gpuTimestamp;
|
||||
int _timestampBits;
|
||||
};
|
||||
|
||||
inline void State::pushModeList(ModeMap& modeMap,const StateSet::ModeList& modeList)
|
||||
|
||||
Reference in New Issue
Block a user