32 #ifndef OpenGL_INCLUDE_ONCE 33 #define OpenGL_INCLUDE_ONCE 114 #define VL_EXTENSION(extension) VLGRAPHICS_EXPORT extern bool Has_##extension; 115 #include <vlGraphics/GL/GLExtensionList.hpp> 118 #define VL_GLES_EXTENSION(extension) VLGRAPHICS_EXPORT extern bool Has_##extension; 119 #include <vlGraphics/GL/GLESExtensionList.hpp> 120 #undef VL_GLES_EXTENSION 122 #if defined(VL_OPENGL) 123 #define VL_GL_FUNCTION(TYPE, NAME) VLGRAPHICS_EXPORT extern TYPE NAME; 124 #include <vlGraphics/GL/GLFunctionList.hpp> 125 #undef VL_GL_FUNCTION 128 #if defined(VL_OPENGL_ES1) 129 #define VL_GL_FUNCTION(TYPE, NAME) VLGRAPHICS_EXPORT extern TYPE NAME; 130 #include <vlGraphics/GL/GLES1FunctionList.hpp> 131 #undef VL_GL_FUNCTION 134 #if defined(VL_OPENGL_ES2) 135 #define VL_GL_FUNCTION(TYPE, NAME) VLGRAPHICS_EXPORT extern TYPE NAME; 136 #include <vlGraphics/GL/GLES2FunctionList.hpp> 137 #undef VL_GL_FUNCTION 155 #if defined( _DEBUG ) || !defined( NDEBUG ) || VL_FORCE_CHECKS == 1 156 #define VL_CHECK_OGL( ) { if ( ::vl::glcheck( __FILE__, __LINE__ ) ) { VL_TRAP( ) } } 158 #define VL_CHECK_OGL( ); 169 #if defined(VL_OPENGL) 170 #include <vlGraphics/GL/VL_Functions_GL.hpp> 173 #if defined(VL_OPENGL_ES1) 174 #include <vlGraphics/GL/VL_Functions_GLES1.hpp> 177 #if defined(VL_OPENGL_ES2) 178 #include <vlGraphics/GL/VL_Functions_GLES2.hpp> bool Has_GLES_Version_1_1
bool Has_Cubemap_Textures
const GLenum Translate_Enable[]
bool Has_Texture_Multisample
bool Has_GLSL_140_Or_More
bool Has_glGenerateMipmaps
const char * Translate_Enable_String[]
bool Has_GLSL_410_Or_More
bool Has_GLSL_150_Or_More
bool Has_GLSL_400_Or_More
VLGRAPHICS_EXPORT void * getGLProcAddress(const char *name)
Returns the address of the specified OpenGL function if supported by the active OpenGL driver and pro...
bool Is_OpenGL_Forward_Compatible
OpenGL: true if the current context has been created with the WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB ...
VLGRAPHICS_EXPORT int glcheck(const char *file, int line)
bool Has_Texture_Rectangle
bool Has_Primitive_Instancing
bool Is_OpenGL_Core_Profile
OpenGL: true if the current context has been created with the WGL_CONTEXT_CORE_PROFILE_BIT_ARB or equ...
bool Is_OpenGL_Initialized
Set to true if the last call to vl::initializeOpenGL() was succesful.
Visualization Library main namespace.
bool Has_GLES_Version_2_0
bool Has_Transform_Feedback
bool Has_GLSL_120_Or_More
VLGRAPHICS_EXPORT bool initializeOpenGL()
To test whether OpenGL has been initialized at least once check vl::Is_OpenGL_Initialized.
bool Has_GL_GENERATE_MIPMAP
#define VLGRAPHICS_EXPORT
VLGRAPHICS_EXPORT const char * getGLErrorString(int err)
Returns a readable string corresponding to the given OpenGL error code as returned by glGetError() ...
bool Has_GLSL_330_Or_More
bool Has_GLSL_130_Or_More
bool Has_Fixed_Function_Pipeline
OpenGL: true if !Is_OpenGL_Forward_Compatible && !Is_OpenGL_Core_Profile OpenGL ES 1: always true Ope...
bool Has_Primitive_Restart
bool Is_Enable_Supported[EN_EnableCount]