Texture object.
More...
#include <GlCommandSink.h>
|
enum | Parameter {
kBaseLevel = gl.TEXTURE_BASE_LEVEL,
kCompareFunc = gl.TEXTURE_COMPARE_FUNC,
kCompareMode = gl.TEXTURE_COMPARE_MODE,
kMinLod = gl.TEXTURE_MIN_LOD,
kMaxLod = gl.TEXTURE_MAX_LOD,
kMaxLevel = gl.TEXTURE_MAX_LEVEL,
kWrapR = gl.TEXTURE_WRAP_R,
kMinFilter = gl.TEXTURE_MIN_FILTER,
kMagFilter = gl.TEXTURE_MAG_FILTER,
kWrapS = gl.TEXTURE_WRAP_S,
kWrapT = gl.TEXTURE_WRAP_T
} |
|
enum | ParamValue {
kLinear = GL_LINEAR,
kNearest = GL_NEAREST,
kNearestMipmapLinear = GL_NEAREST_MIPMAP_LINEAR,
kLinearMipmapLinear = GL_LINEAR_MIPMAP_LINEAR,
kLinearMipmapNearest = GL_LINEAR_MIPMAP_NEAREST,
kLessEqual = GL_LEQUAL,
kCompareRefToTexture = gl.COMPARE_REF_TO_TEXTURE,
kClampToEdge = gl.CLAMP_TO_EDGE,
kRepeat = GL_REPEAT
} |
|
|
void | Store (unsigned int width, unsigned int height, const void *data, PixelFormat format, int mipmapLevel=0, size_t dataSize=0) |
| Store texture data. More...
|
|
void | Store (unsigned int width, unsigned int height, unsigned int depth, const void *data, PixelFormat format) |
| Store 3D texture data. More...
|
|
void | Store (unsigned int offsetX, unsigned int offsetY, unsigned int width, unsigned int height, const void *data, PixelFormat format, int mipmapLevel=0, size_t dataSize=0) |
| Updates a portion of the image. More...
|
|
void | GenerateMipmaps () |
|
void | SetParameter (Parameter param, ParamValue value) |
|
void | SetParameter (Parameter param, int value) |
|
unsigned int | GetWidth () const |
|
unsigned int | GetHeight () const |
|
unsigned int | GetDepth () const |
|
Enumerator |
---|
kBaseLevel |
|
kCompareFunc |
|
kCompareMode |
|
kMinLod |
|
kMaxLod |
|
kMaxLevel |
|
kWrapR |
|
kMinFilter |
|
kMagFilter |
|
kWrapS |
|
kWrapT |
|
Enumerator |
---|
kLinear |
|
kNearest |
|
kNearestMipmapLinear |
|
kLinearMipmapLinear |
|
kLinearMipmapNearest |
|
kLessEqual |
|
kCompareRefToTexture |
|
kClampToEdge |
|
kRepeat |
|
void molecular::gfx::GlCommandSink::Texture::GenerateMipmaps |
( |
| ) |
|
|
inline |
unsigned int molecular::gfx::GlCommandSink::Texture::GetDepth |
( |
| ) |
const |
|
inline |
unsigned int molecular::gfx::GlCommandSink::Texture::GetHeight |
( |
| ) |
const |
|
inline |
unsigned int molecular::gfx::GlCommandSink::Texture::GetWidth |
( |
| ) |
const |
|
inline |
void molecular::gfx::GlCommandSink::Texture::SetParameter |
( |
Parameter |
param, |
|
|
ParamValue |
value |
|
) |
| |
void molecular::gfx::GlCommandSink::Texture::SetParameter |
( |
Parameter |
param, |
|
|
int |
value |
|
) |
| |
void molecular::gfx::GlCommandSink::Texture::Store |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
const void * |
data, |
|
|
PixelFormat |
format, |
|
|
int |
mipmapLevel = 0 , |
|
|
size_t |
dataSize = 0 |
|
) |
| |
Store texture data.
- Parameters
-
data | Pointer to the texture data. Can be NULL to allocate but not initialize the texture. |
dataSize | Size of the data block in bytes. Only needed for compressed textures. |
void molecular::gfx::GlCommandSink::Texture::Store |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
depth, |
|
|
const void * |
data, |
|
|
PixelFormat |
format |
|
) |
| |
void molecular::gfx::GlCommandSink::Texture::Store |
( |
unsigned int |
offsetX, |
|
|
unsigned int |
offsetY, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
const void * |
data, |
|
|
PixelFormat |
format, |
|
|
int |
mipmapLevel = 0 , |
|
|
size_t |
dataSize = 0 |
|
) |
| |
Updates a portion of the image.
The documentation for this class was generated from the following files:
- /home/travis/build/cmdrf/molecular/molecular-gfx/molecular/gfx/opengl/GlCommandSink.h
- /home/travis/build/cmdrf/molecular/molecular-gfx/molecular/gfx/opengl/GlCommandSink.cpp