Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: What "parts" do game consist of?

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Stavanger, Rogaland, Norway
    Posts
    9

    What "parts" do game consist of?

    Hi!

    I'm just curious about how a typical game is structured. What "parts" do OpenGl games consist of (Objectloader.....etc) ?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    Melbourne, Australia
    Posts
    224

    Re: What "parts" do game consist of?

    In game engine you need to control things like:
    -Models
    -Textures
    -Shaders
    -Entities (e.g. monsters, lights, cameras)
    -Level
    -Sound
    -Events
    I'd suggest something like manager for everyone.

    Furthermore you need stuff like:
    -Scripting language
    -UI (User Interface, that is windows, menus etc)
    -Input/Output (console, binds etc)
    -Net support

    And some low level things like:
    -Math
    -Convenient structures to keep data
    -Memory management
    -Files

    OpenGL has very few to do with game engine, since graphics is not the biggest part of game engine.
    You can encapsulate whole OpenGL specific code in few classes derived from virtual ones (for example class that keeps track of state changes), so you're not OpenGL dependent.

    Hope it helps.
    I may have missed something, but I believe those I mentioned are most important in professional game engine.

    [This message has been edited by MickeyMouse (edited 01-06-2003).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •