OpenGL simple demos

I’ve done some demos using OpenGL and the awesome toolkit GLUT.

rgbGL

A simple program, where the user can change RGB values in the bars and the background will change to the corresponding RGB value.

balls

In this game we change the balls inside the transparent box in order to make 3 in a row of the same color. This simple game have some cool features, like, the selection box rotates, the balls have specular reflections of  a rotating light in scene and the balls inside the selection box will shrink and expand in a animation loop.

If you want to mess with this programs get the source at: https://github.com/shaggy-spiral/sample-code

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s