Cbexamples Collection of C++ Builder examples and applications

Quality code samples, tutorials and applications

1. Basic 2D OpenGL

Basic OpenGL setup

Basic 2D OpenGL example in C++ Builder. This example shows how to initialize OpenGL on a form, how to display basic 2D shapes and how to change the colors and aspect ratio. Source code.

2. Draw a line using a mouse in OpenGL

OpenGL mouse

OpenGL example that shows how to draw shapes using a mouse in C++ Builder. Full source code.

3. 3D OpenGL example

OpenGL 3D

OpenGL tutorial on how to initialize 3D world and how to display, move and rotate 3D objects in C++.

The collection