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

| Views: 10705
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


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] (2390 downloads).


Have comments or feedback on what I wrote? Please share them below! Found this useful? Consider sending me a small tip.
comments powered by Disqus
Other posts you may like...