OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture > Class Template Reference

Operations applicable to any texture including texture 0 (zero) More...

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

Inheritance diagram for oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >:
Collaboration diagram for oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >:

Classes

struct  Property
 Types related to Texture. More...
 

Public Types

typedef TextureTarget Target
 Texture bind targets.
 

Public Member Functions

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 GLsizei Width (Target target, GLint level=0)
 Returns the width of the texture as it was specified by *Image*D. More...
 
static GLsizei Height (Target target, GLint level=0)
 Returns the height of the texture as it was specified by *Image*D. More...
 
static GLsizei Depth (Target target, GLint level=0)
 Returns the depth of the texture as it was specified by *Image*D. More...
 
static PixelDataType RedType (Target target, GLint level=0)
 Returns the data type used to store the RED component. More...
 
static PixelDataType GreenType (Target target, GLint level=0)
 Returns the data type used to store the GREEN component. More...
 
static PixelDataType BlueType (Target target, GLint level=0)
 Returns the data type used to store the BLUE component. More...
 
static PixelDataType AlphaType (Target target, GLint level=0)
 Returns the data type used to store the ALPHA component. More...
 
static PixelDataType DepthType (Target target, GLint level=0)
 Returns the data type used to store the DEPTH component. More...
 
static GLsizei RedSize (Target target, GLint level=0)
 Returns the actual resolution of the RED component. More...
 
static GLsizei GreenSize (Target target, GLint level=0)
 Returns the actual resolution of the GREEN component. More...
 
static GLsizei BlueSize (Target target, GLint level=0)
 Returns the actual resolution of the BLUE component. More...
 
static GLsizei AlphaSize (Target target, GLint level=0)
 Returns the actual resolution of the ALPHA component. More...
 
static GLsizei DepthSize (Target target, GLint level=0)
 Returns the actual resolution of the DEPTH component. More...
 
static GLsizei StencilSize (Target target, GLint level=0)
 Returns the actual resolution of the STENCIL component. More...
 
static GLsizei SharedSize (Target target, GLint level=0)
 Returns the size of all texture components. More...
 
static GLsizei CompressedImageSize (Target target, GLint level=0)
 Returns the size (in bytes) of the image array if it is compressed. More...
 
static PixelDataInternalFormat InternalFormat (Target target, GLint level=0)
 Returns the internal data format of the image array. More...
 
static void GetImage (Target target, GLint level, PixelDataFormat format, const OutputData &dest)
 Allows to obtain the texture image in uncompressed form. More...
 
static void GetImage (Target target, GLint level, PixelDataFormat format, Property::PixDataType type, GLsizei size, GLvoid *buffer)
 Allows to obtain the texture image in uncompressed form. More...
 
static void GetCompressedImage (Target target, GLint level, const OutputData &dest)
 Allows to obtain the texture image in compressed form. More...
 
static void GetCompressedImage (Target target, GLint level, GLsizei size, GLubyte *buffer)
 Allows to obtain the texture image in compressed form. More...
 
static void GetCompressedImage (Target target, GLint level, std::vector< GLubyte > &dest)
 Allows to obtain the texture image in compressed form. More...
 
static void Image3D (Target target, GLint level, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLsizei depth, GLint border, PixelDataFormat format, Property::PixDataType type, const void *data)
 Specifies a three dimensional texture image. More...
 
static void Image3D (Target target, const images::Image &image, GLint level=0, GLint border=0)
 Specifies a three dimensional texture image. More...
 
