Wrapper for texture and texture unit-related operations. More...
#include </home/chochlik/devel/oglplus/include/oglplus/texture.hpp>
Classes | |
struct | Property |
Types related to Texture. More... | |
Public Types | |
typedef TextureTarget | Target |
Texture bind and image specification targets. 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 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, Property::PixDataType type, GLsizei size, GLvoid *buffer) |
Allows to obtain the texture image in uncompressed form. More... | |
template<typename T > | |
static void | GetImage (Target target, GLint level, PixelDataFormat format, std::vector< T > &dest) |
Allows to obtain the texture image in uncompressed 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, const BufferOps &buffer) |
Assigns a buffer storing the texel data to the texture. More... | |
static void | BufferRange (Target target, PixelDataInternalFormat internal_format, const BufferOps &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 Target | CubeMapFace (GLuint face) |
Returns the target for the i-th cube map face (0-5) More... | |
Wrapper for texture and texture unit-related operations.
Texture bind and image specification targets.
|
static |
Specify active texture unit for subsequent commands.
Error |
References OGLPLUS_VERIFY.
|
static |
Returns active texture unit.
Error |
GL_ACTIVE_TEXTURE
References OGLPLUS_VERIFY.
|
static |
Returns the actual resolution of the ALPHA component.
GL_TEXTURE_ALPHA_SIZE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::AlphaSize().
|
static |
Returns the data type used to store the ALPHA component.
GL_TEXTURE_ALPHA_TYPE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::AlphaType().
|
static |
Gets the current anisotropy level.
GL_TEXTURE_MAX_ANISOTROPY_EXT
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Anisotropy().
|
static |
Sets the anisotropy level.
GL_TEXTURE_MAX_ANISOTROPY_EXT
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Ensures that texture writes have been completed.
Requires the GL_NV_texture_barrier extension.
References OGLPLUS_VERIFY.
|
static |
Returns the texture base level (TEXTURE_BASE_LEVEL)
GL_TEXTURE_BASE_LEVEL
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::BaseLevel().
|
static |
Sets the texture base level (TEXTURE_BASE_LEVEL)
GL_TEXTURE_BASE_LEVEL
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Returns the actual resolution of the BLUE component.
GL_TEXTURE_BLUE_SIZE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::BlueSize().
|
static |
Returns the data type used to store the BLUE component.
GL_TEXTURE_BLUE_TYPE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::BlueType().
|
static |
Gets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::BorderColor().
|
static |
Sets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Gets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Sets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Gets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Sets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Assigns a buffer storing the texel data to the texture.
Requires OpenGL 3.1.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Buffer().
|
static |
Assigns a buffer range storing the texel data to the texture.
Requires OpenGL 4.3.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::BufferRange().
|
static |
Sets the compare function (TEXTURE_COMPARE_FUNC)
GL_TEXTURE_COMPARE_FUNC
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompareFunc().
|
static |
Sets the compare function (TEXTURE_COMPARE_FUNC)
GL_TEXTURE_COMPARE_FUNC
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Gets the compare mode (TEXTURE_COMPARE_MODE)
GL_TEXTURE_COMPARE_MODE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompareMode().
|
static |
Sets the compare mode (TEXTURE_COMPARE_MODE)
GL_TEXTURE_COMPARE_MODE
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Specifies a one dimensional compressed texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedImage1D().
|
static |
Specifies a two dimensional compressed texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedImage2D().
|
static |
Specifies a three dimensional compressed texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedImage3D().
|
static |
Returns the size (in bytes) of the image array if it is compressed.
GL_TEXTURE_COMPRESSED_IMAGE_SIZE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedImageSize().
|
static |
Specifies a one dimensional compressed texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedSubImage1D().
|
static |
Specifies a two dimensional compressed texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedSubImage2D().
|
static |
Specifies a three dimensional compressed texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedSubImage3D().
|
static |
Copies a one dimensional texture image from the framebuffer.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CopyImage1D().
|
static |
Copies a two dimensional texture image from the framebuffer.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CopyImage2D().
|
static |
Copies a one dimensional texture sub image from the framebuffer.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CopySubImage1D().
|
static |
Copies a two dimensional texture sub image from the framebuffer.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CopySubImage2D().
|
static |
Copies a three dimensional texture sub image from the framebuffer.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CopySubImage3D().
|
static |
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 |
Returns the depth of the texture as it was specified by *Image*D.
GL_TEXTURE_DEPTH
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Depth().
|
static |
Returns the actual resolution of the DEPTH component.
GL_TEXTURE_DEPTH_SIZE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::DepthSize().
|
static |
Gets the depth stencil mode parameter (DEPTH_STENCIL_TEXTURE_MODE)
Requires OpenGL 4.3.
GL_DEPTH_STENCIL_TEXTURE_MODE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::DepthStencilMode().
|
static |
Sets the depth stencil mode (DEPTH_STENCIL_TEXTURE_MODE)
Requires OpenGL 4.3.
GL_DEPTH_STENCIL_TEXTURE_MODE
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Returns the data type used to store the DEPTH component.
GL_TEXTURE_DEPTH_TYPE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::DepthType().
|
static |
Sets both the minification and magnification filter.
GL_TEXTURE_MIN_FILTER
GL_TEXTURE_MAG_FILTER
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Filter().
|
static |
Generate mipmap for the texture bound to the specified target.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::GenerateMipmap().
|
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.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::GetCompressedImage().
|
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.
|
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.
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.Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::GetImage(), and GetImage().
|
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.
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.References GetImage(), and oglplus::T.
|
static |
Returns the actual resolution of the GREEN component.
GL_TEXTURE_GREEN_SIZE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::GreenSize().
|
static |
Returns the data type used to store the GREEN component.
GL_TEXTURE_GREEN_TYPE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::GreenType().
|
static |
Returns the height of the texture as it was specified by *Image*D.
GL_TEXTURE_HEIGHT
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Height().
|
static |
Specifies a texture image.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Image().
|
static |
Specifies a texture image.
|
static |
Specifies a one dimensional texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Image1D().
|
static |
Specifies a one dimensional texture image.
|
static |
Specifies a two dimensional texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Image2D().
|
static |
Specifies a two dimensional texture image.
|
static |
Sets-up a two dimensional multisample texture.
Requires OpenGL 3.2 or the GL_ARB_texture_multisample extension.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Image2DMultisample().
|
static |
Specifies a three dimensional texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Image3D().
|
static |
Specifies a three dimensional texture image.
|
static |
Sets-up a three dimensional multisample texture.
Requires OpenGL 3.2 or the GL_ARB_texture_multisample extension.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Image3DMultisample().
|
static |
Specifies the image of the specified cube-map face.
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
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Specifies the image of the specified cube-map face.
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 |
Returns the internal data format of the image array.
GL_TEXTURE_INTERNAL_FORMAT
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::InternalFormat().
|
static |
Gets the LOD bias value (TEXTURE_LOD_BIAS)
GL_TEXTURE_LOD_BIAS
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::LODBias().
|
static |
Sets the LOD bias value (TEXTURE_LOD_BIAS)
GL_TEXTURE_LOD_BIAS
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Gets the magnification filter (TEXTURE_MAG_FILTER)
GL_TEXTURE_MAG_FILTER
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::MagFilter().
|
static |
Sets the magnification filter (TEXTURE_MAG_FILTER)
GL_TEXTURE_MAG_FILTER
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Gets the maximum anisotropy level.
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::MaxAnisotropy().
|
static |
Gets maximum level value (TEXTURE_MAX_LEVEL)
GL_TEXTURE_MAX_LEVEL
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::MaxLevel().
|
static |
Sets maximum level value (TEXTURE_MAX_LEVEL)
GL_TEXTURE_MAX_LEVEL
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Gets maximum LOD value (TEXTURE_MAX_LOD)
GL_TEXTURE_MAX_LOD
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::MaxLOD().
|
static |
Sets maximum LOD value (TEXTURE_MAX_LOD)
GL_TEXTURE_MAX_LOD
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Gets the minification filter (TEXTURE_MIN_FILTER)
GL_TEXTURE_MIN_FILTER
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::MinFilter().
|
static |
Sets the minification filter (TEXTURE_MIN_FILTER)
GL_TEXTURE_MIN_FILTER
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Gets minimal LOD value (TEXTURE_MIN_LOD)
GL_TEXTURE_MIN_LOD
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::MinLOD().
|
static |
Sets minimal LOD value (TEXTURE_MIN_LOD)
GL_TEXTURE_MIN_LOD
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Returns the actual resolution of the RED component.
GL_TEXTURE_RED_SIZE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::RedSize().
|
static |
Returns the data type used to store the RED component.
GL_TEXTURE_RED_TYPE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::RedType().
|
static |
Gets the seamless cubemap setting value.
Requires the GL_ARB_seamless_cubemap_per_texture extension.
GL_TEXTURE_CUBE_MAP_SEAMLESS
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Seamless().
|
static |
Sets the seamless cubemap setting.
Requires the GL_ARB_seamless_cubemap_per_texture extension.
GL_TEXTURE_CUBE_MAP_SEAMLESS
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Returns the size of all texture components.
GL_TEXTURE_SHARED_SIZE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SharedSize().
|
static |
Returns the actual resolution of the STENCIL component.
GL_TEXTURE_STENCIL_SIZE
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::StencilSize().
|
static |
Specifies all levels of 1D texture at the same time.
Requires OpenGL 4.2 or the GL_ARB_texture_storage extension.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Storage1D().
|
static |
Specifies all levels of 2D texture at the same time.
Requires OpenGL 4.2 or the GL_ARB_texture_storage extension.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Storage2D().
|
static |
Specifies all levels of 3D texture at the same time.
Requires OpenGL 4.2 or the GL_ARB_texture_storage extension.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Storage3D().
|
static |
Specifies a one dimensional texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SubImage1D().
|
static |
Specifies a two dimensional texture sub image.
|
static |
Specifies a two dimensional texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SubImage2D().
|
static |
Specifies a two dimensional texture sub image.
|
static |
Specifies a three dimensional texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SubImage3D().
|
static |
Specifies a three dimensional texture sub image.
|
static |
Gets the swizzle parameter (TEXTURE_SWIZZLE_*)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Swizzle(), SwizzleA(), SwizzleB(), SwizzleG(), and SwizzleR().
|
static |
Sets the swizzle parameter (TEXTURE_SWIZZLE_*)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Gets the swizzle parameter (TEXTURE_SWIZZLE_A)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_A
References oglplus::A, and Swizzle().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SwizzleA().
|
static |
Sets the swizzle parameter (TEXTURE_SWIZZLE_A)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_A
References oglplus::A, and Swizzle().
|
static |
Gets the swizzle parameter (TEXTURE_SWIZZLE_B)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_B
References oglplus::B, and Swizzle().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SwizzleB().
|
static |
Sets the swizzle parameter (TEXTURE_SWIZZLE_B)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_B
References oglplus::B, and Swizzle().
|
static |
Gets the swizzle parameter (TEXTURE_SWIZZLE_G)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_G
References oglplus::G, and Swizzle().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SwizzleG().
|
static |
Sets the swizzle parameter (TEXTURE_SWIZZLE_G)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_G
References oglplus::G, and Swizzle().
|
static |
Gets the swizzle parameter (TEXTURE_SWIZZLE_R)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_R
References oglplus::R, and Swizzle().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SwizzleR().
|
static |
Sets the swizzle parameter (TEXTURE_SWIZZLE_R)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_R
References oglplus::R, and Swizzle().
|
static |
Gets the swizzle parameter (TEXTURE_SWIZZLE_RGBA)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_RGBA
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SwizzleRGBA().
|
static |
Sets the RGBA swizzle parameter (TEXTURE_SWIZZLE_RGBA)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_RGBA
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Sets the RGBA swizzle parameters (TEXTURE_SWIZZLE_RGBA)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_RGBA
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Sets the RGBA swizzle parameters (TEXTURE_SWIZZLE_RGBA)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_RGBA
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Returns the width of the texture as it was specified by *Image*D.
GL_TEXTURE_WIDTH
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Width().
|
static |
Gets the wrap parameter (TEXTURE_WRAP_*)
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Wrap(), WrapR(), WrapS(), and WrapT().
|
static |
Sets the wrap parameter (TEXTURE_WRAP_*)
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
|
static |
Gets the wrap parameter (TEXTURE_WRAP_R)
GL_TEXTURE_WRAP_R
References oglplus::R, and Wrap().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::WrapR().
|
static |
Sets the wrap parameter (TEXTURE_WRAP_R)
GL_TEXTURE_WRAP_R
References oglplus::R, and Wrap().
|
static |
Gets the wrap parameter (TEXTURE_WRAP_S)
GL_TEXTURE_WRAP_S
References oglplus::S, and Wrap().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::WrapS().
|
static |
Sets the wrap parameter (TEXTURE_WRAP_S)
GL_TEXTURE_WRAP_S
References oglplus::S, and Wrap().
|
static |
Gets the wrap parameter (TEXTURE_WRAP_T)
GL_TEXTURE_WRAP_T
References oglplus::T, and Wrap().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::WrapT().
|
static |
Sets the wrap parameter (TEXTURE_WRAP_T)
GL_TEXTURE_WRAP_T
References oglplus::T, and Wrap().