#include "base.hh"
#include "gfx.hh"
#include "gfx_opengl_texture.hh"
#include "gfx_opengl_texture2.hh"
#include "gfx_targa.hh"
Namespaces | |
| namespace | gfx |
Defines | |
| #define | GFX_OPENGL_TEXTURE2_CC 1 |
| #define | CODE_TEXTURE_GET_BYTE_CNT(FUNC_TEXEL_TO_BYTE_CNT) |
Variables | |
| static Texture::eMinFilter | gfx::DEFAULT_NON_MIPMAP_MIN_FILTER = Texture::eMinFilter_LINEAR |
| static Texture::eMagFilter | gfx::DEFAULT_NON_MIPMAP_MAG_FILTER = Texture::eMagFilter_LINEAR |
| static Texture::eMinFilter | gfx::DEFAULT_MIPMAP_MIN_FILTER = Texture::eMinFilter_LINEAR_MIPMAP_LINEAR |
| static Texture::eMagFilter | gfx::DEFAULT_MIPMAP_MAG_FILTER = Texture::eMagFilter_LINEAR |
External vs. internal textures: ------------------------------- External textures are the source. Internal textures are uploaded into the GPU memory. This naming accords with OpenGL glTexImage2D().
eTexelType vs. internal/external texel formats: ----------------------------------------------- The eTexelType passed around here applies to the "external format" which is the texture image in app-memory. The internal format is used in a narrow scope and isn't passed around. Both correlate to the two format args for glTexImage2D().
Optimizations: -------------- Texture memory is reduced by specifying RGB instead of RGBA (for the internal format) if a Targa image has no alpha channel.
| #define CODE_TEXTURE_GET_BYTE_CNT | ( | FUNC_TEXEL_TO_BYTE_CNT | ) |
Value:
{ \
CHECK_TEXTURE(); \
const uint byteCnt = FUNC_TEXEL_TO_BYTE_CNT( GetTexelCnt() ); \
ASSERT( byteCnt > 0 ); \
ASSERT( byteCnt <= MAX_TEXTURE_BYTES ); \
return byteCnt; \
}
| #define GFX_OPENGL_TEXTURE2_CC 1 |
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:15 2007