Visualization Library 2.1.0

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

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
OpenGL vs VL Feature Mapping
The table below shows how the most important OpenGL features and functions map to Visualization Library classes and functions.
OpenGL functions Visualization Library classes and functions
Texturing

Mipmaps are automatically generated when requested by the texture constructor or by one of the vl::Texture::prepareTexture*() methods. The texture generation uses the hardware acceleration where available otherwise glu is used.

You can use them as usual:

vl::Texture* texture = ... init texture ...
glBindTexture(GL_TEXTURE_2D, texture->handle());
glTexSubImage2D(GL_TEXTURE_2D, ...);
glBindTexture(GL_TEXTURE_2D, 0);
            

Matrices

Camera viewing and projection matrices

Vertex attributes

Draw commands

Enables

glReadPixels

OpenGL Shading Language

Vertex and pixel buffer objects (BufferObject, PBO)

Framebuffer object extension (see http://www.opengl.org/registry/specs/ARB/framebuffer_object.txt)
  • glFramebufferTexture1D()
  • glFramebufferTexture2D()
  • glFramebufferTexture()
  • glFramebufferTexture3D()
  • glFramebufferTextureLayer()
  • glCheckFramebufferStatus()
  • glGenRenderbuffers()
  • glDeleteRenderbuffers()
  • glRenderbufferStorage()
  • glFramebufferRenderbuffer()
  • glGenFramebuffers()
  • glDeleteFramebuffers()
  • glBindFramebuffer()

Display lists

Render states

OpenGL Enables
  • GL_ALPHA_TEST
  • GL_BLEND
  • GL_COLOR_LOGIC_OP
  • GL_LIGHTING
  • GL_COLOR_SUM
  • GL_CULL_FACE
  • GL_DEPTH_TEST
  • GL_FOG
  • GL_LINE_SMOOTH
  • GL_LINE_STIPPLE
  • GL_POLYGON_STIPPLE
  • GL_NORMALIZE
  • GL_POINT_SMOOTH
  • GL_POINT_SPRITE
  • GL_POLYGON_SMOOTH
  • GL_POLYGON_OFFSET_FILL
  • GL_POLYGON_OFFSET_LINE
  • GL_POLYGON_OFFSET_POINT
  • GL_RESCALE_NORMAL
  • GL_STENCIL_TEST
  • GL_VERTEX_PROGRAM_POINT_SIZE
  • GL_VERTEX_PROGRAM_TWO_SIDE
  • GL_SAMPLE_ALPHA_TO_COVERAGE
  • GL_SAMPLE_ALPHA_TO_ONE
  • GL_SAMPLE_COVERAGE
  • GL_LIGHTi
  • GL_CLIP_PLANEi
  • GL_SCISSOR_TEST
  • GL_COLOR_MATERIAL
  • GL_TEXTURE_1D
  • GL_TEXTURE_2D
  • GL_TEXTURE_3D
  • GL_TEXTURE_CUBE_MAP
  • GL_TEXTURE_GEN_Q/R/S/T
  • GL_INDEX_LOGIC_OP