OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::ObjectOps< tag::DirectState, tag::Texture > Class Template Reference

Class wrapping texture object functionality with direct state access. More...

#include </home/chochlik/devel/oglplus/include/oglplus/dsa/texture.hpp>

Inheritance diagram for oglplus::ObjectOps< tag::DirectState, tag::Texture >:
Collaboration diagram for oglplus::ObjectOps< tag::DirectState, tag::Texture >:

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...
 
ObjectOpsStorage1D (GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width)
 Specifies all levels of 1D texture at the same time. More...
 
ObjectOpsStorage2D (GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height)
 Specifies all levels of 2D texture at the same time. More...
 
ObjectOpsStorage3D (GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLsizei depth)
 Specifies all levels of 3D texture at the same time. More...
 
ObjectOpsSubImage3D (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...
 
ObjectOpsSubImage3D (const images::Image &image, GLint xoffs=0, GLint yoffs=0, GLint zoffs=0, GLint level=0)
 Specifies a three dimensional texture sub image. More...
 
ObjectOpsSubImage2D (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...
 
ObjectOpsSubImage2D (const images::Image &image, GLint xoffs=0, GLint yoffs=0, GLint level=0)
 Specifies a two dimensional texture sub image. More...
 
ObjectOpsSubImage1D (GLint level, GLint xoffs, GLsizei width, PixelDataFormat format, Property::PixDataType type, const void *data)
 Specifies a one dimensional texture sub image. More...
 
ObjectOpsSubImage1D (const images::Image &image, GLint xoffs=0, GLint level=0)
 Specifies a two dimensional texture sub image. More...
 
ObjectOpsCopySubImage3D (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...
 
ObjectOpsCopySubImage2D (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...
 
ObjectOpsCopySubImage1D (GLint level, GLint xoffs, GLint x, GLint y, GLsizei width)
 Copies a one dimensional texture sub image from the framebuffer. More...
 
ObjectOpsCompressedSubImage3D (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...
 
ObjectOpsCompressedSubImage2D (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...
 
ObjectOpsCompressedSubImage1D (GLint level, GLint xoffs, GLsizei width, PixelDataFormat format, GLsizei image_size, const void *data)
 Specifies a one dimensional compressed texture sub image. More...
 
ObjectOpsBuffer (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...
 
ObjectOpsBaseLevel (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...
 
ObjectOpsBorderColor (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...
 
ObjectOpsBorderColor (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...
 
ObjectOpsBorderColor (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...
 
ObjectOpsCompareMode (TextureCompareMode mode)
 Sets the compare mode (TEXTURE_COMPARE_MODE) More...
 
CompareFunction CompareFunc (void) const
 Sets the compare function (TEXTURE_COMPARE_FUNC) More...
 
ObjectOpsCompareFunc (CompareFunction func)
 Sets the compare function (TEXTURE_COMPARE_FUNC) More...
 
GLfloat LODBias (void) const
 Gets the LOD bias value (TEXTURE_LOD_BIAS) More...
 
ObjectOpsLODBias (GLfloat value)
 Sets the LOD bias value (TEXTURE_LOD_BIAS) More...
 
ObjectOpsFilter (TextureFilter filter)
 Sets both the minification and maginification filter. More...
 
TextureMagFilter MagFilter (void) const
 Gets the magnification filter (TEXTURE_MAG_FILTER) More...
 
ObjectOpsMagFilter (TextureMagFilter filter)
 Sets the magnification filter (TEXTURE_MAG_FILTER) More...
 
TextureMinFilter MinFilter (void) const
 Gets the minification filter (TEXTURE_MIN_FILTER) More...
 
ObjectOpsMinFilter (TextureMinFilter filter)
 Sets the minification filter (TEXTURE_MIN_FILTER) More...
 
GLfloat MinLOD (void) const
 Gets minimal LOD value (TEXTURE_MIN_LOD) More...
 
ObjectOpsMinLOD (GLfloat value)
 Sets minimal LOD value (TEXTURE_MIN_LOD) More...
 
GLfloat MaxLOD (void) const
 Gets maximum LOD value (TEXTURE_MAX_LOD) More...
 
ObjectOpsMaxLOD (GLfloat value)
 Sets maximum LOD value (TEXTURE_MAX_LOD) More...
 
GLint MaxLevel (void) const
 Gets maximum level value (TEXTURE_MAX_LEVEL) More...
 
ObjectOpsMaxLevel (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...
 
ObjectOpsAnisotropy (GLfloat value)
 Sets the anisotropy level. More...
 
TextureSwizzle Swizzle (TextureSwizzleCoord coord) const
 Gets the swizzle parameter (TEXTURE_SWIZZLE_*) More...
 
ObjectOpsSwizzle (TextureSwizzleCoord coord, TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_*) More...
 
TextureSwizzle SwizzleR (void) const
 Gets the swizzle parameter (TEXTURE_SWIZZLE_R) More...
 
ObjectOpsSwizzleR (TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_R) More...
 
TextureSwizzle SwizzleG (void) const
 Gets the swizzle parameter (TEXTURE_SWIZZLE_G) More...
 
ObjectOpsSwizzleG (TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_G) More...
 
TextureSwizzle SwizzleB (void) const
 Gets the swizzle parameter (TEXTURE_SWIZZLE_B) More...
 
ObjectOpsSwizzleB (TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_B) More...
 
TextureSwizzle SwizzleA (void) const
 Gets the swizzle parameter (TEXTURE_SWIZZLE_A) More...
 
ObjectOpsSwizzleA (TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_A) More...
 
TextureSwizzleTuple SwizzleRGBA (void) const
 Gets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) More...
 
ObjectOpsSwizzleRGBA (TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) More...
 
ObjectOpsSwizzleRGBA (TextureSwizzle mode_r, TextureSwizzle mode_g, TextureSwizzle mode_b, TextureSwizzle mode_a)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) More...
 
ObjectOpsSwizzleRGBA (const TextureSwizzleTuple &modes)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) More...
 
TextureWrap Wrap (TextureWrapCoord coord) const
 Gets the wrap parameter (TEXTURE_WRAP_*) More...
 
ObjectOpsWrap (TextureWrapCoord coord, TextureWrap mode)
 Sets the wrap parameter (TEXTURE_WRAP_*) More...
 
TextureWrap WrapS (void) const
 Gets the wrap parameter (TEXTURE_WRAP_S) More...
 
ObjectOpsWrapS (TextureWrap mode)
 Sets the wrap parameter (TEXTURE_WRAP_S) More...
 
TextureWrap WrapT (void) const
 Gets the wrap parameter (TEXTURE_WRAP_T) More...
 
ObjectOpsWrapT (TextureWrap mode)
 Sets the wrap parameter (TEXTURE_WRAP_T) More...
 
TextureWrap WrapR (void) const
 Gets the wrap parameter (TEXTURE_WRAP_R) More...
 
ObjectOpsWrapR (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...
 
ObjectOpsDepthStencilMode (PixelDataFormat mode)
 Sets the swizzle parameter (DEPTH_STENCIL_TEXTURE_MODE) More...
 
bool Seamless (void) const
 Gets the seamless cubemap setting value. More...
 
ObjectOpsSeamless (bool enable)
 Sets the seamless cubemap setting. More...
 
ObjectOpsGenerateMipmap (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...
 

Detailed Description

template<>
class oglplus::ObjectOps< tag::DirectState, tag::Texture >

Class wrapping texture object functionality with direct state access.

Note
Do not use this class directly, use DSATexture instead.

Member Function Documentation

static void oglplus::ObjCommonOps< tag::Texture >::Active ( TextureUnitSelector  index)
staticinherited

Specify active texture unit for subsequent commands.

Exceptions
Error
See Also
Bind
Related OpenGL symbols:
glActiveTexture
static GLint oglplus::ObjCommonOps< tag::Texture >::Active ( void  )
staticinherited

Returns active texture unit.

Exceptions
Error
Related OpenGL symbols:
glGet GL_ACTIVE_TEXTURE
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::AlphaSize ( GLint  level = 0) const

Returns the actual resolution of the ALPHA component.

See Also
RedSize
GreenSize
BlueSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter 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.

See Also
RedType
GreenType
BlueType
DepthType
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_ALPHA_TYPE
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Texture >::Anisotropy ( void  ) const

Gets the current anisotropy level.

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MAX_ANISOTROPY_EXT
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Anisotropy ( GLfloat  value)

Sets the anisotropy level.

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MAX_ANISOTROPY_EXT
GLuint oglplus::ObjectOps< tag::DirectState, tag::Texture >::BaseLevel ( void  ) const

Returns the texture base level (TEXTURE_BASE_LEVEL)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_BASE_LEVEL
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::BaseLevel ( GLuint  level)

Sets the texture base level (TEXTURE_BASE_LEVEL)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_BASE_LEVEL
static void oglplus::ObjBindingOps< tag::Texture >::Bind ( Target  target,
TextureName  texture 
)
staticinherited

Binds the specified texture to the specified target.

Related OpenGL symbols:
glBindTexture

References oglplus::GetGLName().

static void oglplus::ObjBindingOps< tag::Texture >::Bind ( GLuint  first,
const Sequence< TextureName > &  textures 
)
staticinherited

Sequentially bind textures to texture units starting with first.

Exceptions
Error
Related OpenGL symbols:
glBindTextures Requires OpenGL 4.4 or the GL_ARB_multi_bind extension.

References oglplus::GetGLNames(), and oglplus::Sequence< ObjName >::size().

void oglplus::ObjCommonOps< tag::Texture >::Bind ( Target  target) const
inherited

Binds this texture to the specified target.

Related OpenGL symbols:
glBindTexture
static void oglplus::ObjBindingOps< tag::Texture >::BindImage ( ImageUnitSelector  unit,
TextureName  texture,
GLint  level,
bool  layered,
GLint  layer,
AccessSpecifier  access,
ImageUnitFormat  format 
)
staticinherited

Binds a level of texture to an image unit.

Requires OpenGL 4.2 or the GL_ARB_shader_image_load_store extension.

Related OpenGL symbols:
glBindImageTexture

References oglplus::GetGLName().

static void oglplus::ObjBindingOps< tag::Texture >::BindImage ( GLuint  first,
const Sequence< TextureName > &  textures 
)
staticinherited

Sequentially bind textures to image units starting with first.

Exceptions
Error
Related OpenGL symbols:
glBindImageTextures Requires OpenGL 4.4 or the GL_ARB_multi_bind extension.

References oglplus::GetGLNames(), and oglplus::Sequence< ObjName >::size().

void oglplus::ObjCommonOps< tag::Texture >::BindImage ( ImageUnitSelector  unit,
GLint  level,
bool  layered,
GLint  layer,
AccessSpecifier  access,
ImageUnitFormat  format 
) const
inherited

Binds a level of this texture to an image unit.

Requires OpenGL 4.2 or the GL_ARB_shader_image_load_store extension.

Related OpenGL symbols:
glBindImageTexture
static TextureName oglplus::ObjBindingOps< tag::Texture >::Binding ( Target  target)
staticinherited

Returns the current Texture bound to specified target.

Related OpenGL symbols:
glGetIntegerv
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::BlueSize ( GLint  level = 0) const

Returns the actual resolution of the BLUE component.

See Also
RedSize
GreenSize
AlphaSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter 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.

See Also
RedType
GreenType
AlphaType
DepthType
Related OpenGL symbols:
glGetTexLevelParameter 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)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_BORDER_COLOR
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::BorderColor ( Vector< GLfloat, 4 >  color)

Sets the texture border color (TEXTURE_BORDER_COLOR)

Related OpenGL symbols:
glTexParameter 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)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_BORDER_COLOR
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::BorderColor ( Vector< GLint, 4 >  color)

Sets the texture border color (TEXTURE_BORDER_COLOR)

Related OpenGL symbols:
glTexParameter 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)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_BORDER_COLOR
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::BorderColor ( Vector< GLuint, 4 >  color)

Sets the texture border color (TEXTURE_BORDER_COLOR)

Related OpenGL symbols:
glTexParameter 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.

Related OpenGL symbols:
glTexBuffer

References oglplus::GetGLName().

template<typename GLtype >
void oglplus::ObjCommonOps< tag::Texture >::ClearImage ( GLsizei  level,
PixelDataFormat  format,
const GLtype *  data 
)
inherited

Clears the specified level of texture image.

Requires OpenGL 4.4.

Related OpenGL symbols:
glClearTexImage
template<typename GLtype >
void oglplus::ObjCommonOps< tag::Texture >::ClearSubImage ( GLsizei  level,
GLint  xoffs,
GLint  yoffs,
GLint  zoffs,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
PixelDataFormat  format,
const GLtype *  data 
)
inherited

Clears the specified part of texture image.

Requires OpenGL 4.4.

Related OpenGL symbols:
glClearTexSubImage
CompareFunction oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompareFunc ( void  ) const

Sets the compare function (TEXTURE_COMPARE_FUNC)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_COMPARE_FUNC
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompareFunc ( CompareFunction  func)

Sets the compare function (TEXTURE_COMPARE_FUNC)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_COMPARE_FUNC
TextureCompareMode oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompareMode ( void  ) const

Gets the compare mode (TEXTURE_COMPARE_MODE)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_COMPARE_MODE
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::CompareMode ( TextureCompareMode  mode)

Sets the compare mode (TEXTURE_COMPARE_MODE)

Related OpenGL symbols:
glTexParameter 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.

Related OpenGL symbols:
glGetTexLevelParameter 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.

Related OpenGL symbols:
glCompressedTexSubImage1D
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.

Related OpenGL symbols:
glCompressedTexSubImage2D
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.

Related OpenGL symbols:
glCompressedTexSubImage3D
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.

Related OpenGL symbols:
glCopyTexSubImage1D
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.

Related OpenGL symbols:
glCopyTexSubImage2D
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.

Related OpenGL symbols:
glCopyTexSubImage3D
static Target oglplus::ObjCommonOps< tag::Texture >::CubeMapFace ( GLuint  face)
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.

See Also
Width
Height
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_DEPTH
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::DepthSize ( GLint  level = 0) const

Returns the actual resolution of the DEPTH component.

See Also
RedSize
GreenSize
BlueSize
AlphaSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter 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.

Related OpenGL symbols:
glGetTexParameter 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.

Related OpenGL symbols:
glTexParameter 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.

See Also
RedType
GreenType
BlueType
AlphaType
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_DEPTH_TYPE
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Filter ( TextureFilter  filter)

Sets both the minification and maginification filter.

Related OpenGL symbols:
glTexParameter 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.

Related OpenGL symbols:
glGenerateMipmap
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.

Related OpenGL symbols:
glGetCompressedTexImage
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.

Related OpenGL symbols:
glGetCompressedTexImage
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.

Note
This function, unlike 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.
Related OpenGL symbols:
glGetTexImage
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.

Note
This function, unlike 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.
Related OpenGL symbols:
glGetTexImage
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::GreenSize ( GLint  level = 0) const

Returns the actual resolution of the GREEN component.

See Also
RedSize
BlueSize
AlphaSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter 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.

See Also
RedType
BlueType
AlphaType
DepthType
Related OpenGL symbols:
glGetTexLevelParameter 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.

See Also
Width
Depth
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_HEIGHT
PixelDataInternalFormat oglplus::ObjectOps< tag::DirectState, tag::Texture >::InternalFormat ( GLint  level = 0) const

Returns the internal data format of the image array.

Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_INTERNAL_FORMAT
void oglplus::ObjCommonOps< tag::Texture >::InvalidateImage ( GLsizei  level)
inherited

Invalidates the specified level of texture image.

Requires OpenGL 4.3.

Related OpenGL symbols:
glInvalidateTexImage
void oglplus::ObjCommonOps< tag::Texture >::InvalidateSubImage ( GLsizei  level,
GLint  xoffs,
GLint  yoffs,
GLint  zoffs,
GLsizei  width,
GLsizei  height,
GLsizei  depth 
)
inherited

Invalidates the specified part of texture image.

Requires OpenGL 4.3.

Related OpenGL symbols:
glInvalidateTexSubImage
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Texture >::LODBias ( void  ) const

Gets the LOD bias value (TEXTURE_LOD_BIAS)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_LOD_BIAS
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::LODBias ( GLfloat  value)

Sets the LOD bias value (TEXTURE_LOD_BIAS)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_LOD_BIAS
TextureMagFilter oglplus::ObjectOps< tag::DirectState, tag::Texture >::MagFilter ( void  ) const

Gets the magnification filter (TEXTURE_MAG_FILTER)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MAG_FILTER
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::MagFilter ( TextureMagFilter  filter)

Sets the magnification filter (TEXTURE_MAG_FILTER)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MAG_FILTER
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Texture >::MaxAnisotropy ( void  ) const

Gets the maximum anisotropy level.

Related OpenGL symbols:
glGetTexParameter GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
GLint oglplus::ObjectOps< tag::DirectState, tag::Texture >::MaxLevel ( void  ) const

Gets maximum level value (TEXTURE_MAX_LEVEL)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MAX_LEVEL
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::MaxLevel ( GLint  value)

Sets maximum level value (TEXTURE_MAX_LEVEL)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MAX_LEVEL
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Texture >::MaxLOD ( void  ) const

Gets maximum LOD value (TEXTURE_MAX_LOD)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MAX_LOD
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::MaxLOD ( GLfloat  value)

Sets maximum LOD value (TEXTURE_MAX_LOD)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MAX_LOD
TextureMinFilter oglplus::ObjectOps< tag::DirectState, tag::Texture >::MinFilter ( void  ) const

Gets the minification filter (TEXTURE_MIN_FILTER)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MIN_FILTER
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::MinFilter ( TextureMinFilter  filter)

Sets the minification filter (TEXTURE_MIN_FILTER)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MIN_FILTER
GLfloat oglplus::ObjectOps< tag::DirectState, tag::Texture >::MinLOD ( void  ) const

Gets minimal LOD value (TEXTURE_MIN_LOD)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MIN_LOD
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::MinLOD ( GLfloat  value)

Sets minimal LOD value (TEXTURE_MIN_LOD)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MIN_LOD
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::RedSize ( GLint  level = 0) const

Returns the actual resolution of the RED component.

See Also
GreenSize
BlueSize
AlphaSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter 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.

See Also
GreenType
BlueType
AlphaType
DepthType
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_RED_TYPE
bool oglplus::ObjectOps< tag::DirectState, tag::Texture >::Seamless ( void  ) const

Gets the seamless cubemap setting value.

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_CUBE_MAP_SEAMLESS
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Seamless ( bool  enable)

Sets the seamless cubemap setting.

Related OpenGL symbols:
glTexParameter GL_TEXTURE_CUBE_MAP_SEAMLESS
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::SharedSize ( GLint  level = 0) const

Returns the size of all texture components.

See Also
RedSize
GreenSize
BlueSize
AlphaSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_SHARED_SIZE
GLsizei oglplus::ObjectOps< tag::DirectState, tag::Texture >::StencilSize ( GLint  level = 0) const

Returns the actual resolution of the STENCIL component.

See Also
RedSize
GreenSize
BlueSize
AlphaSize
DepthSize
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_STENCIL_SIZE
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.

Related OpenGL symbols:
glTextureStorage1D
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.

Related OpenGL symbols:
glTextureStorage2D
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.

Related OpenGL symbols:
glTextureStorage3D
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.

Related OpenGL symbols:
glTexSubImage1D
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.

Related OpenGL symbols:
glTexSubImage1D
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.

Related OpenGL symbols:
glTexSubImage2D
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.

Related OpenGL symbols:
glTexSubImage2D
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.

Related OpenGL symbols:
glTexSubImage3D
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.

Related OpenGL symbols:
glTexSubImage3D
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.

Related OpenGL symbols:
glGetTexParameter
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.

Related OpenGL symbols:
glTexParameter
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.

Related OpenGL symbols:
glGetTexParameter 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.

Related OpenGL symbols:
glTexParameter 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.

Related OpenGL symbols:
glGetTexParameter 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.

Related OpenGL symbols:
glTexParameter 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.

Related OpenGL symbols:
glGetTexParameter 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.

Related OpenGL symbols:
glTexParameter 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.

Related OpenGL symbols:
glGetTexParameter 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.

Related OpenGL symbols:
glTexParameter 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.

Related OpenGL symbols:
glGetTexParameter 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.

Related OpenGL symbols:
glTexParameter 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.

Related OpenGL symbols:
glTexParameter 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.

Related OpenGL symbols:
glTexParameter GL_TEXTURE_SWIZZLE_RGBA
void oglplus::ObjCommonOps< tag::Texture >::View ( Target  target,
TextureName  orig_texture,
PixelDataInternalFormat  internal_format,
GLuint  min_level,
GLuint  num_levels,
GLuint  min_layer,
GLuint  num_layers 
)
inherited

References and reinteprets a subset of the data of another texture.

Requires OpenGL 4.3 or the GL_ARB_texture_view extension.

Related OpenGL symbols:
glTextureView

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.

See Also
Height
Depth
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_WIDTH
TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Texture >::Wrap ( TextureWrapCoord  coord) const

Gets the wrap parameter (TEXTURE_WRAP_*)

Related OpenGL symbols:
glGetTexParameter
ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::Wrap ( TextureWrapCoord  coord,
TextureWrap  mode 
)

Sets the wrap parameter (TEXTURE_WRAP_*)

Related OpenGL symbols:
glTexParameter
TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapR ( void  ) const

Gets the wrap parameter (TEXTURE_WRAP_R)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_WRAP_R

References oglplus::R.

ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapR ( TextureWrap  mode)

Sets the wrap parameter (TEXTURE_WRAP_R)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_WRAP_R

References oglplus::R.

TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapS ( void  ) const

Gets the wrap parameter (TEXTURE_WRAP_S)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_WRAP_S

References oglplus::S.

ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapS ( TextureWrap  mode)

Sets the wrap parameter (TEXTURE_WRAP_S)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_WRAP_S

References oglplus::S.

TextureWrap oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapT ( void  ) const

Gets the wrap parameter (TEXTURE_WRAP_T)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_WRAP_T

References oglplus::T.

ObjectOps& oglplus::ObjectOps< tag::DirectState, tag::Texture >::WrapT ( TextureWrap  mode)

Sets the wrap parameter (TEXTURE_WRAP_T)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_WRAP_T

References oglplus::T.


The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/dsa/texture.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).