Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

I remembered I had this Aquarium code on my disk somewhere, so thought I'd post it. This is a simple Aquarium application written in C++ for one of my Uni courses, it uses OpenGL for the rendering and requires the GLUT library.

The code demonstrates how a very simple scene graph is put together, the code covers the following aspects of OpenGL:
  • Textures
  • Rotation
  • Translation
  • Rendering modes (wireframe/polygon)
  • Fog
  • Lighting
  • Display Lists

glaqua.png


Each of the rendered objects can be translated, rotated and scaled, there are no special nodes in the graph for this, each object is distinct.

The source code can be found here: glaqua.zip [69.67 Kb] (3385 downloads).



-i

A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.