Back to index

nux  3.0.0
Public Member Functions | Public Attributes
nux::TextureStateLookUpTable Struct Reference
Collaboration diagram for nux::TextureStateLookUpTable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TextureStateLookUpTable ()

Public Attributes

TextureStateMap default_texture_state [GFXTS_MAX_TEXTURESTATES]

Detailed Description

Definition at line 29 of file GLTextureStates.cpp.


Constructor & Destructor Documentation

Definition at line 31 of file GLTextureStates.cpp.

    {
      // setup render state map
#define UL_MAP(state__, default_value__, checked__)                          \
        default_texture_state[GFXTS_##state__].iValue     = default_value__;  \
        default_texture_state[GFXTS_##state__].Checked   = checked__;

#define UL_MAP_FLOAT(state__, default_value__, checked__)                    \
    default_texture_state[GFXTS_##state__].fValue     = default_value__;      \
    default_texture_state[GFXTS_##state__].Checked   = checked__;

      UL_MAP(ADDRESSU               ,           GL_REPEAT       ,       1);
      UL_MAP(ADDRESSV               ,           GL_REPEAT       ,       1);
      UL_MAP(ADDRESSW               ,           GL_REPEAT       ,       1);

      UL_MAP(MINFILTER              ,           GL_NEAREST      ,       1);
      UL_MAP(MAGFILTER              ,           GL_NEAREST      ,       1);
      UL_MAP(MIPFILTER              ,           GL_NEAREST      ,       1);

      UL_MAP(MIP_BASE_LEVEL         ,           0               ,       1);
      UL_MAP(MIP_MAX_LEVEL          ,           1000            ,       1);
      UL_MAP_FLOAT(MIN_LOD          ,           -1000           ,       1);
      UL_MAP_FLOAT(MAX_LOD          ,           +1000           ,       1);

      UL_MAP(BORDERCOLOR            ,           0x0             ,       1);

#undef UL_MAP
#undef UL_MAP_FLOAT
    };

Member Data Documentation

Definition at line 59 of file GLTextureStates.cpp.


The documentation for this struct was generated from the following file: