Skip to content
Colored and lighting cubes with a camera rotating around them
C++ Objective-C Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vs/OpenGLDemo/v14
Debug
OpenGLDemo
glm
ipch/OPENGLDEMO-a8f1e383
packages
OpenGLDemo.VC.db
OpenGLDemo.sln
README.md

README.md

OpenGLDemo

I made this program to give an example of working code in C++.

I implemented everything including the shaders (very simple ones).

I generate the cubes and the disposition using one class to handle the generation and a class representing the cubes.

Every frame the camera moves (not the cubes) around the circle.

I generate the colors of the cubes according to their position in the circle.

The light is hardcoded in the shader.

The source code is in the subfolder OpenGLDemo.

Screen Examples:

alt tag alt tag alt tag

You can’t perform that action at this time.