Skip to content

Basic 3D Cube

This example shows how to render a 3D cube using PHP OpenGL.

A 3D Cube drawn with OpenGL in PHP

A 3D Cube drawn with OpenGL in PHP

Run this example:

php examples/02_3D_cube.php