Home

Resume

Blog

Teikitu


/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/*  »Project«   Teikitu Gaming System (TgS) (∂)
    »File«      TgS Render - Constants.h
    »Author«    Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com)
    »Version«   4.51 / »GUID« A9981407-3EC9-42AF-8B6F-8BE6DD919615                                                                                                        */
/*   -------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*  Copyright: © 2002-2017, Andrew Aye.  All Rights Reserved.
    This software is free for non-commercial use.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
      following conditions are met:
        Redistribution of source code must retain this copyright notice, this list of conditions and the following disclaimers.
        Redistribution in binary form must reproduce this copyright notice, this list of conditions and the following disclaimers in the documentation and other materials
          provided with the distribution.
    The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
    The intellectual property rights of the algorithms used reside with Andrew Aye.
    You may not use this software, in whole or in part, in support of any commercial product without the express written consent of the author.
    There is no warranty or other guarantee of fitness of this software for any purpose. It is provided solely "as is".                                                   */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
#if !defined(_TGS_RENDER_CONSTANTS_H_)
#define _TGS_RENDER_CONSTANTS_H_
#pragma once


/* == Render ============================================================================================================================================================ */

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
/*  Public Constants                                                                                                                                                      */
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */

/* -- Data Constants ---------------------------------------------------------------------------------------------------------------------------------------------------- */

enum { ETgRN_DATA_LIGHT__BAKED_DIRECT      = 1 <<  0 }; /* Entire contribution is baked into the light map */
enum { ETgRN_DATA_LIGHT__BAKED_INDIRECT    = 1 <<  1 }; /* Indirect/bounce lighting is baked into the light map */
enum { ETgRN_DATA_LIGHT__BAKED_SHADOW      = 1 <<  2 }; /* Contributes to the baked shadow map */
enum { ETgRN_DATA_LIGHT__LIVE_LIGHT        = 1 <<  3 }; /* Contributes to the run time lighting environment */
enum { ETgRN_DATA_LIGHT__LIVE_SHADOW       = 1 <<  4 }; /* Contributes to the run time lighting shadow environment */
enum { ETgRN_DATA_LIGHT__HAS_GEOMETRY      = 1 <<  5 }; /* Has custom lighting geometry */
enum { ETgRN_DATA_LIGHT__HAS_UPDATE        = 1 <<  6 }; /* Has a per-frame update on the render thread */
enum { ETgRN_DATA_LIGHT__HAS_BOUNDS        = 1 <<  7 }; /* Has a custom bounds */
enum { ETgRN_DATA_LIGHT__FIXED             = 1 <<  8 }; /* Is considered to be fixed (commonly the environmental lights) */

enum { ETgRN_DATA_MESH__CAST_SHADOW        = 1 <<  0 }; /* Mesh casts a shadow */
enum { ETgRN_DATA_MESH__FIXED              = 1 <<  1 }; /* Mesh is considered to be fixed (commonly the environment) */
enum { ETgRN_DATA_MESH__SKY_BOX            = 1 <<  2 }; /* Mesh is used as part of the sky box */
enum { ETgRN_DATA_MESH__PARTICLE           = 1 <<  3 }; /* Mesh is generated by the particle system */

enum { ETgRN_DATA_MESH__SCREEN_SPACE       = 1 << 22 }; /* The mesh should be rendered in screen space */
enum { ETgRN_DATA_MESH__REFRACTION         = 1 << 23 }; /* The mesh will render into a refraction | reflection buffer */
enum { ETgRN_DATA_MESH__VELOCITY_BLUR      = 1 << 24 }; /* The mesh will write out to a velocity buffer */
enum { ETgRN_DATA_MESH__DEPTH_TRANSPARENT  = 1 << 25 }; /* Mesh is rendered into the depth buffer for post process */
enum { ETgRN_DATA_MESH__TRANSPARENT        = 1 << 26 }; /* Mesh has a driving alpha value forcing it to be transparent */
enum { ETgRN_DATA_MESH__IN_FRUSTUM         = 1 << 27 }; /* The mesh is in the render frame frustum */
enum { ETgRN_DATA_MESH__NO_LOD             = 1 << 28 }; /* There should be no attempt to lod the mesh */
enum { ETgRN_DATA_MESH__NO_LIGHTING        = 1 << 29 }; /* No lighting information should be generated for this mesh */

