Colobot
Classes | Namespaces | Enumerations
engine.h File Reference

Main graphics engine - CEngine class. More...

#include "common/singleton.h"
#include "graphics/core/color.h"
#include "graphics/core/material.h"
#include "graphics/core/texture.h"
#include "graphics/core/vertex.h"
#include "math/intpoint.h"
#include "math/matrix.h"
#include "math/point.h"
#include "math/sphere.h"
#include "math/vector.h"
#include <string>
#include <vector>
#include <map>
#include <set>
#include <memory>
#include <unordered_map>
Include dependency graph for engine.h:

Go to the source code of this file.

Classes

struct  Gfx::EngineTriangle
 A triangle drawn by the graphics engine. More...
 
struct  Gfx::EngineBaseObjDataTier
 Tier 3 of object tree (data) More...
 
struct  Gfx::EngineBaseObjTexTier
 Tier 2 of base object tree (textures) More...
 
struct  Gfx::EngineBaseObject
 
struct  Gfx::EngineObject
 Object drawn by the graphics engine. More...
 
struct  Gfx::EngineShadow
 Shadow drawn by the graphics engine. More...
 
struct  Gfx::EngineGroundSpot
 A spot (large shadow) drawn on the ground by the graphics engine. More...
 
struct  Gfx::EngineGroundMark
 A mark on ground drawn by the graphics engine. More...
 
class  Gfx::CEngine
 The graphics engine. More...
 
struct  Gfx::CEngine::WriteScreenShotData
 

Namespaces

 Gfx
 Namespace for (new) graphics code.
 

Enumerations

enum  Gfx::EngineRenderState {
  Gfx::ENG_RSTATE_NORMAL = 0, Gfx::ENG_RSTATE_TTEXTURE_BLACK = (1<<0), Gfx::ENG_RSTATE_TTEXTURE_WHITE = (1<<1), Gfx::ENG_RSTATE_TDIFFUSE = (1<<2),
  Gfx::ENG_RSTATE_WRAP = (1<<3), Gfx::ENG_RSTATE_CLAMP = (1<<4), Gfx::ENG_RSTATE_LIGHT = (1<<5), Gfx::ENG_RSTATE_DUAL_BLACK = (1<<6),
  Gfx::ENG_RSTATE_DUAL_WHITE = (1<<7), Gfx::ENG_RSTATE_PART1 = (1<<8), Gfx::ENG_RSTATE_PART2 = (1<<9), Gfx::ENG_RSTATE_PART3 = (1<<10),
  Gfx::ENG_RSTATE_PART4 = (1<<11), Gfx::ENG_RSTATE_2FACE = (1<<12), Gfx::ENG_RSTATE_ALPHA = (1<<13), Gfx::ENG_RSTATE_SECOND = (1<<14),
  Gfx::ENG_RSTATE_FOG = (1<<15), Gfx::ENG_RSTATE_TCOLOR_BLACK = (1<<16), Gfx::ENG_RSTATE_TCOLOR_WHITE = (1<<17), Gfx::ENG_RSTATE_TEXT = (1<<18),
  Gfx::ENG_RSTATE_OPAQUE_TEXTURE = (1<<19), Gfx::ENG_RSTATE_OPAQUE_COLOR = (1<<20), Gfx::ENG_RSTATE_TTEXTURE_ALPHA = (1<<21), Gfx::ENG_RSTATE_TCOLOR_ALPHA = (1<<22)
}
 Render state of graphics engine. More...
 
enum  Gfx::EngineTriangleType { Gfx::ENG_TRIANGLE_TYPE_TRIANGLES = 1, Gfx::ENG_TRIANGLE_TYPE_SURFACE = 2 }
 Type of triangles drawn for engine objects. More...
 
enum  Gfx::EngineObjectType {
  Gfx::ENG_OBJTYPE_NULL = 0, Gfx::ENG_OBJTYPE_TERRAIN = 1, Gfx::ENG_OBJTYPE_FIX = 2, Gfx::ENG_OBJTYPE_VEHICLE = 3,
  Gfx::ENG_OBJTYPE_DESCENDANT = 4, Gfx::ENG_OBJTYPE_QUARTZ = 5, Gfx::ENG_OBJTYPE_METAL = 6
}
 Class of graphics engine object. More...
 
enum  Gfx::EngineShadowType { Gfx::ENG_SHADOW_NORM = 0, Gfx::ENG_SHADOW_WORM = 1 }
 
enum  Gfx::EngineGroundMarkPhase { Gfx::ENG_GR_MARK_PHASE_NULL = 0, Gfx::ENG_GR_MARK_PHASE_INC = 1, Gfx::ENG_GR_MARK_PHASE_FIX = 2, Gfx::ENG_GR_MARK_PHASE_DEC = 3 }
 Phase of life of an EngineGroundMark. More...
 
enum  Gfx::EngineTextureMapping {
  ENG_TEX_MAPPING_X = 1, ENG_TEX_MAPPING_Y = 2, ENG_TEX_MAPPING_Z = 3, ENG_TEX_MAPPING_1X = 4,
  ENG_TEX_MAPPING_1Y = 5, ENG_TEX_MAPPING_1Z = 6
}
 Type of texture mapping. More...
 
enum  Gfx::EngineMouseType {
  Gfx::ENG_MOUSE_NORM = 0, Gfx::ENG_MOUSE_WAIT = 1, Gfx::ENG_MOUSE_EDIT = 2, Gfx::ENG_MOUSE_HAND = 3,
  Gfx::ENG_MOUSE_CROSS = 4, Gfx::ENG_MOUSE_SHOW = 5, Gfx::ENG_MOUSE_NO = 6, Gfx::ENG_MOUSE_MOVE = 7,
  Gfx::ENG_MOUSE_MOVEH = 8, Gfx::ENG_MOUSE_MOVEV = 9, Gfx::ENG_MOUSE_MOVED = 10, Gfx::ENG_MOUSE_MOVEI = 11,
  Gfx::ENG_MOUSE_SCROLLL = 12, Gfx::ENG_MOUSE_SCROLLR = 13, Gfx::ENG_MOUSE_SCROLLU = 14, Gfx::ENG_MOUSE_SCROLLD = 15,
  Gfx::ENG_MOUSE_TARGET = 16, Gfx::ENG_MOUSE_COUNT
}
 Type of mouse cursor displayed in-game. More...
 

Detailed Description

Main graphics engine - CEngine class.