static void SubImage3D (Target target, 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...
 
static void SubImage3D (Target target, const images::Image &image, GLint xoffs, GLint yoffs, GLint zoffs, GLint level=0)
 Specifies a three dimensional texture sub image. More...
 
static void Image2D (Target target, GLint level, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLint border, PixelDataFormat format, Property::PixDataType type, const void *data)
 Specifies a two dimensional texture image. More...
 
static void Image2D (Target target, const images::Image &image, GLint level=0, GLint border=0)
 Specifies a two dimensional texture image. More...
 
static void ImageCM (GLuint face, GLint level, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLint border, PixelDataFormat format, Property::PixDataType type, const void *data)
 Specifies the image of the specified cube-map face. More...
 
static void ImageCM (GLuint face, const images::Image &image, GLint level=0, GLint border=0)
 Specifies the image of the specified cube-map face. More...
 
static void SubImage2D (Target target, 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...
 
static void SubImage2D (Target target, const images::Image &image, GLint xoffs, GLint yoffs, GLint level=0)
 Specifies a two dimensional texture sub image. More...
 
static void Image1D (Target target, GLint level, PixelDataInternalFormat internal_format, GLsizei width, GLint border, PixelDataFormat format, Property::PixDataType type, const void *data)
 Specifies a one dimensional texture image. More...
 
static void Image1D (Target target, const images::Image &image, GLint level=0, GLint border=0)
 Specifies a one dimensional texture image. More...
 
static void SubImage1D (Target target, GLint level, GLint xoffs, GLsizei width, PixelDataFormat format, Property::PixDataType type, const void *data)
 Specifies a one dimensional texture sub image. More...
 
static void SubImage1D (Target target, const images::Image &image, GLint xoffs, GLint level=0)
 Specifies a two dimensional texture sub image. More...
 
static void Image (Target target, const images::Image &image, GLint level=0, GLint border=0)
 Specifies a texture image. More...
 
static void Image (Target target, const images::ImageSpec &image_spec, GLint level=0, GLint border=0)
 Specifies a texture image. More...
 
static void CopyImage2D (Target target, GLint level, PixelDataInternalFormat internal_format, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
 Copies a two dimensional texture image from the framebuffer. More...
 
static void CopyImage1D (Target target, GLint level, PixelDataInternalFormat internal_format, GLint x, GLint y, GLsizei width, GLint border)
 Copies a one dimensional texture image from the framebuffer. More...
 
static void CopySubImage3D (Target target, 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...
 
static void CopySubImage2D (Target target, 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...
 
static void CopySubImage1D (Target target, GLint level, GLint xoffs, GLint x, GLint y, GLsizei width)
 Copies a one dimensional texture sub image from the framebuffer. More...
 
static void CompressedImage3D (Target target, GLint level, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei image_size, const void *data)
 Specifies a three dimensional compressed texture image. More...
 
static void CompressedImage2D (Target target, GLint level, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLint border, GLsizei image_size, const void *data)
 Specifies a two dimensional compressed texture image. More...
 
static void CompressedImage1D (Target target, GLint level, PixelDataInternalFormat internal_format, GLsizei width, GLint border, GLsizei image_size, const void *data)
 Specifies a one dimensional compressed texture image. More...
 
static void CompressedSubImage3D (Target target, 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...
 
static void CompressedSubImage2D (Target target, 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...
 
static void CompressedSubImage1D (Target target, GLint level, GLint xoffs, GLsizei width, PixelDataFormat format, GLsizei image_size, const void *data)
 Specifies a one dimensional compressed texture sub image. More...
 
static void Image3DMultisample (Target target, GLsizei samples, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLsizei depth, bool fixed_sample_locations)
 Sets-up a three dimensional multisample texture. More...
 
static void Image2DMultisample (Target target, GLsizei samples, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, bool fixed_sample_locations)
 Sets-up a two dimensional multisample texture. More...
 
static void Buffer (Target target, PixelDataInternalFormat internal_format, BufferName buffer)
 Assigns a buffer storing the texel data to the texture. More...
 
static void BufferRange (Target target, PixelDataInternalFormat internal_format, BufferName buffer, GLintptr offset, GLsizeiptr size)
 Assigns a buffer range storing the texel data to the texture. More...
 
static void Storage1D (Target target, GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width)
 Specifies all levels of 1D texture at the same time. More...
 
static void Storage2D (Target target, GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height)
 Specifies all levels of 2D texture at the same time. More...
 
static void Storage3D (Target target, GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLsizei depth)
 Specifies all levels of 3D texture at the same time. More...
 
static GLuint BaseLevel (Target target)
 Returns the texture base level (TEXTURE_BASE_LEVEL) More...
 
static void BaseLevel (Target target, GLuint level)
 Sets the texture base level (TEXTURE_BASE_LEVEL) More...
 
static Vector< GLfloat, 4 > BorderColor (Target target, TypeTag< GLfloat >)
 Gets the texture border color (TEXTURE_BORDER_COLOR) More...
 
static void BorderColor (Target target, Vector< GLfloat, 4 > color)
 Sets the texture border color (TEXTURE_BORDER_COLOR) More...
 
static Vector< GLint, 4 > BorderColor (Target target, TypeTag< GLint >)
 Gets the texture border color (TEXTURE_BORDER_COLOR) More...
 
static void BorderColor (Target target, Vector< GLint, 4 > color)
 Sets the texture border color (TEXTURE_BORDER_COLOR) More...
 
static Vector< GLuint, 4 > BorderColor (Target target, TypeTag< GLuint >)
 Gets the texture border color (TEXTURE_BORDER_COLOR) More...
 
static void BorderColor (Target target, Vector< GLuint, 4 > color)
 Sets the texture border color (TEXTURE_BORDER_COLOR) More...
 
static TextureCompareMode CompareMode (Target target)
 Gets the compare mode (TEXTURE_COMPARE_MODE) More...
 
static void CompareMode (Target target, TextureCompareMode mode)
 Sets the compare mode (TEXTURE_COMPARE_MODE) More...
 
static CompareFunction CompareFunc (Target target)
 Sets the compare function (TEXTURE_COMPARE_FUNC) More...
 
static void CompareFunc (Target target, CompareFunction func)
 Sets the compare function (TEXTURE_COMPARE_FUNC) More...
 
static GLfloat LODBias (Target target)
 Gets the LOD bias value (TEXTURE_LOD_BIAS) More...
 
static void LODBias (Target target, GLfloat value)
 Sets the LOD bias value (TEXTURE_LOD_BIAS) More...
 
static void Filter (Target target, TextureFilter filter)
 Sets both the minification and magnification filter. More...
 
static TextureMagFilter MagFilter (Target target)
 Gets the magnification filter (TEXTURE_MAG_FILTER) More...
 
static void MagFilter (Target target, TextureMagFilter filter)
 Sets the magnification filter (TEXTURE_MAG_FILTER) More...
 
static TextureMinFilter MinFilter (Target target)
 Gets the minification filter (TEXTURE_MIN_FILTER) More...
 
static void MinFilter (Target target, TextureMinFilter filter)
 Sets the minification filter (TEXTURE_MIN_FILTER) More...
 
static GLfloat MinLOD (Target target)
 Gets minimal LOD value (TEXTURE_MIN_LOD) More...
 
static void MinLOD (Target target, GLfloat value)
 Sets minimal LOD value (TEXTURE_MIN_LOD) More...
 
static GLfloat MaxLOD (Target target)
 Gets maximum LOD value (TEXTURE_MAX_LOD) More...
 
static void MaxLOD (Target target, GLfloat value)
 Sets maximum LOD value (TEXTURE_MAX_LOD) More...
 
static GLint MaxLevel (Target target)
 Gets maximum level value (TEXTURE_MAX_LEVEL) More...
 
static void MaxLevel (Target target, GLint value)
 Sets maximum level value (TEXTURE_MAX_LEVEL) More...
 
static GLfloat MaxAnisotropy (Target target)
 Gets the maximum anisotropy level. More...
 
static GLfloat Anisotropy (Target target)
 Gets the current anisotropy level. More...
 
static void Anisotropy (Target target, GLfloat value)
 Sets the anisotropy level. More...
 
static TextureSwizzle Swizzle (Target target, TextureSwizzleCoord coord)
 Gets the swizzle parameter (TEXTURE_SWIZZLE_*) More...
 
static void Swizzle (Target target, TextureSwizzleCoord coord, TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_*) More...
 
static TextureSwizzle SwizzleR (Target target)
 Gets the swizzle parameter (TEXTURE_SWIZZLE_R) More...
 
static void SwizzleR (Target target, TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_R) More...
 
static TextureSwizzle SwizzleG (Target target)
 Gets the swizzle parameter (TEXTURE_SWIZZLE_G) More...
 
static void SwizzleG (Target target, TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_G) More...
 
static TextureSwizzle SwizzleB (Target target)
 Gets the swizzle parameter (TEXTURE_SWIZZLE_B) More...
 
static void SwizzleB (Target target, TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_B) More...
 
static TextureSwizzle SwizzleA (Target target)
 Gets the swizzle parameter (TEXTURE_SWIZZLE_A) More...
 
static void SwizzleA (Target target, TextureSwizzle mode)
 Sets the swizzle parameter (TEXTURE_SWIZZLE_A) More...
 
static TextureSwizzleTuple SwizzleRGBA (Target target)
 Gets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) More...
 
static void SwizzleRGBA (Target target, TextureSwizzle mode)
 Sets the RGBA swizzle parameter (TEXTURE_SWIZZLE_RGBA) More...
 
static void SwizzleRGBA (Target target, TextureSwizzle mode_r, TextureSwizzle mode_g, TextureSwizzle mode_b, TextureSwizzle mode_a)
 Sets the RGBA swizzle parameters (TEXTURE_SWIZZLE_RGBA) More...
 
static void SwizzleRGBA (Target target, const TextureSwizzleTuple &modes)
 Sets the RGBA swizzle parameters (TEXTURE_SWIZZLE_RGBA) More...
 
static TextureWrap Wrap (Target target, TextureWrapCoord coord)
 Gets the wrap parameter (TEXTURE_WRAP_*) More...
 
static void Wrap (Target target, TextureWrapCoord coord, TextureWrap mode)
 Sets the wrap parameter (TEXTURE_WRAP_*) More...
 
static TextureWrap WrapS (Target target)
 Gets the wrap parameter (TEXTURE_WRAP_S) More...
 
static void WrapS (Target target, TextureWrap mode)
 Sets the wrap parameter (TEXTURE_WRAP_S) More...
 
static TextureWrap WrapT (Target target)
 Gets the wrap parameter (TEXTURE_WRAP_T) More...
 
static void WrapT (Target target, TextureWrap mode)
 Sets the wrap parameter (TEXTURE_WRAP_T) More...
 
static TextureWrap WrapR (Target target)
 Gets the wrap parameter (TEXTURE_WRAP_R) More...
 
static void WrapR (Target target, TextureWrap mode)
 Sets the wrap parameter (TEXTURE_WRAP_R) More...
 
static PixelDataFormat DepthStencilMode (Target target)
 Gets the depth stencil mode parameter (DEPTH_STENCIL_TEXTURE_MODE) More...
 
static void DepthStencilMode (Target target, PixelDataFormat mode)
 Sets the depth stencil mode (DEPTH_STENCIL_TEXTURE_MODE) More...
 
static bool Seamless (Target target)
 Gets the seamless cubemap setting value. More...
 
static void Seamless (Target target, bool enable)
 Sets the seamless cubemap setting. More...
 
static void Barrier (void)
 Ensures that texture writes have been completed. More...
 
static void GenerateMipmap (Target target)
 Generate mipmap for the texture bound to the specified target. More...
 
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::ObjZeroOps< tag::ExplicitSel, tag::Texture >

Operations applicable to any texture including texture 0 (zero)

Note
Do not use this class directly, use Texture or DefaultTexture 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
static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::AlphaSize ( Target  target,
GLint  level = 0 
)
static

Returns the actual resolution of the ALPHA component.

See Also
RedSize
GreenSize
BlueSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_ALPHA_SIZE
static PixelDataType oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::AlphaType ( Target  target,
GLint  level = 0 
)
static

Returns the data type used to store the ALPHA component.

See Also
RedType
GreenType
BlueType
DepthType
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_ALPHA_TYPE
static GLfloat oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Anisotropy ( Target  target)
static

Gets the current anisotropy level.

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MAX_ANISOTROPY_EXT
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Anisotropy ( Target  target,
GLfloat  value 
)
static

Sets the anisotropy level.

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MAX_ANISOTROPY_EXT
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Barrier ( void  )
static

Ensures that texture writes have been completed.

Requires the GL_NV_texture_barrier extension.

Related OpenGL symbols:
glTextureBarrierNV
static GLuint oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BaseLevel ( Target  target)
static

Returns the texture base level (TEXTURE_BASE_LEVEL)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_BASE_LEVEL
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BaseLevel ( Target  target,
GLuint  level 
)
static

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
static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BlueSize ( Target  target,
GLint  level = 0 
)
static

Returns the actual resolution of the BLUE component.

See Also
RedSize
GreenSize
AlphaSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_BLUE_SIZE
static PixelDataType oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BlueType ( Target  target,
GLint  level = 0 
)
static

Returns the data type used to store the BLUE component.

See Also
RedType
GreenType
AlphaType
DepthType
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_BLUE_TYPE
static Vector<GLfloat, 4> oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BorderColor ( Target  target,
TypeTag< GLfloat >   
)
static

Gets the texture border color (TEXTURE_BORDER_COLOR)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_BORDER_COLOR
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BorderColor ( Target  target,
Vector< GLfloat, 4 >  color 
)
static

Sets the texture border color (TEXTURE_BORDER_COLOR)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_BORDER_COLOR
static Vector<GLint, 4> oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BorderColor ( Target  target,
TypeTag< GLint >   
)
static

Gets the texture border color (TEXTURE_BORDER_COLOR)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_BORDER_COLOR
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BorderColor ( Target  target,
Vector< GLint, 4 >  color 
)
static

Sets the texture border color (TEXTURE_BORDER_COLOR)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_BORDER_COLOR
static Vector<GLuint, 4> oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BorderColor ( Target  target,
TypeTag< GLuint >   
)
static

Gets the texture border color (TEXTURE_BORDER_COLOR)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_BORDER_COLOR
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BorderColor ( Target  target,
Vector< GLuint, 4 >  color 
)
static

Sets the texture border color (TEXTURE_BORDER_COLOR)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_BORDER_COLOR
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Buffer ( Target  target,
PixelDataInternalFormat  internal_format,
BufferName  buffer 
)
static

Assigns a buffer storing the texel data to the texture.

Requires OpenGL 3.1.

Related OpenGL symbols:
glTexBuffer

References oglplus::GetGLName().

static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::BufferRange ( Target  target,
PixelDataInternalFormat  internal_format,
BufferName  buffer,
GLintptr  offset,
GLsizeiptr  size 
)
static

Assigns a buffer range storing the texel data to the texture.

Requires OpenGL 4.3.

Related OpenGL symbols:
glTexBufferRange

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
static CompareFunction oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompareFunc ( Target  target)
static

Sets the compare function (TEXTURE_COMPARE_FUNC)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_COMPARE_FUNC
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompareFunc ( Target  target,
CompareFunction  func 
)
static

Sets the compare function (TEXTURE_COMPARE_FUNC)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_COMPARE_FUNC
static TextureCompareMode oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompareMode ( Target  target)
static

Gets the compare mode (TEXTURE_COMPARE_MODE)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_COMPARE_MODE
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompareMode ( Target  target,
TextureCompareMode  mode 
)
static

Sets the compare mode (TEXTURE_COMPARE_MODE)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_COMPARE_MODE
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompressedImage1D ( Target  target,
GLint  level,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLint  border,
GLsizei  image_size,
const void *  data 
)
static

Specifies a one dimensional compressed texture image.

Related OpenGL symbols:
glCompressedTexImage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompressedImage2D ( Target  target,
GLint  level,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLsizei  height,
GLint  border,
GLsizei  image_size,
const void *  data 
)
static

Specifies a two dimensional compressed texture image.

Related OpenGL symbols:
glCompressedTexImage2D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompressedImage3D ( Target  target,
GLint  level,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
GLint  border,
GLsizei  image_size,
const void *  data 
)
static

Specifies a three dimensional compressed texture image.

Related OpenGL symbols:
glCompressedTexImage3D
static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompressedImageSize ( Target  target,
GLint  level = 0 
)
static

Returns the size (in bytes) of the image array if it is compressed.

Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_COMPRESSED_IMAGE_SIZE
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompressedSubImage1D ( Target  target,
GLint  level,
GLint  xoffs,
GLsizei  width,
PixelDataFormat  format,
GLsizei  image_size,
const void *  data 
)
static

Specifies a one dimensional compressed texture sub image.

Related OpenGL symbols:
glCompressedTexSubImage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompressedSubImage2D ( Target  target,
GLint  level,
GLint  xoffs,
GLint  yoffs,
GLsizei  width,
GLsizei  height,
PixelDataFormat  format,
GLsizei  image_size,
const void *  data 
)
static

Specifies a two dimensional compressed texture sub image.

Related OpenGL symbols:
glCompressedTexSubImage2D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CompressedSubImage3D ( Target  target,
GLint  level,
GLint  xoffs,
GLint  yoffs,
GLint  zoffs,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
PixelDataFormat  format,
GLsizei  image_size,
const void *  data 
)
static

Specifies a three dimensional compressed texture sub image.

Related OpenGL symbols:
glCompressedTexSubImage3D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CopyImage1D ( Target  target,
GLint  level,
PixelDataInternalFormat  internal_format,
GLint  x,
GLint  y,
GLsizei  width,
GLint  border 
)
static

Copies a one dimensional texture image from the framebuffer.

Related OpenGL symbols:
glCopyTexImage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CopyImage2D ( Target  target,
GLint  level,
PixelDataInternalFormat  internal_format,
GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height,
GLint  border 
)
static

Copies a two dimensional texture image from the framebuffer.

Related OpenGL symbols:
glCopyTexImage2D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CopySubImage1D ( Target  target,
GLint  level,
GLint  xoffs,
GLint  x,
GLint  y,
GLsizei  width 
)
static

Copies a one dimensional texture sub image from the framebuffer.

Related OpenGL symbols:
glCopyTexSubImage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CopySubImage2D ( Target  target,
GLint  level,
GLint  xoffs,
GLint  yoffs,
GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)
static

Copies a two dimensional texture sub image from the framebuffer.

Related OpenGL symbols:
glCopyTexSubImage2D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::CopySubImage3D ( Target  target,
GLint  level,
GLint  xoffs,
GLint  yoffs,
GLint  zoffs,
GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)
static

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.

static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Depth ( Target  target,
GLint  level = 0 
)
static

Returns the depth of the texture as it was specified by *Image*D.

See Also
Width
Height
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_DEPTH
static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::DepthSize ( Target  target,
GLint  level = 0 
)
static

Returns the actual resolution of the DEPTH component.

See Also
RedSize
GreenSize
BlueSize
AlphaSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_DEPTH_SIZE
static PixelDataFormat oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::DepthStencilMode ( Target  target)
static

Gets the depth stencil mode parameter (DEPTH_STENCIL_TEXTURE_MODE)

Requires OpenGL 4.3.

Related OpenGL symbols:
glGetTexParameter GL_DEPTH_STENCIL_TEXTURE_MODE
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::DepthStencilMode ( Target  target,
PixelDataFormat  mode 
)
static

Sets the depth stencil mode (DEPTH_STENCIL_TEXTURE_MODE)

Requires OpenGL 4.3.

Related OpenGL symbols:
glTexParameter GL_DEPTH_STENCIL_TEXTURE_MODE
static PixelDataType oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::DepthType ( Target  target,
GLint  level = 0 
)
static

Returns the data type used to store the DEPTH component.

See Also
RedType
GreenType
BlueType
AlphaType
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_DEPTH_TYPE
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Filter ( Target  target,
TextureFilter  filter 
)
static

Sets both the minification and magnification filter.

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MIN_FILTER GL_TEXTURE_MAG_FILTER
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::GenerateMipmap ( Target  target)
static

Generate mipmap for the texture bound to the specified target.

Related OpenGL symbols:
glGenerateMipmap
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::GetCompressedImage ( Target  target,
GLint  level,
const OutputData dest 
)
static

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
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::GetCompressedImage ( Target  target,
GLint  level,
GLsizei  size,
GLubyte *  buffer 
)
static

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
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::GetCompressedImage ( Target  target,
GLint  level,
std::vector< GLubyte > &  dest 
)
static

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
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::GetImage ( Target  target,
GLint  level,
PixelDataFormat  format,
const OutputData dest 
)
static

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
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::GetImage ( Target  target,
GLint  level,
PixelDataFormat  format,
Property::PixDataType  type,
GLsizei  size,
GLvoid *  buffer 
)
static

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
static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::GreenSize ( Target  target,
GLint  level = 0 
)
static

Returns the actual resolution of the GREEN component.

See Also
RedSize
BlueSize
AlphaSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_GREEN_SIZE
static PixelDataType oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::GreenType ( Target  target,
GLint  level = 0 
)
static

Returns the data type used to store the GREEN component.

See Also
RedType
BlueType
AlphaType
DepthType
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_GREEN_TYPE
static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Height ( Target  target,
GLint  level = 0 
)
static

Returns the height of the texture as it was specified by *Image*D.

See Also
Width
Depth
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_HEIGHT
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Image ( Target  target,
const images::Image image,
GLint  level = 0,
GLint  border = 0 
)
static

Specifies a texture image.

Related OpenGL symbols:
glTexImage3D glTexImage2D glTexImage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Image ( Target  target,
const images::ImageSpec &  image_spec,
GLint  level = 0,
GLint  border = 0 
)
static

Specifies a texture image.

Related OpenGL symbols:
glTexImage3D glTexImage2D glTexImage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Image1D ( Target  target,
GLint  level,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLint  border,
PixelDataFormat  format,
Property::PixDataType  type,
const void *  data 
)
static

Specifies a one dimensional texture image.

Related OpenGL symbols:
glTexImage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Image1D ( Target  target,
const images::Image image,
GLint  level = 0,
GLint  border = 0 
)
static

Specifies a one dimensional texture image.

Related OpenGL symbols:
glTexImage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Image2D ( Target  target,
GLint  level,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLsizei  height,
GLint  border,
PixelDataFormat  format,
Property::PixDataType  type,
const void *  data 
)
static

Specifies a two dimensional texture image.

Related OpenGL symbols:
glTexImage2D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Image2D ( Target  target,
const images::Image image,
GLint  level = 0,
GLint  border = 0 
)
static

Specifies a two dimensional texture image.

Related OpenGL symbols:
glTexImage2D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Image2DMultisample ( Target  target,
GLsizei  samples,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLsizei  height,
bool  fixed_sample_locations 
)
static

Sets-up a two dimensional multisample texture.

Requires OpenGL 3.2 or the GL_ARB_texture_multisample extension.

Related OpenGL symbols:
glTexImage2DMultisample
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Image3D ( Target  target,
GLint  level,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
GLint  border,
PixelDataFormat  format,
Property::PixDataType  type,
const void *  data 
)
static

Specifies a three dimensional texture image.

Related OpenGL symbols:
glTexImage3D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Image3D ( Target  target,
const images::Image image,
GLint  level = 0,
GLint  border = 0 
)
static

Specifies a three dimensional texture image.

Related OpenGL symbols:
glTexImage3D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Image3DMultisample ( Target  target,
GLsizei  samples,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
bool  fixed_sample_locations 
)
static

Sets-up a three dimensional multisample texture.

Requires OpenGL 3.2 or the GL_ARB_texture_multisample extension.

Related OpenGL symbols:
glTexImage3DMultisample
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::ImageCM ( GLuint  face,
GLint  level,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLsizei  height,
GLint  border,
PixelDataFormat  format,
Property::PixDataType  type,
const void *  data 
)
static

Specifies the image of the specified cube-map face.

Precondition
(face >= 0) && (face <= 5)
Related OpenGL symbols:
glTexImage2D GL_TEXTURE_CUBE_MAP_POSITIVE_X GL_TEXTURE_CUBE_MAP_NEGATIVE_X GL_TEXTURE_CUBE_MAP_POSITIVE_Y GL_TEXTURE_CUBE_MAP_NEGATIVE_Y GL_TEXTURE_CUBE_MAP_POSITIVE_Z GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::ImageCM ( GLuint  face,
const images::Image image,
GLint  level = 0,
GLint  border = 0 
)
static

Specifies the image of the specified cube-map face.

Precondition
(face >= 0) && (face <= 5)
Related OpenGL symbols:
glTexImage2D GL_TEXTURE_CUBE_MAP_POSITIVE_X GL_TEXTURE_CUBE_MAP_NEGATIVE_X GL_TEXTURE_CUBE_MAP_POSITIVE_Y GL_TEXTURE_CUBE_MAP_NEGATIVE_Y GL_TEXTURE_CUBE_MAP_POSITIVE_Z GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
static PixelDataInternalFormat oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::InternalFormat ( Target  target,
GLint  level = 0 
)
static

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
static GLfloat oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::LODBias ( Target  target)
static

Gets the LOD bias value (TEXTURE_LOD_BIAS)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_LOD_BIAS
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::LODBias ( Target  target,
GLfloat  value 
)
static

Sets the LOD bias value (TEXTURE_LOD_BIAS)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_LOD_BIAS
static TextureMagFilter oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MagFilter ( Target  target)
static

Gets the magnification filter (TEXTURE_MAG_FILTER)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MAG_FILTER
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MagFilter ( Target  target,
TextureMagFilter  filter 
)
static

Sets the magnification filter (TEXTURE_MAG_FILTER)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MAG_FILTER
static GLfloat oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MaxAnisotropy ( Target  target)
static

Gets the maximum anisotropy level.

Related OpenGL symbols:
glGetTexParameter GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
static GLint oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MaxLevel ( Target  target)
static

Gets maximum level value (TEXTURE_MAX_LEVEL)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MAX_LEVEL
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MaxLevel ( Target  target,
GLint  value 
)
static

Sets maximum level value (TEXTURE_MAX_LEVEL)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MAX_LEVEL
static GLfloat oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MaxLOD ( Target  target)
static

Gets maximum LOD value (TEXTURE_MAX_LOD)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MAX_LOD
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MaxLOD ( Target  target,
GLfloat  value 
)
static

Sets maximum LOD value (TEXTURE_MAX_LOD)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MAX_LOD
static TextureMinFilter oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MinFilter ( Target  target)
static

Gets the minification filter (TEXTURE_MIN_FILTER)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MIN_FILTER
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MinFilter ( Target  target,
TextureMinFilter  filter 
)
static

Sets the minification filter (TEXTURE_MIN_FILTER)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MIN_FILTER
static GLfloat oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MinLOD ( Target  target)
static

Gets minimal LOD value (TEXTURE_MIN_LOD)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_MIN_LOD
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::MinLOD ( Target  target,
GLfloat  value 
)
static

Sets minimal LOD value (TEXTURE_MIN_LOD)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_MIN_LOD
static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::RedSize ( Target  target,
GLint  level = 0 
)
static

Returns the actual resolution of the RED component.

See Also
GreenSize
BlueSize
AlphaSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_RED_SIZE
static PixelDataType oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::RedType ( Target  target,
GLint  level = 0 
)
static

Returns the data type used to store the RED component.

See Also
GreenType
BlueType
AlphaType
DepthType
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_RED_TYPE
static bool oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Seamless ( Target  target)
static

Gets the seamless cubemap setting value.

Requires the GL_ARB_seamless_cubemap_per_texture extension.

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_CUBE_MAP_SEAMLESS
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Seamless ( Target  target,
bool  enable 
)
static

Sets the seamless cubemap setting.

Requires the GL_ARB_seamless_cubemap_per_texture extension.

Related OpenGL symbols:
glTexParameter GL_TEXTURE_CUBE_MAP_SEAMLESS
static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SharedSize ( Target  target,
GLint  level = 0 
)
static

Returns the size of all texture components.

See Also
RedSize
GreenSize
BlueSize
AlphaSize
DepthSize
StencilSize
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_SHARED_SIZE
static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::StencilSize ( Target  target,
GLint  level = 0 
)
static

Returns the actual resolution of the STENCIL component.

See Also
RedSize
GreenSize
BlueSize
AlphaSize
DepthSize
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_STENCIL_SIZE
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Storage1D ( Target  target,
GLsizei  levels,
PixelDataInternalFormat  internal_format,
GLsizei  width 
)
static

Specifies all levels of 1D texture at the same time.

Requires OpenGL 4.2 or the GL_ARB_texture_storage extension.

Related OpenGL symbols:
glTexStorage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Storage2D ( Target  target,
GLsizei  levels,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLsizei  height 
)
static

Specifies all levels of 2D texture at the same time.

Requires OpenGL 4.2 or the GL_ARB_texture_storage extension.

Related OpenGL symbols:
glTexStorage2D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Storage3D ( Target  target,
GLsizei  levels,
PixelDataInternalFormat  internal_format,
GLsizei  width,
GLsizei  height,
GLsizei  depth 
)
static

Specifies all levels of 3D texture at the same time.

Requires OpenGL 4.2 or the GL_ARB_texture_storage extension.

Related OpenGL symbols:
glTexStorage3D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SubImage1D ( Target  target,
GLint  level,
GLint  xoffs,
GLsizei  width,
PixelDataFormat  format,
Property::PixDataType  type,
const void *  data 
)
static

Specifies a one dimensional texture sub image.

Related OpenGL symbols:
glTexSubImage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SubImage1D ( Target  target,
const images::Image image,
GLint  xoffs,
GLint  level = 0 
)
static

Specifies a two dimensional texture sub image.

Related OpenGL symbols:
glTexSubImage1D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SubImage2D ( Target  target,
GLint  level,
GLint  xoffs,
GLint  yoffs,
GLsizei  width,
GLsizei  height,
PixelDataFormat  format,
Property::PixDataType  type,
const void *  data 
)
static

Specifies a two dimensional texture sub image.

Related OpenGL symbols:
glTexSubImage2D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SubImage2D ( Target  target,
const images::Image image,
GLint  xoffs,
GLint  yoffs,
GLint  level = 0 
)
static

Specifies a two dimensional texture sub image.

Related OpenGL symbols:
glTexSubImage2D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SubImage3D ( Target  target,
GLint  level,
GLint  xoffs,
GLint  yoffs,
GLint  zoffs,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
PixelDataFormat  format,
Property::PixDataType  type,
const void *  data 
)
static

Specifies a three dimensional texture sub image.

Related OpenGL symbols:
glTexSubImage3D
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SubImage3D ( Target  target,
const images::Image image,
GLint  xoffs,
GLint  yoffs,
GLint  zoffs,
GLint  level = 0 
)
static

Specifies a three dimensional texture sub image.

Related OpenGL symbols:
glTexSubImage3D
static TextureSwizzle oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Swizzle ( Target  target,
TextureSwizzleCoord  coord 
)
static

Gets the swizzle parameter (TEXTURE_SWIZZLE_*)

Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.

Related OpenGL symbols:
glGetTexParameter
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Swizzle ( Target  target,
TextureSwizzleCoord  coord,
TextureSwizzle  mode 
)
static

Sets the swizzle parameter (TEXTURE_SWIZZLE_*)

Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.

Related OpenGL symbols:
glTexParameter
static TextureSwizzle oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleA ( Target  target)
static

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.

static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleA ( Target  target,
TextureSwizzle  mode 
)
static

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.

static TextureSwizzle oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleB ( Target  target)
static

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.

static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleB ( Target  target,
TextureSwizzle  mode 
)
static

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.

static TextureSwizzle oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleG ( Target  target)
static

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.

static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleG ( Target  target,
TextureSwizzle  mode 
)
static

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.

static TextureSwizzle oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleR ( Target  target)
static

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.

static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleR ( Target  target,
TextureSwizzle  mode 
)
static

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.

static TextureSwizzleTuple oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleRGBA ( Target  target)
static

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
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleRGBA ( Target  target,
TextureSwizzle  mode 
)
static

Sets the RGBA swizzle parameter (TEXTURE_SWIZZLE_RGBA)

Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.

Related OpenGL symbols:
glTexParameter GL_TEXTURE_SWIZZLE_RGBA
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleRGBA ( Target  target,
TextureSwizzle  mode_r,
TextureSwizzle  mode_g,
TextureSwizzle  mode_b,
TextureSwizzle  mode_a 
)
static

Sets the RGBA swizzle parameters (TEXTURE_SWIZZLE_RGBA)

Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.

Related OpenGL symbols:
glTexParameter GL_TEXTURE_SWIZZLE_RGBA
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::SwizzleRGBA ( Target  target,
const TextureSwizzleTuple modes 
)
static

Sets the RGBA swizzle parameters (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().

static GLsizei oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Width ( Target  target,
GLint  level = 0 
)
static

Returns the width of the texture as it was specified by *Image*D.

See Also
Height
Depth
Related OpenGL symbols:
glGetTexLevelParameter GL_TEXTURE_WIDTH
static TextureWrap oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Wrap ( Target  target,
TextureWrapCoord  coord 
)
static

Gets the wrap parameter (TEXTURE_WRAP_*)

Related OpenGL symbols:
glGetTexParameter
static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::Wrap ( Target  target,
TextureWrapCoord  coord,
TextureWrap  mode 
)
static

Sets the wrap parameter (TEXTURE_WRAP_*)

Related OpenGL symbols:
glTexParameter
static TextureWrap oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::WrapR ( Target  target)
static

Gets the wrap parameter (TEXTURE_WRAP_R)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_WRAP_R

References oglplus::R.

static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::WrapR ( Target  target,
TextureWrap  mode 
)
static

Sets the wrap parameter (TEXTURE_WRAP_R)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_WRAP_R

References oglplus::R.

static TextureWrap oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::WrapS ( Target  target)
static

Gets the wrap parameter (TEXTURE_WRAP_S)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_WRAP_S

References oglplus::S.

static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::WrapS ( Target  target,
TextureWrap  mode 
)
static

Sets the wrap parameter (TEXTURE_WRAP_S)

Related OpenGL symbols:
glTexParameter GL_TEXTURE_WRAP_S

References oglplus::S.

static TextureWrap oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::WrapT ( Target  target)
static

Gets the wrap parameter (TEXTURE_WRAP_T)

Related OpenGL symbols:
glGetTexParameter GL_TEXTURE_WRAP_T

References oglplus::T.

static void oglplus::ObjZeroOps< tag::ExplicitSel, tag::Texture >::WrapT ( Target  target,
TextureWrap  mode 
)
static

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/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).