enum { ETgRN_DATA_MESH__EXCEED_LIGHT_COUNT = 1 << 30 }; /* Used by the debug system - this mesh has exceeded its light limit */


/* -- Colour Constants -------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Using web standard colours from CSS3 definition, assuming colour space is 709 primaries                                                                                */
CLANG_WARN_DISABLE_PUSH(shift-sign-overflow)
enum { ETgRN_COLOUR_709_INDIANRED              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xCD, 0x5C, 0x5C, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTCORAL             = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF0, 0x80, 0x80, 0xFF) };
enum { ETgRN_COLOUR_709_SALMON                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFA, 0x80, 0x72, 0xFF) };
enum { ETgRN_COLOUR_709_DARKSALMON             = (TgSINT32)TgCOLOUR_FROM_RGBA(0xE9, 0x96, 0x7A, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTSALMON            = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xA0, 0x7A, 0xFF) };
enum { ETgRN_COLOUR_709_CRIMSON                = (TgSINT32)TgCOLOUR_FROM_RGBA(0xDC, 0x14, 0x3C, 0xFF) };
enum { ETgRN_COLOUR_709_RED                    = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0x00, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_FIREBRICK              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xB2, 0x22, 0x22, 0xFF) };
enum { ETgRN_COLOUR_709_DARKRED                = (TgSINT32)TgCOLOUR_FROM_RGBA(0x8B, 0x00, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_PINK                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xC0, 0xCB, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTPINK              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xB6, 0xC1, 0xFF) };
enum { ETgRN_COLOUR_709_HOTPINK                = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0x69, 0xB4, 0xFF) };
enum { ETgRN_COLOUR_709_DEEPPINK               = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0x14, 0x93, 0xFF) };
enum { ETgRN_COLOUR_709_MEDIUMVIOLETRED        = (TgSINT32)TgCOLOUR_FROM_RGBA(0xC7, 0x15, 0x85, 0xFF) };
enum { ETgRN_COLOUR_709_PALEVIOLETRED          = (TgSINT32)TgCOLOUR_FROM_RGBA(0xDB, 0x70, 0x93, 0xFF) };
enum { ETgRN_COLOUR_709_CORAL                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0x7F, 0x50, 0xFF) };
enum { ETgRN_COLOUR_709_TOMATO                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0x63, 0x47, 0xFF) };
enum { ETgRN_COLOUR_709_ORANGERED              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0x45, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_DARKORANGE             = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0x8C, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_ORANGE                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xA5, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_GOLD                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xD7, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_YELLOW                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xFF, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTYELLOW            = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xFF, 0xE0, 0xFF) };
enum { ETgRN_COLOUR_709_LEMONCHIFFON           = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xFA, 0xCD, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTGOLDENRODYELLOW   = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFA, 0xFA, 0xD2, 0xFF) };
enum { ETgRN_COLOUR_709_PAPAYAWHIP             = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xEF, 0xD5, 0xFF) };
enum { ETgRN_COLOUR_709_MOCCASIN               = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xE4, 0xB5, 0xFF) };
enum { ETgRN_COLOUR_709_PEACHPUFF              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xDA, 0xB9, 0xFF) };
enum { ETgRN_COLOUR_709_PALEGOLDENROD          = (TgSINT32)TgCOLOUR_FROM_RGBA(0xEE, 0xE8, 0xAA, 0xFF) };
enum { ETgRN_COLOUR_709_KHAKI                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF0, 0xE6, 0x8C, 0xFF) };
enum { ETgRN_COLOUR_709_DARKKHAKI              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xBD, 0xB7, 0x6B, 0xFF) };
enum { ETgRN_COLOUR_709_LAVENDER               = (TgSINT32)TgCOLOUR_FROM_RGBA(0xE6, 0xE6, 0xFA, 0xFF) };
enum { ETgRN_COLOUR_709_THISTLE                = (TgSINT32)TgCOLOUR_FROM_RGBA(0xD8, 0xBF, 0xD8, 0xFF) };
enum { ETgRN_COLOUR_709_PLUM                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0xDD, 0xA0, 0xDD, 0xFF) };
enum { ETgRN_COLOUR_709_VIOLET                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0xEE, 0x82, 0xEE, 0xFF) };
enum { ETgRN_COLOUR_709_ORCHID                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0xDA, 0x70, 0xD6, 0xFF) };
enum { ETgRN_COLOUR_709_FUCHSIA                = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0x00, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_MAGENTA                = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0x00, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_MEDIUMORCHID           = (TgSINT32)TgCOLOUR_FROM_RGBA(0xBA, 0x55, 0xD3, 0xFF) };
enum { ETgRN_COLOUR_709_MEDIUMPURPLE           = (TgSINT32)TgCOLOUR_FROM_RGBA(0x93, 0x70, 0xDB, 0xFF) };
enum { ETgRN_COLOUR_709_AMETHYST               = (TgSINT32)TgCOLOUR_FROM_RGBA(0x99, 0x66, 0xCC, 0xFF) };
enum { ETgRN_COLOUR_709_BLUEVIOLET             = (TgSINT32)TgCOLOUR_FROM_RGBA(0x8A, 0x2B, 0xE2, 0xFF) };
enum { ETgRN_COLOUR_709_DARKVIOLET             = (TgSINT32)TgCOLOUR_FROM_RGBA(0x94, 0x00, 0xD3, 0xFF) };
enum { ETgRN_COLOUR_709_DARKORCHID             = (TgSINT32)TgCOLOUR_FROM_RGBA(0x99, 0x32, 0xCC, 0xFF) };
enum { ETgRN_COLOUR_709_DARKMAGENTA            = (TgSINT32)TgCOLOUR_FROM_RGBA(0x8B, 0x00, 0x8B, 0xFF) };
enum { ETgRN_COLOUR_709_PURPLE                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0x80, 0x00, 0x80, 0xFF) };
enum { ETgRN_COLOUR_709_INDIGO                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0x4B, 0x00, 0x82, 0xFF) };
enum { ETgRN_COLOUR_709_SLATEBLUE              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x6A, 0x5A, 0xCD, 0xFF) };
enum { ETgRN_COLOUR_709_DARKSLATEBLUE          = (TgSINT32)TgCOLOUR_FROM_RGBA(0x48, 0x3D, 0x8B, 0xFF) };
enum { ETgRN_COLOUR_709_MEDIUMSLATEBLUE        = (TgSINT32)TgCOLOUR_FROM_RGBA(0x7B, 0x68, 0xEE, 0xFF) };
enum { ETgRN_COLOUR_709_GREENYELLOW            = (TgSINT32)TgCOLOUR_FROM_RGBA(0xAD, 0xFF, 0x2F, 0xFF) };
enum { ETgRN_COLOUR_709_CHARTREUSE             = (TgSINT32)TgCOLOUR_FROM_RGBA(0x7F, 0xFF, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_LAWNGREEN              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x7C, 0xFC, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_LIME                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0xFF, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_LIMEGREEN              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x32, 0xCD, 0x32, 0xFF) };
enum { ETgRN_COLOUR_709_PALEGREEN              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x98, 0xFB, 0x98, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTGREEN             = (TgSINT32)TgCOLOUR_FROM_RGBA(0x90, 0xEE, 0x90, 0xFF) };
enum { ETgRN_COLOUR_709_MEDIUMSPRINGGREEN      = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0xFA, 0x9A, 0xFF) };
enum { ETgRN_COLOUR_709_SPRINGGREEN            = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0xFF, 0x7F, 0xFF) };
enum { ETgRN_COLOUR_709_MEDIUMSEAGREEN         = (TgSINT32)TgCOLOUR_FROM_RGBA(0x3C, 0xB3, 0x71, 0xFF) };
enum { ETgRN_COLOUR_709_SEAGREEN               = (TgSINT32)TgCOLOUR_FROM_RGBA(0x2E, 0x8B, 0x57, 0xFF) };
enum { ETgRN_COLOUR_709_FORESTGREEN            = (TgSINT32)TgCOLOUR_FROM_RGBA(0x22, 0x8B, 0x22, 0xFF) };
enum { ETgRN_COLOUR_709_GREEN                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0x80, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_DARKGREEN              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0x64, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_YELLOWGREEN            = (TgSINT32)TgCOLOUR_FROM_RGBA(0x9A, 0xCD, 0x32, 0xFF) };
enum { ETgRN_COLOUR_709_OLIVEDRAB              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x6B, 0x8E, 0x23, 0xFF) };
enum { ETgRN_COLOUR_709_OLIVE                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0x80, 0x80, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_DARKOLIVEGREEN         = (TgSINT32)TgCOLOUR_FROM_RGBA(0x55, 0x6B, 0x2F, 0xFF) };
enum { ETgRN_COLOUR_709_MEDIUMAQUAMARINE       = (TgSINT32)TgCOLOUR_FROM_RGBA(0x66, 0xCD, 0xAA, 0xFF) };
enum { ETgRN_COLOUR_709_DARKSEAGREEN           = (TgSINT32)TgCOLOUR_FROM_RGBA(0x8F, 0xBC, 0x8F, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTSEAGREEN          = (TgSINT32)TgCOLOUR_FROM_RGBA(0x20, 0xB2, 0xAA, 0xFF) };
enum { ETgRN_COLOUR_709_DARKCYAN               = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0x8B, 0x8B, 0xFF) };
enum { ETgRN_COLOUR_709_TEAL                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0x80, 0x80, 0xFF) };
enum { ETgRN_COLOUR_709_AQUA                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0xFF, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_CYAN                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0xFF, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTCYAN              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xE0, 0xFF, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_PALETURQUOISE          = (TgSINT32)TgCOLOUR_FROM_RGBA(0xAF, 0xEE, 0xEE, 0xFF) };
enum { ETgRN_COLOUR_709_AQUAMARINE             = (TgSINT32)TgCOLOUR_FROM_RGBA(0x7F, 0xFF, 0xD4, 0xFF) };
enum { ETgRN_COLOUR_709_TURQUOISE              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x40, 0xE0, 0xD0, 0xFF) };
enum { ETgRN_COLOUR_709_MEDIUMTURQUOISE        = (TgSINT32)TgCOLOUR_FROM_RGBA(0x48, 0xD1, 0xCC, 0xFF) };
enum { ETgRN_COLOUR_709_DARKTURQUOISE          = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0xCE, 0xD1, 0xFF) };
enum { ETgRN_COLOUR_709_CADETBLUE              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x5F, 0x9E, 0xA0, 0xFF) };
enum { ETgRN_COLOUR_709_STEELBLUE              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x46, 0x82, 0xB4, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTSTEELBLUE         = (TgSINT32)TgCOLOUR_FROM_RGBA(0xB0, 0xC4, 0xDE, 0xFF) };
enum { ETgRN_COLOUR_709_POWDERBLUE             = (TgSINT32)TgCOLOUR_FROM_RGBA(0xB0, 0xE0, 0xE6, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTBLUE              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xAD, 0xD8, 0xE6, 0xFF) };
enum { ETgRN_COLOUR_709_SKYBLUE                = (TgSINT32)TgCOLOUR_FROM_RGBA(0x87, 0xCE, 0xEB, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTSKYBLUE           = (TgSINT32)TgCOLOUR_FROM_RGBA(0x87, 0xCE, 0xFA, 0xFF) };
enum { ETgRN_COLOUR_709_DEEPSKYBLUE            = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0xBF, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_DODGERBLUE             = (TgSINT32)TgCOLOUR_FROM_RGBA(0x1E, 0x90, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_CORNFLOWERBLUE         = (TgSINT32)TgCOLOUR_FROM_RGBA(0x64, 0x95, 0xED, 0xFF) };
enum { ETgRN_COLOUR_709_ROYALBLUE              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x41, 0x69, 0xE1, 0xFF) };
enum { ETgRN_COLOUR_709_BLUE                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0x00, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_MEDIUMBLUE             = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0x00, 0xCD, 0xFF) };
enum { ETgRN_COLOUR_709_DARKBLUE               = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0x00, 0x8B, 0xFF) };
enum { ETgRN_COLOUR_709_NAVY                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0x00, 0x80, 0xFF) };
enum { ETgRN_COLOUR_709_MIDNIGHTBLUE           = (TgSINT32)TgCOLOUR_FROM_RGBA(0x19, 0x19, 0x70, 0xFF) };
enum { ETgRN_COLOUR_709_CORNSILK               = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xF8, 0xDC, 0xFF) };
enum { ETgRN_COLOUR_709_BLANCHEDALMOND         = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xEB, 0xCD, 0xFF) };
enum { ETgRN_COLOUR_709_BISQUE                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xE4, 0xC4, 0xFF) };
enum { ETgRN_COLOUR_709_NAVAJOWHITE            = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xDE, 0xAD, 0xFF) };
enum { ETgRN_COLOUR_709_WHEAT                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF5, 0xDE, 0xB3, 0xFF) };
enum { ETgRN_COLOUR_709_BURLYWOOD              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xDE, 0xB8, 0x87, 0xFF) };
enum { ETgRN_COLOUR_709_TAN                    = (TgSINT32)TgCOLOUR_FROM_RGBA(0xD2, 0xB4, 0x8C, 0xFF) };
enum { ETgRN_COLOUR_709_ROSYBROWN              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xBC, 0x8F, 0x8F, 0xFF) };
enum { ETgRN_COLOUR_709_SANDYBROWN             = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF4, 0xA4, 0x60, 0xFF) };
enum { ETgRN_COLOUR_709_GOLDENROD              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xDA, 0xA5, 0x20, 0xFF) };
enum { ETgRN_COLOUR_709_DARKGOLDENROD          = (TgSINT32)TgCOLOUR_FROM_RGBA(0xB8, 0x86, 0x0B, 0xFF) };
enum { ETgRN_COLOUR_709_PERU                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0xCD, 0x85, 0x3F, 0xFF) };
enum { ETgRN_COLOUR_709_CHOCOLATE              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xD2, 0x69, 0x1E, 0xFF) };
enum { ETgRN_COLOUR_709_SADDLEBROWN            = (TgSINT32)TgCOLOUR_FROM_RGBA(0x8B, 0x45, 0x13, 0xFF) };
enum { ETgRN_COLOUR_709_SIENNA                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0xA0, 0x52, 0x2D, 0xFF) };
enum { ETgRN_COLOUR_709_BROWN                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0xA5, 0x2A, 0x2A, 0xFF) };
enum { ETgRN_COLOUR_709_MAROON                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0x80, 0x00, 0x00, 0xFF) };
enum { ETgRN_COLOUR_709_WHITE                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xFF, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_SNOW                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xFA, 0xFA, 0xFF) };
enum { ETgRN_COLOUR_709_HONEYDEW               = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF0, 0xFF, 0xF0, 0xFF) };
enum { ETgRN_COLOUR_709_MINTCREAM              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF5, 0xFF, 0xFA, 0xFF) };
enum { ETgRN_COLOUR_709_AZURE                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF0, 0xFF, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_ALICEBLUE              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF0, 0xF8, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_GHOSTWHITE             = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF8, 0xF8, 0xFF, 0xFF) };
enum { ETgRN_COLOUR_709_WHITESMOKE             = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF5, 0xF5, 0xF5, 0xFF) };
enum { ETgRN_COLOUR_709_SEASHELL               = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xF5, 0xEE, 0xFF) };
enum { ETgRN_COLOUR_709_BEIGE                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0xF5, 0xF5, 0xDC, 0xFF) };
enum { ETgRN_COLOUR_709_OLDLACE                = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFD, 0xF5, 0xE6, 0xFF) };
enum { ETgRN_COLOUR_709_FLORALWHITE            = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xFA, 0xF0, 0xFF) };
enum { ETgRN_COLOUR_709_IVORY                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xFF, 0xF0, 0xFF) };
enum { ETgRN_COLOUR_709_ANTIQUEWHITE           = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFA, 0xEB, 0xD7, 0xFF) };
enum { ETgRN_COLOUR_709_LINEN                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFA, 0xF0, 0xE6, 0xFF) };
enum { ETgRN_COLOUR_709_LAVENDERBLUSH          = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xF0, 0xF5, 0xFF) };
enum { ETgRN_COLOUR_709_MISTYROSE              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xFF, 0xE4, 0xE1, 0xFF) };
enum { ETgRN_COLOUR_709_GAINSBORO              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xDC, 0xDC, 0xDC, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTGREY              = (TgSINT32)TgCOLOUR_FROM_RGBA(0xD3, 0xD3, 0xD3, 0xFF) };
enum { ETgRN_COLOUR_709_SILVER                 = (TgSINT32)TgCOLOUR_FROM_RGBA(0xC0, 0xC0, 0xC0, 0xFF) };
enum { ETgRN_COLOUR_709_DARKGRAY               = (TgSINT32)TgCOLOUR_FROM_RGBA(0xA9, 0xA9, 0xA9, 0xFF) };
enum { ETgRN_COLOUR_709_GRAY                   = (TgSINT32)TgCOLOUR_FROM_RGBA(0x80, 0x80, 0x80, 0xFF) };
enum { ETgRN_COLOUR_709_DIMGRAY                = (TgSINT32)TgCOLOUR_FROM_RGBA(0x69, 0x69, 0x69, 0xFF) };
enum { ETgRN_COLOUR_709_LIGHTSLATEGRAY         = (TgSINT32)TgCOLOUR_FROM_RGBA(0x77, 0x88, 0x99, 0xFF) };
enum { ETgRN_COLOUR_709_SLATEGRAY              = (TgSINT32)TgCOLOUR_FROM_RGBA(0x70, 0x80, 0x90, 0xFF) };
enum { ETgRN_COLOUR_709_DARKSLATEGRAY          = (TgSINT32)TgCOLOUR_FROM_RGBA(0x2F, 0x4F, 0x4F, 0xFF) };
enum { ETgRN_COLOUR_709_BLACK                  = (TgSINT32)TgCOLOUR_FROM_RGBA(0x00, 0x00, 0x00, 0xFF) };
CLANG_WARN_DISABLE_POP()

