Wartbed:Rendering Engine Structures

From Dark Omen Wiki

(Difference between revisions)
Jump to: navigation, search

Revision as of 15:52, 29 January 2009

The parent for this article is Data structures

Data structures pertaining to the graphics (presentation, rendering) system of WARTHOG.

Contents

Terrain

WARTBED should be capable of handling both model-based (f.i. Dark Omen) and heightmap-based (f.i. Myth) terrains.

namespace wartbed
{
    namespace ogre
    {
        class Terrain
        {
        };

        class HeightMapTerrain : public Terrain
        {
        };

        class ModelTerrain : public Terrain
        {
        };
    }
}

Example data files

blah blah

Units

WARTBED should be capable of handling both sprite-based (Dark Omen and Myth) regiments and model-based ones. Further, regiments should be able to handle mixed-type units, enabling simultaneous use of sprites and models in the same regiment (allowing for gradual replacement of sprites etc).

namespace wartbed
{
    namespace ogre
    {
        class Unit // unit of the rendering engine 
        {
            wartbed::Unit *pUnit; // the game engine unit
        };

        class SpriteUnit : public Unit
        {
        };

        class ModelUnit : public Unit
        {
        };
    }
}

Example data files

blah blah

Personal tools
communication