Class wrapping texture object functionality with direct state access. More...
#include </home/chochlik/devel/oglplus/include/oglplus/dsa/texture.hpp>
Classes | |
struct | Property |
Types related to Texture. More... | |
Public Types | |
typedef TextureTarget | Target |
Texture bind targets. | |
Public Member Functions | |
GLsizei | Width (GLint level=0) const |
Returns the width of the texture as it was specified by *Image*D. More... | |
GLsizei | Height (GLint level=0) const |
Returns the height of the texture as it was specified by *Image*D. More... | |
GLsizei | Depth (GLint level=0) const |
Returns the depth of the texture as it was specified by *Image*D. More... | |
PixelDataType | RedType (GLint level=0) const |
Returns the data type used to store the RED component. More... | |
PixelDataType | GreenType (GLint level=0) const |
Returns the data type used to store the GREEN component. More... | |
PixelDataType | BlueType (GLint level=0) const |
Returns the data type used to store the BLUE component. More... | |
PixelDataType | AlphaType (GLint level=0) const |
Returns the data type used to store the ALPHA component. More... | |
PixelDataType | DepthType (GLint level=0) const |
Returns the data type used to store the DEPTH component. More... | |
GLsizei | RedSize (GLint level=0) const |
Returns the actual resolution of the RED component. More... | |
GLsizei | GreenSize (GLint level=0) const |
Returns the actual resolution of the GREEN component. More... | |
GLsizei | BlueSize (GLint level=0) const |
Returns the actual resolution of the BLUE component. More... | |
GLsizei | AlphaSize (GLint level=0) const |
Returns the actual resolution of the ALPHA component. More... | |
GLsizei | DepthSize (GLint level=0) const |
Returns the actual resolution of the DEPTH component. More... | |
GLsizei | StencilSize (GLint level=0) const |
Returns the actual resolution of the STENCIL component. More... | |
GLsizei | SharedSize (GLint level=0) const |
Returns the size of all texture components. More... | |
GLsizei | CompressedImageSize (GLint level=0) const |
Returns the size (in bytes) of the image array if it is compressed. More... | |
PixelDataInternalFormat | InternalFormat (GLint level=0) const |
Returns the internal data format of the image array. More... | |
void | GetImage (GLint level, PixelDataFormat format, const OutputData &dest) const |
Allows to obtain the texture image in uncompressed form. More... | |
void | GetImage (GLint level, PixelDataFormat format, Property::PixDataType type, GLsizei size, GLvoid *buffer) const |
Allows to obtain the texture image in uncompressed form. More... | |
void | GetCompressedImage (GLint level, GLsizei size, GLubyte *buffer) const |
Allows to obtain the texture image in compressed form. More... | |
void | GetCompressedImage (GLint level, std::vector< GLubyte > &dest) const |
Allows to obtain the texture image in compressed form. More... | |
ObjectOps & | Storage1D (GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width) |
Specifies all levels of 1D texture at the same time. More... | |
ObjectOps & | Storage2D (GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height) |
Specifies all levels of 2D texture at the same time. More... | |
ObjectOps & | Storage3D (GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLsizei depth) |
Specifies all levels of 3D texture at the same time. More... | |
ObjectOps & | SubImage3D (GLint level, GLint xoffs, GLint yoffs, GLint zoffs, GLsizei width, GLsizei height, GLsizei depth, PixelDataFormat format, Property::PixDataType type, const void *data) |
Specifies a three dimensional texture sub image. More... | |
ObjectOps & | SubImage3D (const images::Image &image, GLint xoffs=0, GLint yoffs=0, GLint zoffs=0, GLint level=0) |
Specifies a three dimensional texture sub image. More... | |
ObjectOps & | SubImage2D (GLint level, GLint xoffs, GLint yoffs, GLsizei width, GLsizei height, PixelDataFormat format, Property::PixDataType type, const void *data) |
Specifies a two dimensional texture sub image. More... | |
ObjectOps & | SubImage2D (const images::Image &image, GLint xoffs=0, GLint yoffs=0, GLint level=0) |
Specifies a two dimensional texture sub image. More... | |
ObjectOps & | SubImage1D (GLint level, GLint xoffs, GLsizei width, PixelDataFormat format, Property::PixDataType type, const void *data) |
Specifies a one dimensional texture sub image. More... | |
ObjectOps & | SubImage1D (const images::Image &image, GLint xoffs=0, GLint level=0) |
Specifies a two dimensional texture sub image. More... | |
ObjectOps & | CopySubImage3D (GLint level, GLint xoffs, GLint yoffs, GLint zoffs, GLint x, GLint y, GLsizei width, GLsizei height) |
Copies a three dimensional texture sub image from the framebuffer. More... | |
ObjectOps & | CopySubImage2D (GLint level, GLint xoffs, GLint yoffs, GLint x, GLint y, GLsizei width, GLsizei height) |
Copies a two dimensional texture sub image from the framebuffer. More... | |
ObjectOps & | CopySubImage1D (GLint level, GLint xoffs, GLint x, GLint y, GLsizei width) |
Copies a one dimensional texture sub image from the framebuffer. More... | |
ObjectOps & | CompressedSubImage3D (GLint level, GLint xoffs, GLint yoffs, GLint zoffs, GLsizei width, GLsizei height, GLsizei depth, PixelDataFormat format, GLsizei image_size, const void *data) |
Specifies a three dimensional compressed texture sub image. More... | |
ObjectOps & | CompressedSubImage2D (GLint level, GLint xoffs, GLint yoffs, GLsizei width, GLsizei height, PixelDataFormat format, GLsizei image_size, const void *data) |
Specifies a two dimensional compressed texture sub image. More... | |
ObjectOps & | CompressedSubImage1D (GLint level, GLint xoffs, GLsizei width, PixelDataFormat format, GLsizei image_size, const void *data) |
Specifies a one dimensional compressed texture sub image. More... | |
ObjectOps & | Buffer (PixelDataInternalFormat internal_format, BufferName buffer) |
Assigns a buffer storing the texel data to the texture. More... | |
GLuint | BaseLevel (void) const |
Returns the texture base level (TEXTURE_BASE_LEVEL) More... | |
ObjectOps & | BaseLevel (GLuint level) |
Sets the texture base level (TEXTURE_BASE_LEVEL) More... | |
Vector< GLfloat, 4 > | BorderColor (TypeTag< GLfloat >) const |
Gets the texture border color (TEXTURE_BORDER_COLOR) More... | |
ObjectOps & | BorderColor (Vector< GLfloat, 4 > color) |
Sets the texture border color (TEXTURE_BORDER_COLOR) More... | |
Vector< GLint, 4 > | BorderColor (TypeTag< GLint >) const |
Gets the texture border color (TEXTURE_BORDER_COLOR) More... | |
ObjectOps & | BorderColor (Vector< GLint, 4 > color) |
Sets the texture border color (TEXTURE_BORDER_COLOR) More... | |
Vector< GLuint, 4 > | BorderColor (TypeTag< GLuint >) const |
Gets the texture border color (TEXTURE_BORDER_COLOR) More... | |
ObjectOps & | BorderColor (Vector< GLuint, 4 > color) |
Sets the texture border color (TEXTURE_BORDER_COLOR) More... | |
TextureCompareMode | CompareMode (void) const |
Gets the compare mode (TEXTURE_COMPARE_MODE) More... | |
ObjectOps & | CompareMode (TextureCompareMode mode) |
Sets the compare mode (TEXTURE_COMPARE_MODE) More... | |
CompareFunction | CompareFunc (void) const |
Sets the compare function (TEXTURE_COMPARE_FUNC) More... | |
ObjectOps & | CompareFunc (CompareFunction func) |
Sets the compare function (TEXTURE_COMPARE_FUNC) More... | |
GLfloat | LODBias (void) const |
Gets the LOD bias value (TEXTURE_LOD_BIAS) More... | |
ObjectOps & | LODBias (GLfloat value) |
Sets the LOD bias value (TEXTURE_LOD_BIAS) More... | |
ObjectOps & | Filter (TextureFilter filter) |
Sets both the minification and maginification filter. More... | |
TextureMagFilter | MagFilter (void) const |
Gets the magnification filter (TEXTURE_MAG_FILTER) More... | |
ObjectOps & | MagFilter (TextureMagFilter filter) |
Sets the magnification filter (TEXTURE_MAG_FILTER) More... | |
TextureMinFilter | MinFilter (void) const |
Gets the minification filter (TEXTURE_MIN_FILTER) More... | |
ObjectOps & | MinFilter (TextureMinFilter filter) |
Sets the minification filter (TEXTURE_MIN_FILTER) More... | |
GLfloat | MinLOD (void) const |
Gets minimal LOD value (TEXTURE_MIN_LOD) More... | |
ObjectOps & | MinLOD (GLfloat value) |
Sets minimal LOD value (TEXTURE_MIN_LOD) More... | |
GLfloat | MaxLOD (void) const |
Gets maximum LOD value (TEXTURE_MAX_LOD) More... | |
ObjectOps & | MaxLOD (GLfloat value) |
Sets maximum LOD value (TEXTURE_MAX_LOD) More... | |
GLint | MaxLevel (void) const |
Gets maximum level value (TEXTURE_MAX_LEVEL) More... | |
ObjectOps & | MaxLevel (GLint value) |
Sets maximum level value (TEXTURE_MAX_LEVEL) More... | |
GLfloat | MaxAnisotropy (void) const |
Gets the maximum anisotropy level. More... | |
GLfloat | Anisotropy (void) const |
Gets the current anisotropy level. More... | |
ObjectOps & | Anisotropy (GLfloat value) |
Sets the anisotropy level. More... | |
TextureSwizzle | Swizzle (TextureSwizzleCoord coord) const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_*) More... | |
ObjectOps & | Swizzle (TextureSwizzleCoord coord, TextureSwizzle mode) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_*) More... | |
TextureSwizzle | SwizzleR (void) const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_R) More... | |
ObjectOps & | SwizzleR (TextureSwizzle mode) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_R) More... | |
TextureSwizzle | SwizzleG (void) const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_G) More... | |
ObjectOps & | SwizzleG (TextureSwizzle mode) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_G) More... | |
TextureSwizzle | SwizzleB (void) const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_B) More... | |
ObjectOps & | SwizzleB (TextureSwizzle mode) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_B) More... | |
TextureSwizzle | SwizzleA (void) const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_A) More... | |
ObjectOps & | SwizzleA (TextureSwizzle mode) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_A) More... | |
TextureSwizzleTuple | SwizzleRGBA (void) const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) More... | |
ObjectOps & | SwizzleRGBA (TextureSwizzle mode) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) More... | |
ObjectOps & | SwizzleRGBA (TextureSwizzle mode_r, TextureSwizzle mode_g, TextureSwizzle mode_b, TextureSwizzle mode_a) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) More... | |
ObjectOps & | SwizzleRGBA (const TextureSwizzleTuple &modes) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) More... | |
TextureWrap | Wrap (TextureWrapCoord coord) const |
Gets the wrap parameter (TEXTURE_WRAP_*) More... | |
ObjectOps & | Wrap (TextureWrapCoord coord, TextureWrap mode) |
Sets the wrap parameter (TEXTURE_WRAP_*) More... | |
TextureWrap | WrapS (void) const |
Gets the wrap parameter (TEXTURE_WRAP_S) More... | |
ObjectOps & | WrapS (TextureWrap mode) |
Sets the wrap parameter (TEXTURE_WRAP_S) More... | |
TextureWrap | WrapT (void) const |
Gets the wrap parameter (TEXTURE_WRAP_T) More... | |
ObjectOps & | WrapT (TextureWrap mode) |
Sets the wrap parameter (TEXTURE_WRAP_T) More... | |
TextureWrap | WrapR (void) const |
Gets the wrap parameter (TEXTURE_WRAP_R) More... | |
ObjectOps & | WrapR (TextureWrap mode) |
Sets the wrap parameter (TEXTURE_WRAP_R) More... | |
PixelDataFormat | DepthStencilMode (void) const |
Gets the depth stencil mode parameter (DEPTH_STENCIL_TEXTURE_MODE) More... | |
ObjectOps & | DepthStencilMode (PixelDataFormat mode) |
Sets the swizzle parameter (DEPTH_STENCIL_TEXTURE_MODE) More... | |
bool | Seamless (void) const |
Gets the seamless cubemap setting value. More... | |
ObjectOps & | Seamless (bool enable) |
Sets the seamless cubemap setting. More... | |
ObjectOps & | GenerateMipmap (void) |
Generate mipmap for the texture bound to the specified target. More... | |
void | Bind (Target target) const |
Binds this texture to the specified target . More... | |
void | BindImage (ImageUnitSelector unit, GLint level, bool layered, GLint layer, AccessSpecifier access, ImageUnitFormat format) const |
Binds a level of this texture to an image unit . More... | |
void | InvalidateImage (GLsizei level) |
Invalidates the specified level of texture image. More... | |
void | InvalidateSubImage (GLsizei level, GLint xoffs, GLint yoffs, GLint zoffs, GLsizei width, GLsizei height, GLsizei depth) |
Invalidates the specified part of texture image. More... | |
template<typename GLtype > | |
void | ClearImage (GLsizei level, PixelDataFormat format, const GLtype *data) |
Clears the specified level of texture image. More... | |
template<typename GLtype > | |
void | ClearSubImage (GLsizei level, GLint xoffs, GLint yoffs, GLint zoffs, GLsizei width, GLsizei height, GLsizei depth, PixelDataFormat format, const GLtype *data) |
Clears the specified part of texture image. More... | |
void | View (Target target, TextureName orig_texture, PixelDataInternalFormat internal_format, GLuint min_level, GLuint num_levels, GLuint min_layer, GLuint num_layers) |
References and reinteprets a subset of the data of another texture. More... | |
Static Public Member Functions | |
static void | Active (TextureUnitSelector index) |
Specify active texture unit for subsequent commands. More... | |
static GLint | Active (void) |
Returns active texture unit. More... | |
static Target | CubeMapFace (GLuint face) |
Returns the target for the i-th cube map face (0-5) More... | |
static void | Bind (Target target, TextureName texture) |
Binds the specified texture to the specified target . More... | |
static void | Bind (GLuint first, const Sequence< TextureName > &textures) |
Sequentially bind textures to texture units starting with first . More... | |
static void | BindImage (ImageUnitSelector unit, TextureName texture, GLint level, bool layered, GLint layer, AccessSpecifier access, ImageUnitFormat format) |
Binds a level of texture to an image unit . More... | |
static void | BindImage (GLuint first, const Sequence< TextureName > &textures) |
Sequentially bind textures to image units starting with first . More... | |
static TextureName | Binding (Target target) |
Returns the current Texture bound to specified target . More... | |
Class wrapping texture object functionality with direct state access.
|
staticinherited |
Specify active texture unit for subsequent commands.
Error |
|
staticinherited |
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::AlphaSize | ( | GLint | level = 0 | ) | const |
Returns the actual resolution of the ALPHA component.
GL_TEXTURE_ALPHA_SIZE
PixelDataType oglplus::ObjectOps< tag::DirectState, tag::Texture >::AlphaType | ( | GLint | level = 0 | ) | const |
Returns the data type used to store the ALPHA component.
GL_TEXTURE_ALPHA_TYPE
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Texture >::Anisotropy | ( | void | ) | const |
Gets the current anisotropy level.
GL_TEXTURE_MAX_ANISOTROPY_EXT
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Anisotropy | ( | GLfloat | value | ) |
Sets the anisotropy level.
GL_TEXTURE_MAX_ANISOTROPY_EXT
GLuint oglplus::ObjectOps< tag::DirectState, tag::Texture >::BaseLevel | ( | void | ) | const |
Returns the texture base level (TEXTURE_BASE_LEVEL)
GL_TEXTURE_BASE_LEVEL
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::BaseLevel | ( | GLuint | level | ) |
Sets the texture base level (TEXTURE_BASE_LEVEL)
GL_TEXTURE_BASE_LEVEL
|
staticinherited |
Binds the specified texture
to the specified target
.
References oglplus::GetGLName().
|
staticinherited |
Sequentially bind textures
to texture units starting with first
.
Error |
References oglplus::GetGLNames(), and oglplus::Sequence< ObjName >::size().
|
inherited |
Binds this texture to the specified target
.
|
staticinherited |
Binds a level
of texture
to an image unit
.
Requires OpenGL 4.2 or the GL_ARB_shader_image_load_store extension.
References oglplus::GetGLName().
|
staticinherited |
Sequentially bind textures
to image units starting with first
.
Error |
References oglplus::GetGLNames(), and oglplus::Sequence< ObjName >::size().
|
inherited |
Binds a level
of this texture to an image unit
.
Requires OpenGL 4.2 or the GL_ARB_shader_image_load_store extension.
|
staticinherited |
Returns the current Texture bound to specified target
.
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::BlueSize | ( | GLint | level = 0 | ) | const |
Returns the actual resolution of the BLUE component.
GL_TEXTURE_BLUE_SIZE
PixelDataType oglplus::ObjectOps< tag::DirectState, tag::Texture >::BlueType | ( | GLint | level = 0 | ) | const |
Returns the data type used to store the BLUE component.
GL_TEXTURE_BLUE_TYPE
Vector<GLfloat, 4> oglplus::ObjectOps< tag::DirectState, tag::Texture >::BorderColor | ( | TypeTag< GLfloat > | ) | const |
Gets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::BorderColor | ( | Vector< GLfloat, 4 > | color | ) |
Sets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
Vector<GLint, 4> oglplus::ObjectOps< tag::DirectState, tag::Texture >::BorderColor | ( | TypeTag< GLint > | ) | const |
Gets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::BorderColor | ( | Vector< GLint, 4 > | color | ) |
Sets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
Vector<GLuint, 4> oglplus::ObjectOps< tag::DirectState, tag::Texture >::BorderColor | ( | TypeTag< GLuint > | ) | const |
Gets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::BorderColor | ( | Vector< GLuint, 4 > | color | ) |
Sets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Buffer | ( | PixelDataInternalFormat | internal_format, |
BufferName | buffer | ||
) |
Assigns a buffer storing the texel data to the texture.
Requires OpenGL 3.1.
References oglplus::GetGLName().
|
inherited |
Clears the specified level of texture image.
Requires OpenGL 4.4.
|
inherited |
Clears the specified part of texture image.
Requires OpenGL 4.4.
CompareFunction oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompareFunc | ( | void | ) | const |
Sets the compare function (TEXTURE_COMPARE_FUNC)
GL_TEXTURE_COMPARE_FUNC
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompareFunc | ( | CompareFunction | func | ) |
Sets the compare function (TEXTURE_COMPARE_FUNC)
GL_TEXTURE_COMPARE_FUNC
TextureCompareMode oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompareMode | ( | void | ) | const |
Gets the compare mode (TEXTURE_COMPARE_MODE)
GL_TEXTURE_COMPARE_MODE
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompareMode | ( | TextureCompareMode | mode | ) |
Sets the compare mode (TEXTURE_COMPARE_MODE)
GL_TEXTURE_COMPARE_MODE
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompressedImageSize | ( | GLint | level = 0 | ) | const |
Returns the size (in bytes) of the image array if it is compressed.
GL_TEXTURE_COMPRESSED_IMAGE_SIZE
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompressedSubImage1D | ( | GLint | level, |
GLint | xoffs, | ||
GLsizei | width, | ||
PixelDataFormat | format, | ||
GLsizei | image_size, | ||
const void * | data | ||
) |
Specifies a one dimensional compressed texture sub image.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompressedSubImage2D | ( | GLint | level, |
GLint | xoffs, | ||
GLint | yoffs, | ||
GLsizei | width, | ||
GLsizei | height, | ||
PixelDataFormat | format, | ||
GLsizei | image_size, | ||
const void * | data | ||
) |
Specifies a two dimensional compressed texture sub image.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompressedSubImage3D | ( | GLint | level, |
GLint | xoffs, | ||
GLint | yoffs, | ||
GLint | zoffs, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLsizei | depth, | ||
PixelDataFormat | format, | ||
GLsizei | image_size, | ||
const void * | data | ||
) |
Specifies a three dimensional compressed texture sub image.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::CopySubImage1D | ( | GLint | level, |
GLint | xoffs, | ||
GLint | x, | ||
GLint | y, | ||
GLsizei | width | ||
) |
Copies a one dimensional texture sub image from the framebuffer.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::CopySubImage2D | ( | GLint | level, |
GLint | xoffs, | ||
GLint | yoffs, | ||
GLint | x, | ||
GLint | y, | ||
GLsizei | width, | ||
GLsizei | height | ||
) |
Copies a two dimensional texture sub image from the framebuffer.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::CopySubImage3D | ( | GLint | level, |
GLint | xoffs, | ||
GLint | yoffs, | ||
GLint | zoffs, | ||
GLint | x, | ||
GLint | y, | ||
GLsizei | width, | ||
GLsizei | height | ||
) |
Copies a three dimensional texture sub image from the framebuffer.
|
staticinherited |
Returns the target for the i-th cube map face
(0-5)
This functions returns one of the values for cube map faces from the Target enumeration. The value of face
must be between 0 and 5 with the following meaning: 0 = Target::CubeMapPositiveX, 1 = Target::CubeMapNegativeX, 2 = Target::CubeMapPositiveY, 3 = Target::CubeMapNegativeY, 4 = Target::CubeMapPositiveZ, 5 = Target::CubeMapNegativeZ.
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::Depth | ( | GLint | level = 0 | ) | const |
Returns the depth of the texture as it was specified by *Image*D.
GL_TEXTURE_DEPTH
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::DepthSize | ( | GLint | level = 0 | ) | const |
Returns the actual resolution of the DEPTH component.
GL_TEXTURE_DEPTH_SIZE
PixelDataFormat oglplus::ObjectOps< tag::DirectState, tag::Texture >::DepthStencilMode | ( | void | ) | const |
Gets the depth stencil mode parameter (DEPTH_STENCIL_TEXTURE_MODE)
Requires OpenGL 4.3.
GL_DEPTH_STENCIL_TEXTURE_MODE
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::DepthStencilMode | ( | PixelDataFormat | mode | ) |
Sets the swizzle parameter (DEPTH_STENCIL_TEXTURE_MODE)
Requires OpenGL 4.3.
GL_DEPTH_STENCIL_TEXTURE_MODE
PixelDataType oglplus::ObjectOps< tag::DirectState, tag::Texture >::DepthType | ( | GLint | level = 0 | ) | const |
Returns the data type used to store the DEPTH component.
GL_TEXTURE_DEPTH_TYPE
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Filter | ( | TextureFilter | filter | ) |
Sets both the minification and maginification filter.
GL_TEXTURE_MIN_FILTER
GL_TEXTURE_MAG_FILTER
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::GenerateMipmap | ( | void | ) |
Generate mipmap for the texture bound to the specified target.
void oglplus::ObjectOps< tag::DirectState, tag::Texture >::GetCompressedImage | ( | GLint | level, |
GLsizei | size, | ||
GLubyte * | buffer | ||
) | const |
Allows to obtain the texture image in compressed form.
This function stores the image of the texture bound to the specified texture target
with the specified level
of detail in compressed form into the dest
buffer. This function automatically resizes the buffer so that it can accomodate the texture data.
void oglplus::ObjectOps< tag::DirectState, tag::Texture >::GetCompressedImage | ( | GLint | level, |
std::vector< GLubyte > & | dest | ||
) | const |
Allows to obtain the texture image in compressed form.
This function stores the image of the texture bound to the specified texture target
with the specified level
of detail in compressed form into the dest
buffer. This function automatically resizes the buffer so that it can accomodate the texture data.
void oglplus::ObjectOps< tag::DirectState, tag::Texture >::GetImage | ( | GLint | level, |
PixelDataFormat | format, | ||
const OutputData & | dest | ||
) | const |
Allows to obtain the texture image in uncompressed form.
This function stores the image of the texture bound to the specified texture target
with the specified level
of detail in uncompressed form into the dest
buffer.
GetCompressedImage
, does NOT automatically resize the destination buffer so that it can accomodate the texture data. The caller is responsible for keeping track or querying the type of the texture, its dimensions and current pixel transfer settings and resize the dest
buffer accordingly.void oglplus::ObjectOps< tag::DirectState, tag::Texture >::GetImage | ( | GLint | level, |
PixelDataFormat | format, | ||
Property::PixDataType | type, | ||
GLsizei | size, | ||
GLvoid * | buffer | ||
) | const |
Allows to obtain the texture image in uncompressed form.
This function stores the image of the texture bound to the specified texture target
with the specified level
of detail in uncompressed form into the dest
buffer.
GetCompressedImage
, does NOT automatically resize the destination buffer so that it can accomodate the texture data. The caller is responsible for keeping track or querying the type of the texture, its dimensions and current pixel transfer settings and resize the dest
buffer accordingly.GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::GreenSize | ( | GLint | level = 0 | ) | const |
Returns the actual resolution of the GREEN component.
GL_TEXTURE_GREEN_SIZE
PixelDataType oglplus::ObjectOps< tag::DirectState, tag::Texture >::GreenType | ( | GLint | level = 0 | ) | const |
Returns the data type used to store the GREEN component.
GL_TEXTURE_GREEN_TYPE
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::Height | ( | GLint | level = 0 | ) | const |
Returns the height of the texture as it was specified by *Image*D.
GL_TEXTURE_HEIGHT
PixelDataInternalFormat oglplus::ObjectOps< tag::DirectState, tag::Texture >::InternalFormat | ( | GLint | level = 0 | ) | const |
Returns the internal data format of the image array.
GL_TEXTURE_INTERNAL_FORMAT
|
inherited |
Invalidates the specified level of texture image.
Requires OpenGL 4.3.
|
inherited |
Invalidates the specified part of texture image.
Requires OpenGL 4.3.
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Texture >::LODBias | ( | void | ) | const |
Gets the LOD bias value (TEXTURE_LOD_BIAS)
GL_TEXTURE_LOD_BIAS
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::LODBias | ( | GLfloat | value | ) |
Sets the LOD bias value (TEXTURE_LOD_BIAS)
GL_TEXTURE_LOD_BIAS
TextureMagFilter oglplus::ObjectOps< tag::DirectState, tag::Texture >::MagFilter | ( | void | ) | const |
Gets the magnification filter (TEXTURE_MAG_FILTER)
GL_TEXTURE_MAG_FILTER
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::MagFilter | ( | TextureMagFilter | filter | ) |
Sets the magnification filter (TEXTURE_MAG_FILTER)
GL_TEXTURE_MAG_FILTER
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Texture >::MaxAnisotropy | ( | void | ) | const |
Gets the maximum anisotropy level.
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
GLint oglplus::ObjectOps< tag::DirectState, tag::Texture >::MaxLevel | ( | void | ) | const |
Gets maximum level value (TEXTURE_MAX_LEVEL)
GL_TEXTURE_MAX_LEVEL
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::MaxLevel | ( | GLint | value | ) |
Sets maximum level value (TEXTURE_MAX_LEVEL)
GL_TEXTURE_MAX_LEVEL
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Texture >::MaxLOD | ( | void | ) | const |
Gets maximum LOD value (TEXTURE_MAX_LOD)
GL_TEXTURE_MAX_LOD
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::MaxLOD | ( | GLfloat | value | ) |
Sets maximum LOD value (TEXTURE_MAX_LOD)
GL_TEXTURE_MAX_LOD
TextureMinFilter oglplus::ObjectOps< tag::DirectState, tag::Texture >::MinFilter | ( | void | ) | const |
Gets the minification filter (TEXTURE_MIN_FILTER)
GL_TEXTURE_MIN_FILTER
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::MinFilter | ( | TextureMinFilter | filter | ) |
Sets the minification filter (TEXTURE_MIN_FILTER)
GL_TEXTURE_MIN_FILTER
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Texture >::MinLOD | ( | void | ) | const |
Gets minimal LOD value (TEXTURE_MIN_LOD)
GL_TEXTURE_MIN_LOD
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::MinLOD | ( | GLfloat | value | ) |
Sets minimal LOD value (TEXTURE_MIN_LOD)
GL_TEXTURE_MIN_LOD
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::RedSize | ( | GLint | level = 0 | ) | const |
Returns the actual resolution of the RED component.
GL_TEXTURE_RED_SIZE
PixelDataType oglplus::ObjectOps< tag::DirectState, tag::Texture >::RedType | ( | GLint | level = 0 | ) | const |
Returns the data type used to store the RED component.
GL_TEXTURE_RED_TYPE
bool oglplus::ObjectOps< tag::DirectState, tag::Texture >::Seamless | ( | void | ) | const |
Gets the seamless cubemap setting value.
GL_TEXTURE_CUBE_MAP_SEAMLESS
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Seamless | ( | bool | enable | ) |
Sets the seamless cubemap setting.
GL_TEXTURE_CUBE_MAP_SEAMLESS
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::SharedSize | ( | GLint | level = 0 | ) | const |
Returns the size of all texture components.
GL_TEXTURE_SHARED_SIZE
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::StencilSize | ( | GLint | level = 0 | ) | const |
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Storage1D | ( | GLsizei | levels, |
PixelDataInternalFormat | internal_format, | ||
GLsizei | width | ||
) |
Specifies all levels of 1D texture at the same time.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Storage2D | ( | GLsizei | levels, |
PixelDataInternalFormat | internal_format, | ||
GLsizei | width, | ||
GLsizei | height | ||
) |
Specifies all levels of 2D texture at the same time.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Storage3D | ( | GLsizei | levels, |
PixelDataInternalFormat | internal_format, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLsizei | depth | ||
) |
Specifies all levels of 3D texture at the same time.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SubImage1D | ( | GLint | level, |
GLint | xoffs, | ||
GLsizei | width, | ||
PixelDataFormat | format, | ||
Property::PixDataType | type, | ||
const void * | data | ||
) |
Specifies a one dimensional texture sub image.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SubImage1D | ( | const images::Image & | image, |
GLint | xoffs = 0 , |
||
GLint | level = 0 |
||
) |
Specifies a two dimensional texture sub image.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SubImage2D | ( | GLint | level, |
GLint | xoffs, | ||
GLint | yoffs, | ||
GLsizei | width, | ||
GLsizei | height, | ||
PixelDataFormat | format, | ||
Property::PixDataType | type, | ||
const void * | data | ||
) |
Specifies a two dimensional texture sub image.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SubImage2D | ( | const images::Image & | image, |
GLint | xoffs = 0 , |
||
GLint | yoffs = 0 , |
||
GLint | level = 0 |
||
) |
Specifies a two dimensional texture sub image.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SubImage3D | ( | GLint | level, |
GLint | xoffs, | ||
GLint | yoffs, | ||
GLint | zoffs, | ||
GLsizei | width, | ||
GLsizei | height, | ||
GLsizei | depth, | ||
PixelDataFormat | format, | ||
Property::PixDataType | type, | ||
const void * | data | ||
) |
Specifies a three dimensional texture sub image.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SubImage3D | ( | const images::Image & | image, |
GLint | xoffs = 0 , |
||
GLint | yoffs = 0 , |
||
GLint | zoffs = 0 , |
||
GLint | level = 0 |
||
) |
Specifies a three dimensional texture sub image.
TextureSwizzle oglplus::ObjectOps< tag::DirectState, tag::Texture >::Swizzle | ( | TextureSwizzleCoord | coord | ) | const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_*)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Swizzle | ( | TextureSwizzleCoord | coord, |
TextureSwizzle | mode | ||
) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_*)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
TextureSwizzle oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleA | ( | void | ) | const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_A)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_A
References oglplus::A.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleA | ( | TextureSwizzle | mode | ) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_A)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_A
References oglplus::A.
TextureSwizzle oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleB | ( | void | ) | const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_B)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_B
References oglplus::B.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleB | ( | TextureSwizzle | mode | ) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_B)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_B
References oglplus::B.
TextureSwizzle oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleG | ( | void | ) | const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_G)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_G
References oglplus::G.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleG | ( | TextureSwizzle | mode | ) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_G)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_G
References oglplus::G.
TextureSwizzle oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleR | ( | void | ) | const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_R)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_R
References oglplus::R.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleR | ( | TextureSwizzle | mode | ) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_R)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_R
References oglplus::R.
TextureSwizzleTuple oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleRGBA | ( | void | ) | const |
Gets the swizzle parameter (TEXTURE_SWIZZLE_RGBA)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_RGBA
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleRGBA | ( | TextureSwizzle | mode | ) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_RGBA
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleRGBA | ( | TextureSwizzle | mode_r, |
TextureSwizzle | mode_g, | ||
TextureSwizzle | mode_b, | ||
TextureSwizzle | mode_a | ||
) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_RGBA
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::SwizzleRGBA | ( | const TextureSwizzleTuple & | modes | ) |
Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_RGBA
|
inherited |
References and reinteprets a subset of the data of another texture.
Requires OpenGL 4.3 or the GL_ARB_texture_view extension.
References oglplus::GetGLName().
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::Width | ( | GLint | level = 0 | ) | const |
Returns the width of the texture as it was specified by *Image*D.
GL_TEXTURE_WIDTH
TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Texture >::Wrap | ( | TextureWrapCoord | coord | ) | const |
Gets the wrap parameter (TEXTURE_WRAP_*)
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Wrap | ( | TextureWrapCoord | coord, |
TextureWrap | mode | ||
) |
Sets the wrap parameter (TEXTURE_WRAP_*)
TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapR | ( | void | ) | const |
Gets the wrap parameter (TEXTURE_WRAP_R)
GL_TEXTURE_WRAP_R
References oglplus::R.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapR | ( | TextureWrap | mode | ) |
Sets the wrap parameter (TEXTURE_WRAP_R)
GL_TEXTURE_WRAP_R
References oglplus::R.
TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapS | ( | void | ) | const |
Gets the wrap parameter (TEXTURE_WRAP_S)
GL_TEXTURE_WRAP_S
References oglplus::S.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapS | ( | TextureWrap | mode | ) |
Sets the wrap parameter (TEXTURE_WRAP_S)
GL_TEXTURE_WRAP_S
References oglplus::S.
TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapT | ( | void | ) | const |
Gets the wrap parameter (TEXTURE_WRAP_T)
GL_TEXTURE_WRAP_T
References oglplus::T.
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapT | ( | TextureWrap | mode | ) |
Sets the wrap parameter (TEXTURE_WRAP_T)
GL_TEXTURE_WRAP_T
References oglplus::T.