/* -- Draw Constants ---------------------------------------------------------------------------------------------------------------------------------------------------- */

TgTYPE_ENUM(ETgRN_PRIMITIVE_TYPE, TgSINT32,

    ETgRN_PRIMITIVE_TYPE__TRIANGLE_LIST,
    ETgRN_PRIMITIVE_TYPE__QUAD_LIST,
    ETgRN_PRIMITIVE_TYPE__MAX,
    ETgRN_PRIMITIVE_TYPE__UNKNOWN,
);


/* -- Vertex Descriptors ------------------------------------------------------------------------------------------------------------------------------------------------ */

/* Create a vertex enumeration */

#define RENDER_VERTEX_LAYOUT_START(A,B,C)       ETgRN_##A,
#define RENDER_VERTEX_LAYOUT(A,B,C,D,E,...)
#define RENDER_VERTEX_LAYOUT_END(A)
#define RENDER_VERTEX_ALIGNMENT_CHECK(A,B)

typedef enum
{
    ETgRN_VERTEX_INVALID,
    #include "TgS Render - Type [Vertex].h_inc"
    ETgRN_VERTEX_MAX
} ETgRN_VERTEX;
TgTYPE_PREFIX( ETgRN_VERTEX );

#undef RENDER_VERTEX_LAYOUT_START
#undef RENDER_VERTEX_LAYOUT
#undef RENDER_VERTEX_LAYOUT_END
#undef RENDER_VERTEX_ALIGNMENT_CHECK


/* ====================================================================================================================================================================== */
#endif