NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Components.h
Go to the documentation of this file.
00001 
00012 #pragma once
00013 
00014 #include <string>
00015 
00016 namespace GraphicsCore {
00017   /* * * * * * * * * * * * * * * * * * * * * */
00018   // Components
00019   /* * * * * * * * * * * * * * * * * * * * * */
00020   const std::string CAMERA = "camera";
00021     const std::string CAMERA__NAME           = "name";
00022     #define           CAMERA__NAME_TYPE      std::string
00023     const std::string CAMERA__FOV            = "fov";      // (0, PI] - the horizontal field of view in radians
00024     #define           CAMERA__FOV_TYPE       float
00025     const std::string CAMERA__NEAR_CLIP      = "nearclip"; // [0, farclip)
00026     #define           CAMERA__NEAR_CLIP_TYPE float
00027     const std::string CAMERA__FAR_CLIP       = "farclip";  // (nearclip, inf)
00028     #define           CAMERA__FAR_CLIP_TYPE  float
00029     const std::string CAMERA__OFFSET         = "offset";
00030     #define           CAMERA__OFFSET_TYPE    D3DXVECTOR3
00031     const std::string CAMERA__ROTATION       = "rotation";
00032     #define           CAMERA__ROTATION_TYPE  D3DXQUATERNION
00033   
00034   /* * * * * * * * * * * * * * * * * * * * * */
00035   // Renderable Components
00036   /* * * * * * * * * * * * * * * * * * * * * */
00037   const std::string RENDER__SPACE      = "space";
00038   #define           RENDER__SPACE_TYPE ECoordinateSpace
00039   
00040   const std::string MATERIALS__DATA      = "materials";
00041   #define           MATERIALS__DATA_TYPE EnvelopeSPTR
00042   
00043   const std::string TEXTURES__DATA      = "textures";
00044   #define           TEXTURES__DATA_TYPE EnvelopeSPTR
00045   
00046   const std::string   LIGHT_AMBIENT = "amblight";
00047   const std::string   LIGHT_DIRECTIONAL = "dirlight";
00048   const std::string   LIGHT_POINT = "pointlight";
00049     const std::string LIGHT__AMBIENT_COLOR       = "ambient";
00050     #define           LIGHT__AMBIENT_COLOR_TYPE  D3DXCOLOR
00051     const std::string LIGHT__DIFFUSE_COLOR       = "diffuse";
00052     #define           LIGHT__DIFFUSE_COLOR_TYPE  D3DXCOLOR
00053     const std::string LIGHT__SPECULAR_COLOR      = "specular";
00054     #define           LIGHT__SPECULAR_COLOR_TYPE D3DXCOLOR
00055     const std::string LIGHT__RANGE               = "range"; // [0, inf]
00056     #define           LIGHT__RANGE_TYPE          float
00057   
00058   const std::string   HEIGHTMAP = "heightmap";
00059     const std::string HEIGHTMAP__FILE              = "heightmap";
00060     #define           HEIGHTMAP__FILE_TYPE         std::string
00061     const std::string HEIGHTMAP__TEXTURE_FILE      = "texture";
00062     #define           HEIGHTMAP__TEXTURE_FILE_TYPE std::string
00063   
00064   const std::string   MESH = "mesh";
00065     const std::string MESH__FILE           = "file";
00066     #define           MESH__FILE_TYPE      std::string
00067   
00068   const std::string   HELICAL_TUBE = "helicaltube";
00069     const std::string HELICAL_TUBE__RADIUS           = "radius";
00070     #define           HELICAL_TUBE__RADIUS_TYPE      float
00071     const std::string HELICAL_TUBE__LENGTH           = "length";
00072     #define           HELICAL_TUBE__LENGTH_TYPE      float
00073     const std::string HELICAL_TUBE__PITCH            = "pitch";
00074     #define           HELICAL_TUBE__PITCH_TYPE       float
00075     const std::string HELICAL_TUBE__SEGMENTS         = "segments";
00076     #define           HELICAL_TUBE__SEGMENTS_TYPE    unsigned int
00077   
00078   const std::string   TILED_MAP = "tiledmap";
00079   const std::string   POINTLINE = "pointline";
00080   const std::string   SPRITE = "sprite";
00081   const std::string   D3DFONT = "d3dfont";
00082   
00083   const std::string   QUAD = "quad";
00084     const std::string QUAD__WIDTH           = "width";
00085     #define           QUAD__WIDTH_TYPE      float
00086     const std::string QUAD__HEIGHT          = "height";
00087     #define           QUAD__HEIGHT_TYPE     float
00088     const std::string QUAD__ORIGIN          = "origin";
00089     #define           QUAD__ORIGIN_TYPE     unsigned int
00090     const std::string QUAD__ORIENT          = "orient";
00091     #define           QUAD__ORIENT_TYPE     unsigned int
00092 }