Wartbed:Rendering Engine Structures

From Dark Omen Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page)
Line 1: Line 1:
==Terrain==
==Terrain==
WARTBED should be capable of handling both model-based (f.i. Dark Omen) and heightmap-based (f.i. Myth) terrains.  
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==
==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).
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
[[category:WARTBED]]
[[category:WARTBED]]

Revision as of 13:53, 27 July 2008

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