igor::iRendererUtils Class Reference

#include <iRendererUtils.h>

Static Public Member Functions

static uint32 getSize (iShaderDataType type)
 
static uint32 getComponentCount (iShaderDataType type)
 
static uint32 convertType (iShaderDataType type)
 
static uint32 convertType (iShaderObjectType type)
 
static uint32 convertType (iColorFormat format, bool sized=false)
 
static uint32 convertType (iRenderPrimitive type)
 
static uint32 convertType (iStencilFunction type)
 
static uint32 convertType (iStencilOperation type)
 
static iaString getTextureSamplerName (uint32 texUnit)
 

Detailed Description

renderer utils shared across renderer, shader etc implementations

Member Function Documentation

◆ convertType() [1/6]

uint32 igor::iRendererUtils::convertType ( iColorFormat  format,
bool  sized = false 
)
static
Returns
ogl color format type for given format type
Parameters
formatthe igor color format type
sizedif true it returns the sized internal format

◆ convertType() [2/6]

uint32 igor::iRendererUtils::convertType ( iRenderPrimitive  type)
static
Returns
openGL render primitive type for given igor type
Parameters
typethe igor render primitive type

◆ convertType() [3/6]

GLenum igor::iRendererUtils::convertType ( iShaderDataType  type)
static
Returns
opengl type for given shader data type
Parameters
typethe shader data type

◆ convertType() [4/6]

uint32 igor::iRendererUtils::convertType ( iShaderObjectType  type)
static
Returns
openGL shader object type for given igor type
Parameters
typethe igor shader object type

◆ convertType() [5/6]

uint32 igor::iRendererUtils::convertType ( iStencilFunction  type)
static
Returns
openGL stencil function type for given igor type
Parameters
typethe igor stencil function type

◆ convertType() [6/6]

uint32 igor::iRendererUtils::convertType ( iStencilOperation  type)
static
Returns
openGL stencil operation type for given igor type
Parameters
typethe igor stencil operation type

◆ getComponentCount()

uint32 igor::iRendererUtils::getComponentCount ( iShaderDataType  type)
static
Returns
component count of given shader data type
Parameters
typethe given shader data type

◆ getSize()

uint32 igor::iRendererUtils::getSize ( iShaderDataType  type)
static
Returns
size of given shader data type in bytes
Parameters
typethe given shader data type

◆ getTextureSamplerName()

iaString igor::iRendererUtils::getTextureSamplerName ( uint32  texUnit)
static
Returns
texture sampler name for given texture unit
Parameters
texUnitthe given texture unit

The documentation for this class was generated from the following files: