Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
anonymous_namespace{MiniMapTexture.cpp} Namespace Reference

Classes

struct  MinimapUnitVertex
 

Functions

unsigned int ScaleColor (unsigned int color, float x)
 
void DrawTexture (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, Renderer::Backend::IVertexInputLayout *quadVertexInputLayout)
 
void AddEntity (const MinimapUnitVertex &v, VertexArrayIterator< u8[4]> &attrColor, VertexArrayIterator< float[2]> &attrPos, const float entityRadius, const bool useInstancing)
 

Variables

constexpr size_t MAX_ENTITIES_DRAWN = 65536 / 4
 
constexpr size_t MAX_ICON_COUNT = 256
 
constexpr size_t MAX_UNIQUE_ICON_COUNT = 64
 
constexpr size_t ICON_COMBINING_GRID_SIZE = 10
 
constexpr size_t FINAL_TEXTURE_SIZE = 512
 

Function Documentation

◆ AddEntity()

void anonymous_namespace{MiniMapTexture.cpp}::AddEntity ( const MinimapUnitVertex v,
VertexArrayIterator< u8[4]> &  attrColor,
VertexArrayIterator< float[2]> &  attrPos,
const float  entityRadius,
const bool  useInstancing 
)
inline

◆ DrawTexture()

void anonymous_namespace{MiniMapTexture.cpp}::DrawTexture ( Renderer::Backend::IDeviceCommandContext deviceCommandContext,
Renderer::Backend::IVertexInputLayout quadVertexInputLayout 
)

◆ ScaleColor()

unsigned int anonymous_namespace{MiniMapTexture.cpp}::ScaleColor ( unsigned int  color,
float  x 
)

Variable Documentation

◆ FINAL_TEXTURE_SIZE

constexpr size_t anonymous_namespace{MiniMapTexture.cpp}::FINAL_TEXTURE_SIZE = 512
constexpr

◆ ICON_COMBINING_GRID_SIZE

constexpr size_t anonymous_namespace{MiniMapTexture.cpp}::ICON_COMBINING_GRID_SIZE = 10
constexpr

◆ MAX_ENTITIES_DRAWN

constexpr size_t anonymous_namespace{MiniMapTexture.cpp}::MAX_ENTITIES_DRAWN = 65536 / 4
constexpr

◆ MAX_ICON_COUNT

constexpr size_t anonymous_namespace{MiniMapTexture.cpp}::MAX_ICON_COUNT = 256
constexpr

◆ MAX_UNIQUE_ICON_COUNT

constexpr size_t anonymous_namespace{MiniMapTexture.cpp}::MAX_UNIQUE_ICON_COUNT = 64
constexpr