Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]

OpenGL vs VL function 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::setupTexture*() methods. The texture generation uses the hardware acceleration where available otherwise glu is used.

Not mapped, you can use them like this:
vl::Texture* texture = ... init texture ...
glBindTexture(GL_TEXTURE_2D, texture->handle());
glTexSubImage2D(GL_TEXTURE_2D, ...);
				

Matrices

Camera viewing and projection matrices

Vertex attributes

Draw commands

Enables

glReadPixels

OpenGL Shading Language

Vertex and pixel buffer objects (VBO, PBO)

Framebuffer object extension
See http://oss.sgi.com/projects/ogl-sample/registry/EXT/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_MULTISAMPLE
  • 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_DITHER
  • GL_INDEX_LOGIC_OP

Visualization Library v2010.06 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Tue Jun 1 00:57:09 2010.
Permission is granted to use this page to write and publish articles regarding Visualization Library.