Go to the source code of this file.
#define RE_DRIVER_INFO_DETECTED "Detected" |
#define RE_DRIVER_INFO_RENDERER "OpenGL Renderer" |
#define RE_DRIVER_INFO_SHADING_LANGUAGE "OpenGL Shading Language" |
#define RE_DRIVER_INFO_VENDOR "OpenGL Vendor" |
#define RE_DRIVER_INFO_VERSION "OpenGL Version" |
#define RE_FLAG_11_STATE |
( |
|
RE_NAME, |
|
|
|
GL_FLAG |
|
) |
| |
Value:void enable##RE_NAME () {
if( (myState.my##RE_NAME##
State) != 1 && hasGL11() ) {
::glEnable(
GLenum(GL_FLAG) ); myState.my##RE_NAME##State = 1; } }
\
void disable##RE_NAME () {
if( myState.my##RE_NAME##State && hasGL11() ) {
::glDisable(
GLenum(GL_FLAG) ); myState.my##RE_NAME##State = 0; } } \
bool
get##RE_NAME () {
if(myState.my##RE_NAME##State == 3) update##RE_NAME();
return (myState.my##RE_NAME##State==1) ; }
\
void update##RE_NAME () {
if( hasGL11() ) { myState.my##RE_NAME##State =
::glIsEnabled(
GLenum(GL_FLAG) ); }
else { myState.my##RE_NAME##State = 0; } }
\
void invalidate##RE_NAME() {
if(hasGL11()) myState.my##RE_NAME##State=3; }
GLAPI GLboolean GL_APIENTRY glIsEnabled(GLenum cap)
GLAPI void GL_APIENTRY glDisable(GLenum cap)
GLAPI void GL_APIENTRY glEnable(GLenum cap)
Definition at line 1111 of file RE_OGLRender.h.
#define RE_FLAG_STATE |
( |
|
RE_NAME, |
|
|
|
GL_FLAG |
|
) |
| |
Value:void enable##RE_NAME () {
if( myState.my##RE_NAME##
State != 1 ) {
::glEnable( GL_FLAG ); myState.my##RE_NAME##
State = 1; } }
\
void disable##RE_NAME () {
if( myState.my##RE_NAME##
State != 0 ) {
::glDisable( GL_FLAG ); myState.my##RE_NAME##
State = 0; } } \
bool
get##RE_NAME () {
if(myState.my##RE_NAME##
State == 3) update##RE_NAME();
return (myState.my##RE_NAME##
State ==1); }
\
void invalidate##RE_NAME() { myState.my##RE_NAME##
State = 3; }
GLAPI GLboolean GL_APIENTRY glIsEnabled(GLenum cap)
GLAPI void GL_APIENTRY glDisable(GLenum cap)
GLAPI void GL_APIENTRY glEnable(GLenum cap)
Definition at line 1099 of file RE_OGLRender.h.