Visualization Library 2.0.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Namespaces | Macros | Functions
OpenGL.hpp File Reference
#include <vlGraphics/link_config.hpp>
#include <vlCore/OpenGLDefs.hpp>
#include <vlCore/Log.hpp>
#include <vlGraphics/GL/GLExtensionList.hpp>
#include <vlGraphics/GL/GLESExtensionList.hpp>

Go to the source code of this file.

Namespaces

 vl
 Visualization Library main namespace.
 

Macros

#define VL_EXTENSION(extension)   VLGRAPHICS_EXPORT extern bool Has_##extension;
 
#define VL_GLES_EXTENSION(extension)   VLGRAPHICS_EXPORT extern bool Has_##extension;
 
#define VL_CHECK_OGL()   { if ( ::vl::glcheck( __FILE__, __LINE__ ) ) { VL_TRAP( ) } }
 

Functions

VLGRAPHICS_EXPORT bool vl::initializeOpenGL ()
 To test whether OpenGL has been initialized at least once check vl::Is_OpenGL_Initialized. More...
 
VLGRAPHICS_EXPORT void * vl::getGLProcAddress (const char *name)
 Returns the address of the specified OpenGL function if supported by the active OpenGL driver and profile. More...
 
VLGRAPHICS_EXPORT const char * vl::getGLErrorString (int err)
 Returns a readable string corresponding to the given OpenGL error code as returned by glGetError() More...
 
VLGRAPHICS_EXPORT int vl::glcheck (const char *file, int line)
 

Macro Definition Documentation

◆ VL_CHECK_OGL

#define VL_CHECK_OGL ( )    { if ( ::vl::glcheck( __FILE__, __LINE__ ) ) { VL_TRAP( ) } }

Definition at line 156 of file OpenGL.hpp.

Referenced by vl::Viewport::activate(), vl::PatchParameter::apply(), vl::Light::apply(), vl::TexParameter::apply(), vl::VertexAttrib::apply(), vl::Color::apply(), vl::SecondaryColor::apply(), vl::Normal::apply(), vl::PixelTransfer::apply(), vl::GLSLProgram::apply(), vl::Hint::apply(), vl::CullFace::apply(), vl::FrontFace::apply(), vl::DepthFunc::apply(), vl::DepthMask::apply(), vl::PolygonMode::apply(), vl::ShadeModel::apply(), vl::BlendFunc::apply(), vl::BlendEquation::apply(), vl::SampleCoverage::apply(), vl::AlphaFunc::apply(), vl::Material::apply(), vl::LightModel::apply(), vl::Fog::apply(), vl::PolygonOffset::apply(), vl::LogicOp::apply(), vl::DepthRange::apply(), vl::LineWidth::apply(), vl::PointSize::apply(), vl::PolygonStipple::apply(), vl::LineStipple::apply(), vl::PointParameter::apply(), vl::StencilFunc::apply(), vl::StencilOp::apply(), vl::StencilMask::apply(), vl::BlendColor::apply(), vl::ColorMask::apply(), vl::TextureMatrix::apply(), vl::TexEnv::apply(), vl::TexGen::apply(), vl::TextureSampler::apply(), vl::OpenGLContext::applyEnables(), vl::OpenGLContext::applyRenderStates(), vl::GLSLProgram::applyUniformSet(), vl::GLSLProgram::attachShader(), vl::FBORenderbufferAttachment::bindAttachment(), vl::FBOTexture1DAttachment::bindAttachment(), vl::FBOTexture2DAttachment::bindAttachment(), vl::FBOTextureAttachment::bindAttachment(), vl::FBOTexture3DAttachment::bindAttachment(), vl::FBOTextureLayerAttachment::bindAttachment(), vl::GLSLProgram::bindAttribLocation(), vl::Framebuffer::bindDrawBuffers(), vl::Framebuffer::bindFramebuffer(), vl::FramebufferObject::bindFramebuffer(), vl::Framebuffer::bindReadBuffer(), vl::OpenGLContext::bindVAS(), vl::OpenGLContext::bindVAS_Attribs(), vl::OpenGLContext::bindVAS_Fixed(), vl::OpenGLContext::bindVAS_Reset(), vl::FramebufferObject::checkFramebufferStatus(), vl::GLSLShader::compile(), vl::GLSLShader::compileStatus(), vl::BlitFramebuffer::copyPixels(), vl::CopyTexSubImage1D::copyPixels(), vl::CopyTexSubImage2D::copyPixels(), vl::CopyTexSubImage3D::copyPixels(), vl::BufferObject::createBufferObject(), vl::FramebufferObject::createFBO(), vl::Actor::createOcclusionQuery(), vl::GLSLProgram::createProgram(), vl::FBORenderbufferAttachment::createRenderBuffer(), vl::GLSLShader::createShader(), vl::Texture::createTexture(), vl::FramebufferObject::deleteFBO(), vl::DrawPixels::deletePixelBufferObjects(), vl::FBORenderbufferAttachment::deleteRenderBuffer(), vl::Texture::destroyTexture(), vl::GLSLProgram::detachAllShaders(), vl::GLSLProgram::detachShader(), vl::GLSLProgram::discardAllShaders(), vl::GLSLProgram::getAttribLocation(), vl::GLSLProgram::getProgramBinary(), vl::GLSLProgram::getUniformfv(), vl::GLSLProgram::getUniformiv(), vl::GLSLProgram::getUniformLocation(), vl::GLSLShader::infoLog(), vl::GLSLProgram::infoLog(), vl::OpenGLContext::initGLContext(), vl::initializeOpenGL(), vl::FBORenderbufferAttachment::initStorage(), vl::OpenGLContext::isCleanState(), vl::GLSLProgram::linkProgram(), vl::GLSLProgram::linkStatus(), vl::OpenGLContext::logOpenGLInfo(), vl::BufferObject::mapBufferObject(), vl::GLSLProgram::programBinary(), vl::readPixels(), vl::FramebufferObject::removeAttachment(), vl::OcclusionCullRenderer::render(), vl::Renderer::render(), vl::EdgeRenderer::render(), vl::Renderable::render(), vl::Rendering::render(), vl::DrawArrays::render(), vl::MultiDrawElements< ArrayUShort1 >::render(), vl::DrawElements< ArrayUShort1 >::render(), vl::DrawRangeElements< ArrayUShort1 >::render(), vl::Clear::render_Implementation(), vl::DrawPixels::render_Implementation(), vl::Geometry::render_Implementation(), vl::OcclusionCullRenderer::render_pass1(), vl::OcclusionCullRenderer::render_pass2(), vl::Text::renderBackground(), vl::Text::renderBorder(), vl::Renderer::renderRaw(), vl::Text::renderText(), vl::CoreText::renderText(), vl::OpenGLContext::resetContextStates(), vl::BufferObject::setBufferData(), vl::BufferObject::setBufferSubData(), vl::OpenGLContext::setDefaultRenderState(), vl::Texture::setMipLevel(), vl::Texture::supports(), vl::BufferObject::unmapBufferObject(), vl::Applet::updateEvent(), vl::ProjViewTransfCallback::updateMatrices(), vl::OpenGLContext::useGLSLProgram(), and vl::GLSLProgram::validateProgram().

◆ VL_EXTENSION

#define VL_EXTENSION (   extension)    VLGRAPHICS_EXPORT extern bool Has_##extension;

Definition at line 114 of file OpenGL.hpp.

◆ VL_GLES_EXTENSION

#define VL_GLES_EXTENSION (   extension)    VLGRAPHICS_EXPORT extern bool Has_##extension;

Definition at line 118 of file OpenGL.hpp.