Quasar > Samples > OpenGL vertexbuffers

OpenGL vertexbuffers

Overview

This sample demonstrates how OpenGL vertex buffers can be used from Quasar. It suffices to define the right data structures (with position, normal and texcoord). The data structures will be automatically mapped onto OpenGL vertex formats. Then, using a generic vector construction, an OpenGL vertex buffer can be constructed and displayed. This is useful for interactive 3D visualization.

See opengl_cube.q