Skip to content

Saiteja-Reddy/OpenGL-BLOXORZ-Idea---Miniclip-

Repository files navigation

BLOXORZ

  • Made on MacOS Sierra
  • Dependencies as in Makefile
  • Use Makefile.linux for linux
  • Audio / Images - from google results - not mine

Demo

Demo GIF

Font Library - FTGL3

Simple OpenGL Image Library - SOIL (Textures)

Sample Code - Changes (Fonts)

  • initGL and draw functions have been modified to include font rendering
  • Additional camera defined for fonts in draw() which stays fixed while the original camera keeps rotating.
  • Vertex shader code for rendering font is a bit different from the vertex shader code for rendering other geometry.
  • FTExtrude style font rendering is used in example. Other styles can be found at: http://ftgl.sourceforge.net/docs/html/ftgl-tutorial.html
  • Font can be animated and colors changed every frame.

Sample Code - Changes (Textures)

  • initGL and draw functions have been modified to include loading textures and corresponding texture shaders
  • create3DTexturedObject and draw3DTexturedObject use texture buffers instead of color buffer.
  • Vertex and fragment shaders for textured rendering are very different from the shaders of normal rendering.
  • NOTE width and height of images used for textures should be power of 2 on some graphic cards. (beach2.png - power of two image)

About

An OpenGL Clone of the popular Miniclip Game Bloxorz.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages