An OGLplus object encapsulating the OpenGL texture functionality. More...
#include </home/chochlik/devel/oglplus/include/oglplus/texture.hpp>


Public Types | |
| typedef TextureTarget | Target |
| Texture bind and image specification targets. | |
Public Member Functions | |
| void | Bind (Target target) const |
| Bind the texture to the target on the Active unit. | |
| void | View (Target target, const TextureOps &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. | |
| 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. | |
Static Public Member Functions | |
| static void | Active (TextureUnitSelector index) |
| Specify active texture unit for subsequent commands. | |
| static GLint | Active (void) |
| Returns active texture unit. | |
| static void | Unbind (Target target) |
| Unbinds the current texture from the target on the Active unit. | |
| static GLsizei | Width (Target target, GLint level=0) |
| Returns the width of the texture as it was specified by *Image*D. | |
| static GLsizei | Height (Target target, GLint level=0) |
| Returns the height of the texture as it was specified by *Image*D. | |
| static GLsizei | Depth (Target target, GLint level=0) |
| Returns the depth of the texture as it was specified by *Image*D. | |
| static PixelDataType | RedType (Target target, GLint level=0) |
| Returns the data type used to store the RED component. | |
| static PixelDataType | GreenType (Target target, GLint level=0) |
| Returns the data type used to store the GREEN component. | |
| static PixelDataType | BlueType (Target target, GLint level=0) |
| Returns the data type used to store the BLUE component. | |
| static PixelDataType | AlphaType (Target target, GLint level=0) |
| Returns the data type used to store the ALPHA component. | |
| static PixelDataType | DepthType (Target target, GLint level=0) |
| Returns the data type used to store the DEPTH component. | |
| static GLsizei | RedSize (Target target, GLint level=0) |
| Returns the actual resolution of the RED component. | |
| static GLsizei | GreenSize (Target target, GLint level=0) |
| Returns the actual resolution of the GREEN component. | |
| static GLsizei | BlueSize (Target target, GLint level=0) |
| Returns the actual resolution of the BLUE component. | |
| static GLsizei | AlphaSize (Target target, GLint level=0) |
| Returns the actual resolution of the ALPHA component. | |
| static GLsizei | DepthSize (Target target, GLint level=0) |
| Returns the actual resolution of the DEPTH component. | |
| static GLsizei | StencilSize (Target target, GLint level=0) |
| Returns the actual resolution of the STENCIL component. | |
| static GLsizei | SharedSize (Target target, GLint level=0) |
| Returns the size of all texture components. | |
| static GLsizei | CompressedImageSize (Target target, GLint level=0) |
| Returns the size (in bytes) of the image array if it is compressed. | |
| static PixelDataInternalFormat | InternalFormat (Target target, GLint level=0) |
| Returns the internal data format of the image array. | |
| static void | GetCompressedImage (Target target, GLint level, std::vector< GLubyte > &dest) |
| Allows to obtain the texture image in compressed form. | |
| static void | Image3D (Target target, GLint level, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLsizei depth, GLint border, PixelDataFormat format, PixelDataType type, const void *data) |
| Specifies a three dimensional texture image. | |
| static void | Image3D (Target target, const images::Image &image, GLint level=0, GLint border=0) |
| Specifies a three dimensional texture image. | |
| static void | SubImage3D (Target target, GLint level, GLint xoffs, GLint yoffs, GLint zoffs, GLsizei width, GLsizei height, GLsizei depth, PixelDataFormat format, PixelDataType type, const void *data) |
| Specifies a three dimensional texture sub image. | |
| 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. | |
| static void | Image2D (Target target, GLint level, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height, GLint border, PixelDataFormat format, PixelDataType type, const void *data) |
| Specifies a two dimensional texture image. | |
| static void | Image2D (Target target, const images::Image &image, GLint level=0, GLint border=0) |
| Specifies a two dimensional texture image. | |
| static void | SubImage2D (Target target, GLint level, GLint xoffs, GLint yoffs, GLsizei width, GLsizei height, PixelDataFormat format, PixelDataType type, const void *data) |
| Specifies a two dimensional texture sub image. | |
| static void | SubImage2D (Target target, const images::Image &image, GLint xoffs, GLint yoffs, GLint level=0) |
| Specifies a two dimensional texture sub image. | |
| static void | Image1D (Target target, GLint level, PixelDataInternalFormat internal_format, GLsizei width, GLint border, PixelDataFormat format, PixelDataType type, const void *data) |
| Specifies a one dimensional texture image. | |
| static void | Image1D (Target target, const images::Image &image, GLint level=0, GLint border=0) |
| Specifies a one dimensional texture image. | |
| static void | SubImage1D (Target target, GLint level, GLint xoffs, GLsizei width, PixelDataFormat format, PixelDataType type, const void *data) |
| Specifies a one dimensional texture sub image. | |
| static void | SubImage1D (Target target, const images::Image &image, GLint xoffs, GLint level=0) |
| Specifies a two dimensional texture sub image. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| static void | Buffer (Target target, PixelDataInternalFormat internal_format, const BufferOps &buffer) |
| Assigns a buffer storing the texel data to the texture. | |
| 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. | |
| static void | Storage1D (Target target, GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width) |
| Specifies all levels of 1D texture at the same time. | |
| static void | Storage2D (Target target, GLsizei levels, PixelDataInternalFormat internal_format, GLsizei width, GLsizei height) |
| Specifies all levels of 2D texture at the same time. | |
| 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. | |
| static GLuint | BaseLevel (Target target) |
| Returns the texture base level (TEXTURE_BASE_LEVEL) | |
| static void | BaseLevel (Target target, GLuint level) |
| Sets the texture base level (TEXTURE_BASE_LEVEL) | |
| static Vector< GLfloat, 4 > | BorderColor (Target target, TypeTag< GLfloat >) |
| Gets the texture border color (TEXTURE_BORDER_COLOR) | |
| static void | BorderColor (Target target, Vector< GLfloat, 4 > color) |
| Sets the texture border color (TEXTURE_BORDER_COLOR) | |
| static Vector< GLint, 4 > | BorderColor (Target target, TypeTag< GLint >) |
| Gets the texture border color (TEXTURE_BORDER_COLOR) | |
| static void | BorderColor (Target target, Vector< GLint, 4 > color) |
| Sets the texture border color (TEXTURE_BORDER_COLOR) | |
| static Vector< GLuint, 4 > | BorderColor (Target target, TypeTag< GLuint >) |
| Gets the texture border color (TEXTURE_BORDER_COLOR) | |
| static void | BorderColor (Target target, Vector< GLuint, 4 > color) |
| Sets the texture border color (TEXTURE_BORDER_COLOR) | |
| static TextureCompareMode | CompareMode (Target target) |
| Gets the compare mode (TEXTURE_COMPARE_MODE) | |
| static void | CompareMode (Target target, TextureCompareMode mode) |
| Sets the compare mode (TEXTURE_COMPARE_MODE) | |
| static CompareFunction | CompareFunc (Target target) |
| Sets the compare function (TEXTURE_COMPARE_FUNC) | |
| static void | CompareFunc (Target target, CompareFunction func) |
| Sets the compare function (TEXTURE_COMPARE_FUNC) | |
| static GLfloat | LODBias (Target target) |
| Gets the LOD bias value (TEXTURE_LOD_BIAS) | |
| static void | LODBias (Target target, GLfloat value) |
| Sets the LOD bias value (TEXTURE_LOD_BIAS) | |
| static TextureMagFilter | MagFilter (Target target) |
| Gets the magnification filter (TEXTURE_MAG_FILTER) | |
| static void | MagFilter (Target target, TextureMagFilter filter) |
| Sets the magnification filter (TEXTURE_MAG_FILTER) | |
| static TextureMinFilter | MinFilter (Target target) |
| Gets the minification filter (TEXTURE_MIN_FILTER) | |
| static void | MinFilter (Target target, TextureMinFilter filter) |
| Sets the minification filter (TEXTURE_MIN_FILTER) | |
| static GLfloat | MinLOD (Target target) |
| Gets minimal LOD value (TEXTURE_MIN_LOD) | |
| static void | MinLOD (Target target, GLfloat value) |
| Sets minimal LOD value (TEXTURE_MIN_LOD) | |
| static GLfloat | MaxLOD (Target target) |
| Gets maximal LOD value (TEXTURE_MAX_LOD) | |
| static void | MaxLOD (Target target, GLfloat value) |
| Sets maximal LOD value (TEXTURE_MAX_LOD) | |
| static TextureSwizzle | Swizzle (Target target, TextureSwizzleCoord coord) |
| Gets the swizzle parameter (TEXTURE_SWIZZLE_*) | |
| static void | Swizzle (Target target, TextureSwizzleCoord coord, TextureSwizzle mode) |
| Sets the swizzle parameter (TEXTURE_SWIZZLE_*) | |
| static TextureSwizzle | SwizzleR (Target target) |
| Gets the swizzle parameter (TEXTURE_SWIZZLE_R) | |
| static void | SwizzleR (Target target, TextureSwizzle mode) |
| Sets the swizzle parameter (TEXTURE_SWIZZLE_R) | |
| static TextureSwizzle | SwizzleG (Target target) |
| Gets the swizzle parameter (TEXTURE_SWIZZLE_G) | |
| static void | SwizzleG (Target target, TextureSwizzle mode) |
| Sets the swizzle parameter (TEXTURE_SWIZZLE_G) | |
| static TextureSwizzle | SwizzleB (Target target) |
| Gets the swizzle parameter (TEXTURE_SWIZZLE_B) | |
| static void | SwizzleB (Target target, TextureSwizzle mode) |
| Sets the swizzle parameter (TEXTURE_SWIZZLE_B) | |
| static TextureSwizzle | SwizzleA (Target target) |
| Gets the swizzle parameter (TEXTURE_SWIZZLE_A) | |
| static void | SwizzleA (Target target, TextureSwizzle mode) |
| Sets the swizzle parameter (TEXTURE_SWIZZLE_A) | |
| static TextureSwizzle | SwizzleRGBA (Target target) |
| Gets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) | |
| static void | SwizzleRGBA (Target target, TextureSwizzle mode) |
| Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA) | |
| static TextureWrap | Wrap (Target target, TextureWrapCoord coord) |
| Gets the wrap parameter (TEXTURE_WRAP_*) | |
| static void | Wrap (Target target, TextureWrapCoord coord, TextureWrap mode) |
| Sets the wrap parameter (TEXTURE_WRAP_*) | |
| static TextureWrap | WrapS (Target target) |
| Gets the wrap parameter (TEXTURE_WRAP_S) | |
| static void | WrapS (Target target, TextureWrap mode) |
| Sets the wrap parameter (TEXTURE_WRAP_S) | |
| static TextureWrap | WrapT (Target target) |
| Gets the wrap parameter (TEXTURE_WRAP_T) | |
| static void | WrapT (Target target, TextureWrap mode) |
| Sets the wrap parameter (TEXTURE_WRAP_T) | |
| static TextureWrap | WrapR (Target target) |
| Gets the wrap parameter (TEXTURE_WRAP_R) | |
| static void | WrapR (Target target, TextureWrap mode) |
| Sets the wrap parameter (TEXTURE_WRAP_R) | |
| static PixelDataFormat | DepthStencilMode (Target target) |
| Gets the depth stencil mode parameter (DEPTH_STENCIL_TEXTURE_MODE) | |
| static void | DepthStencilMode (Target target, PixelDataFormat mode) |
| Sets the swizzle parameter (DEPTH_STENCIL_TEXTURE_MODE) | |
| static void | GenerateMipmap (Target target) |
| Generate mipmap for the texture bound to the specified target. | |
| static Target | CubeMapFace (GLuint face) |
Returns the target for the i-th cube map face (0-5) | |
An OGLplus object encapsulating the OpenGL texture functionality.
typedef TextureTarget oglplus::TextureOps::Target [inherited] |
Texture bind and image specification targets.
| static void oglplus::TextureOps::Active | ( | TextureUnitSelector | index | ) | [static, inherited] |
Specify active texture unit for subsequent commands.
| Error |
References OGLPLUS_VERIFY.
| static GLint oglplus::TextureOps::Active | ( | void | ) | [static, inherited] |
Returns active texture unit.
| Error |
GL_ACTIVE_TEXTURE References OGLPLUS_VERIFY.
| static GLsizei oglplus::TextureOps::AlphaSize | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the actual resolution of the ALPHA component.
GL_TEXTURE_ALPHA_SIZE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::AlphaSize().
| static PixelDataType oglplus::TextureOps::AlphaType | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the data type used to store the ALPHA component.
GL_TEXTURE_ALPHA_TYPE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::AlphaType().
| static GLuint oglplus::TextureOps::BaseLevel | ( | Target | target | ) | [static, inherited] |
Returns the texture base level (TEXTURE_BASE_LEVEL)
GL_TEXTURE_BASE_LEVEL Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::BaseLevel().
| static void oglplus::TextureOps::BaseLevel | ( | Target | target, |
| GLuint | level | ||
| ) | [static, inherited] |
Sets the texture base level (TEXTURE_BASE_LEVEL)
GL_TEXTURE_BASE_LEVEL References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| void oglplus::TextureOps::Bind | ( | Target | target | ) | const [inherited] |
Bind the texture to the target on the Active unit.
| Error |
| void oglplus::TextureOps::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.
References OGLPLUS_CHECK.
| static GLsizei oglplus::TextureOps::BlueSize | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the actual resolution of the BLUE component.
GL_TEXTURE_BLUE_SIZE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::BlueSize().
| static PixelDataType oglplus::TextureOps::BlueType | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the data type used to store the BLUE component.
GL_TEXTURE_BLUE_TYPE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::BlueType().
| static Vector<GLfloat, 4> oglplus::TextureOps::BorderColor | ( | Target | target, |
| TypeTag< GLfloat > | |||
| ) | [static, inherited] |
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 void oglplus::TextureOps::BorderColor | ( | Target | target, |
| Vector< GLfloat, 4 > | color | ||
| ) | [static, inherited] |
Sets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static Vector<GLint, 4> oglplus::TextureOps::BorderColor | ( | Target | target, |
| TypeTag< GLint > | |||
| ) | [static, inherited] |
Gets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static void oglplus::TextureOps::BorderColor | ( | Target | target, |
| Vector< GLint, 4 > | color | ||
| ) | [static, inherited] |
Sets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static Vector<GLuint, 4> oglplus::TextureOps::BorderColor | ( | Target | target, |
| TypeTag< GLuint > | |||
| ) | [static, inherited] |
Gets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static void oglplus::TextureOps::BorderColor | ( | Target | target, |
| Vector< GLuint, 4 > | color | ||
| ) | [static, inherited] |
Sets the texture border color (TEXTURE_BORDER_COLOR)
GL_TEXTURE_BORDER_COLOR References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static void oglplus::TextureOps::Buffer | ( | Target | target, |
| PixelDataInternalFormat | internal_format, | ||
| const BufferOps & | buffer | ||
| ) | [static, inherited] |
Assigns a buffer storing the texel data to the texture.
Requires OpenGL 3.1.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static void oglplus::TextureOps::BufferRange | ( | Target | target, |
| PixelDataInternalFormat | internal_format, | ||
| const BufferOps & | buffer, | ||
| GLintptr | offset, | ||
| GLsizeiptr | size | ||
| ) | [static, inherited] |
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 CompareFunction oglplus::TextureOps::CompareFunc | ( | Target | target | ) | [static, inherited] |
Sets the compare function (TEXTURE_COMPARE_FUNC)
GL_TEXTURE_COMPARE_FUNC Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompareFunc().
| static void oglplus::TextureOps::CompareFunc | ( | Target | target, |
| CompareFunction | func | ||
| ) | [static, inherited] |
Sets the compare function (TEXTURE_COMPARE_FUNC)
GL_TEXTURE_COMPARE_FUNC References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static TextureCompareMode oglplus::TextureOps::CompareMode | ( | Target | target | ) | [static, inherited] |
Gets the compare mode (TEXTURE_COMPARE_MODE)
GL_TEXTURE_COMPARE_MODE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompareMode().
| static void oglplus::TextureOps::CompareMode | ( | Target | target, |
| TextureCompareMode | mode | ||
| ) | [static, inherited] |
Sets the compare mode (TEXTURE_COMPARE_MODE)
GL_TEXTURE_COMPARE_MODE References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static void oglplus::TextureOps::CompressedImage1D | ( | Target | target, |
| GLint | level, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width, | ||
| GLint | border, | ||
| GLsizei | image_size, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a one dimensional compressed texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedImage1D().
| static void oglplus::TextureOps::CompressedImage2D | ( | Target | target, |
| GLint | level, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| GLint | border, | ||
| GLsizei | image_size, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a two dimensional compressed texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedImage2D().
| static void oglplus::TextureOps::CompressedImage3D | ( | Target | target, |
| GLint | level, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| GLsizei | depth, | ||
| GLint | border, | ||
| GLsizei | image_size, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a three dimensional compressed texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedImage3D().
| static GLsizei oglplus::TextureOps::CompressedImageSize | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
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(), and oglplus::TextureOps::GetCompressedImage().
| static void oglplus::TextureOps::CompressedSubImage1D | ( | Target | target, |
| GLint | level, | ||
| GLint | xoffs, | ||
| GLsizei | width, | ||
| PixelDataFormat | format, | ||
| GLsizei | image_size, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a one dimensional compressed texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedSubImage1D().
| static void oglplus::TextureOps::CompressedSubImage2D | ( | Target | target, |
| GLint | level, | ||
| GLint | xoffs, | ||
| GLint | yoffs, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| PixelDataFormat | format, | ||
| GLsizei | image_size, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a two dimensional compressed texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedSubImage2D().
| static void oglplus::TextureOps::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, inherited] |
Specifies a three dimensional compressed texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CompressedSubImage3D().
| static void oglplus::TextureOps::CopyImage1D | ( | Target | target, |
| GLint | level, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLint | x, | ||
| GLint | y, | ||
| GLsizei | width, | ||
| GLint | border | ||
| ) | [static, inherited] |
Copies a one dimensional texture image from the framebuffer.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CopyImage1D().
| static void oglplus::TextureOps::CopyImage2D | ( | Target | target, |
| GLint | level, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLint | x, | ||
| GLint | y, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| GLint | border | ||
| ) | [static, inherited] |
Copies a two dimensional texture image from the framebuffer.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::CopyImage2D().
| static void oglplus::TextureOps::CopySubImage1D | ( | Target | target, |
| GLint | level, | ||
| GLint | xoffs, | ||
| GLint | x, | ||
| GLint | y, | ||
| GLsizei | width | ||
| ) | [static, inherited] |
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 void oglplus::TextureOps::CopySubImage2D | ( | Target | target, |
| GLint | level, | ||
| GLint | xoffs, | ||
| GLint | yoffs, | ||
| GLint | x, | ||
| GLint | y, | ||
| GLsizei | width, | ||
| GLsizei | height | ||
| ) | [static, inherited] |
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 void oglplus::TextureOps::CopySubImage3D | ( | Target | target, |
| GLint | level, | ||
| GLint | xoffs, | ||
| GLint | yoffs, | ||
| GLint | zoffs, | ||
| GLint | x, | ||
| GLint | y, | ||
| GLsizei | width, | ||
| GLsizei | height | ||
| ) | [static, inherited] |
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 Target oglplus::TextureOps::CubeMapFace | ( | GLuint | face | ) | [static, inherited] |
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::TextureOps::Depth | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the depth of the texture as it was specified by *Image*D.
GL_TEXTURE_DEPTH | static GLsizei oglplus::TextureOps::DepthSize | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the actual resolution of the DEPTH component.
GL_TEXTURE_DEPTH_SIZE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::DepthSize().
| static PixelDataFormat oglplus::TextureOps::DepthStencilMode | ( | Target | target | ) | [static, inherited] |
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 void oglplus::TextureOps::DepthStencilMode | ( | Target | target, |
| PixelDataFormat | mode | ||
| ) | [static, inherited] |
Sets the swizzle parameter (DEPTH_STENCIL_TEXTURE_MODE)
Requires OpenGL 4.3.
GL_DEPTH_STENCIL_TEXTURE_MODE References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static PixelDataType oglplus::TextureOps::DepthType | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the data type used to store the DEPTH component.
GL_TEXTURE_DEPTH_TYPE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::DepthType().
| static void oglplus::TextureOps::GenerateMipmap | ( | Target | target | ) | [static, inherited] |
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 void oglplus::TextureOps::GetCompressedImage | ( | Target | target, |
| GLint | level, | ||
| std::vector< GLubyte > & | dest | ||
| ) | [static, inherited] |
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.
References oglplus::TextureOps::CompressedImageSize(), oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::GetCompressedImage().
| static GLsizei oglplus::TextureOps::GreenSize | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the actual resolution of the GREEN component.
GL_TEXTURE_GREEN_SIZE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::GreenSize().
| static PixelDataType oglplus::TextureOps::GreenType | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the data type used to store the GREEN component.
GL_TEXTURE_GREEN_TYPE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::GreenType().
| static GLsizei oglplus::TextureOps::Height | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
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 void oglplus::TextureOps::Image1D | ( | Target | target, |
| GLint | level, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width, | ||
| GLint | border, | ||
| PixelDataFormat | format, | ||
| PixelDataType | type, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a one dimensional texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static void oglplus::TextureOps::Image1D | ( | Target | target, |
| const images::Image & | image, | ||
| GLint | level = 0, |
||
| GLint | border = 0 |
||
| ) | [static, inherited] |
Specifies a one dimensional texture image.
References oglplus::EnumValueName(), oglplus::images::Image::Format(), oglplus::images::Image::InternalFormat(), OGLPLUS_CHECK, oglplus::images::Image::RawData(), oglplus::images::Image::Type(), and oglplus::images::Image::Width().
| static void oglplus::TextureOps::Image2D | ( | Target | target, |
| GLint | level, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| GLint | border, | ||
| PixelDataFormat | format, | ||
| PixelDataType | type, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a two dimensional texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static void oglplus::TextureOps::Image2D | ( | Target | target, |
| const images::Image & | image, | ||
| GLint | level = 0, |
||
| GLint | border = 0 |
||
| ) | [static, inherited] |
Specifies a two dimensional texture image.
References oglplus::EnumValueName(), oglplus::images::Image::Format(), oglplus::images::Image::Height(), oglplus::images::Image::InternalFormat(), OGLPLUS_CHECK, oglplus::images::Image::RawData(), oglplus::images::Image::Type(), and oglplus::images::Image::Width().
| static void oglplus::TextureOps::Image2DMultisample | ( | Target | target, |
| GLsizei | samples, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| bool | fixed_sample_locations | ||
| ) | [static, inherited] |
Sets-up a two dimensional multisample texture.
Requires OpenGL 3.2 or the GL_ARB_texture_multisample extension.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static void oglplus::TextureOps::Image3D | ( | Target | target, |
| GLint | level, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| GLsizei | depth, | ||
| GLint | border, | ||
| PixelDataFormat | format, | ||
| PixelDataType | type, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a three dimensional texture image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static void oglplus::TextureOps::Image3D | ( | Target | target, |
| const images::Image & | image, | ||
| GLint | level = 0, |
||
| GLint | border = 0 |
||
| ) | [static, inherited] |
Specifies a three dimensional texture image.
References oglplus::images::Image::Depth(), oglplus::EnumValueName(), oglplus::images::Image::Format(), oglplus::images::Image::Height(), oglplus::images::Image::InternalFormat(), OGLPLUS_CHECK, oglplus::images::Image::RawData(), oglplus::images::Image::Type(), and oglplus::images::Image::Width().
| static void oglplus::TextureOps::Image3DMultisample | ( | Target | target, |
| GLsizei | samples, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| GLsizei | depth, | ||
| bool | fixed_sample_locations | ||
| ) | [static, inherited] |
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 PixelDataInternalFormat oglplus::TextureOps::InternalFormat | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the internal data format of the image array.
GL_TEXTURE_INTERNAL_FORMAT Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::InternalFormat().
| static GLfloat oglplus::TextureOps::LODBias | ( | Target | target | ) | [static, inherited] |
Gets the LOD bias value (TEXTURE_LOD_BIAS)
GL_TEXTURE_LOD_BIAS Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::LODBias().
| static void oglplus::TextureOps::LODBias | ( | Target | target, |
| GLfloat | value | ||
| ) | [static, inherited] |
Sets the LOD bias value (TEXTURE_LOD_BIAS)
GL_TEXTURE_LOD_BIAS References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static TextureMagFilter oglplus::TextureOps::MagFilter | ( | Target | target | ) | [static, inherited] |
Gets the magnification filter (TEXTURE_MAG_FILTER)
GL_TEXTURE_MAG_FILTER Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::MagFilter().
| static void oglplus::TextureOps::MagFilter | ( | Target | target, |
| TextureMagFilter | filter | ||
| ) | [static, inherited] |
Sets the magnification filter (TEXTURE_MAG_FILTER)
GL_TEXTURE_MAG_FILTER References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static GLfloat oglplus::TextureOps::MaxLOD | ( | Target | target | ) | [static, inherited] |
Gets maximal LOD value (TEXTURE_MAX_LOD)
GL_TEXTURE_MAX_LOD Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::MaxLOD().
| static void oglplus::TextureOps::MaxLOD | ( | Target | target, |
| GLfloat | value | ||
| ) | [static, inherited] |
Sets maximal LOD value (TEXTURE_MAX_LOD)
GL_TEXTURE_MAX_LOD References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static TextureMinFilter oglplus::TextureOps::MinFilter | ( | Target | target | ) | [static, inherited] |
Gets the minification filter (TEXTURE_MIN_FILTER)
GL_TEXTURE_MIN_FILTER Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::MinFilter().
| static void oglplus::TextureOps::MinFilter | ( | Target | target, |
| TextureMinFilter | filter | ||
| ) | [static, inherited] |
Sets the minification filter (TEXTURE_MIN_FILTER)
GL_TEXTURE_MIN_FILTER References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static GLfloat oglplus::TextureOps::MinLOD | ( | Target | target | ) | [static, inherited] |
Gets minimal LOD value (TEXTURE_MIN_LOD)
GL_TEXTURE_MIN_LOD Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::MinLOD().
| static void oglplus::TextureOps::MinLOD | ( | Target | target, |
| GLfloat | value | ||
| ) | [static, inherited] |
Sets minimal LOD value (TEXTURE_MIN_LOD)
GL_TEXTURE_MIN_LOD References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static GLsizei oglplus::TextureOps::RedSize | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the actual resolution of the RED component.
GL_TEXTURE_RED_SIZE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::RedSize().
| static PixelDataType oglplus::TextureOps::RedType | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the data type used to store the RED component.
GL_TEXTURE_RED_TYPE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::RedType().
| static GLsizei oglplus::TextureOps::SharedSize | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the size of all texture components.
GL_TEXTURE_SHARED_SIZE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SharedSize().
| static GLsizei oglplus::TextureOps::StencilSize | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
Returns the actual resolution of the STENCIL component.
GL_TEXTURE_STENCIL_SIZE Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::StencilSize().
| static void oglplus::TextureOps::Storage1D | ( | Target | target, |
| GLsizei | levels, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width | ||
| ) | [static, inherited] |
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 void oglplus::TextureOps::Storage2D | ( | Target | target, |
| GLsizei | levels, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width, | ||
| GLsizei | height | ||
| ) | [static, inherited] |
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 void oglplus::TextureOps::Storage3D | ( | Target | target, |
| GLsizei | levels, | ||
| PixelDataInternalFormat | internal_format, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| GLsizei | depth | ||
| ) | [static, inherited] |
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 void oglplus::TextureOps::SubImage1D | ( | Target | target, |
| GLint | level, | ||
| GLint | xoffs, | ||
| GLsizei | width, | ||
| PixelDataFormat | format, | ||
| PixelDataType | type, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a one dimensional texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SubImage1D().
| static void oglplus::TextureOps::SubImage1D | ( | Target | target, |
| const images::Image & | image, | ||
| GLint | xoffs, | ||
| GLint | level = 0 |
||
| ) | [static, inherited] |
Specifies a two dimensional texture sub image.
References oglplus::EnumValueName(), oglplus::images::Image::Format(), OGLPLUS_CHECK, oglplus::images::Image::RawData(), oglplus::images::Image::Type(), and oglplus::images::Image::Width().
| static void oglplus::TextureOps::SubImage2D | ( | Target | target, |
| GLint | level, | ||
| GLint | xoffs, | ||
| GLint | yoffs, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| PixelDataFormat | format, | ||
| PixelDataType | type, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a two dimensional texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SubImage2D().
| static void oglplus::TextureOps::SubImage2D | ( | Target | target, |
| const images::Image & | image, | ||
| GLint | xoffs, | ||
| GLint | yoffs, | ||
| GLint | level = 0 |
||
| ) | [static, inherited] |
Specifies a two dimensional texture sub image.
References oglplus::EnumValueName(), oglplus::images::Image::Format(), oglplus::images::Image::Height(), OGLPLUS_CHECK, oglplus::images::Image::RawData(), oglplus::images::Image::Type(), and oglplus::images::Image::Width().
| static void oglplus::TextureOps::SubImage3D | ( | Target | target, |
| GLint | level, | ||
| GLint | xoffs, | ||
| GLint | yoffs, | ||
| GLint | zoffs, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| GLsizei | depth, | ||
| PixelDataFormat | format, | ||
| PixelDataType | type, | ||
| const void * | data | ||
| ) | [static, inherited] |
Specifies a three dimensional texture sub image.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SubImage3D().
| static void oglplus::TextureOps::SubImage3D | ( | Target | target, |
| const images::Image & | image, | ||
| GLint | xoffs, | ||
| GLint | yoffs, | ||
| GLint | zoffs, | ||
| GLint | level = 0 |
||
| ) | [static, inherited] |
Specifies a three dimensional texture sub image.
References oglplus::images::Image::Depth(), oglplus::EnumValueName(), oglplus::images::Image::Format(), oglplus::images::Image::Height(), OGLPLUS_CHECK, oglplus::images::Image::RawData(), oglplus::images::Image::Type(), and oglplus::images::Image::Width().
| static TextureSwizzle oglplus::TextureOps::Swizzle | ( | Target | target, |
| TextureSwizzleCoord | coord | ||
| ) | [static, inherited] |
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(), oglplus::TextureOps::SwizzleA(), oglplus::TextureOps::SwizzleB(), oglplus::TextureOps::SwizzleG(), oglplus::TextureOps::SwizzleR(), and oglplus::TextureOps::SwizzleRGBA().
| static void oglplus::TextureOps::Swizzle | ( | Target | target, |
| TextureSwizzleCoord | coord, | ||
| TextureSwizzle | mode | ||
| ) | [static, inherited] |
Sets the swizzle parameter (TEXTURE_SWIZZLE_*)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static TextureSwizzle oglplus::TextureOps::SwizzleA | ( | Target | target | ) | [static, inherited] |
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 oglplus::TextureOps::Swizzle().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SwizzleA().
| static void oglplus::TextureOps::SwizzleA | ( | Target | target, |
| TextureSwizzle | mode | ||
| ) | [static, inherited] |
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 oglplus::TextureOps::Swizzle().
| static TextureSwizzle oglplus::TextureOps::SwizzleB | ( | Target | target | ) | [static, inherited] |
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 oglplus::TextureOps::Swizzle().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SwizzleB().
| static void oglplus::TextureOps::SwizzleB | ( | Target | target, |
| TextureSwizzle | mode | ||
| ) | [static, inherited] |
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 oglplus::TextureOps::Swizzle().
| static TextureSwizzle oglplus::TextureOps::SwizzleG | ( | Target | target | ) | [static, inherited] |
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 oglplus::TextureOps::Swizzle().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SwizzleG().
| static void oglplus::TextureOps::SwizzleG | ( | Target | target, |
| TextureSwizzle | mode | ||
| ) | [static, inherited] |
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 oglplus::TextureOps::Swizzle().
| static TextureSwizzle oglplus::TextureOps::SwizzleR | ( | Target | target | ) | [static, inherited] |
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 oglplus::TextureOps::Swizzle().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SwizzleR().
| static void oglplus::TextureOps::SwizzleR | ( | Target | target, |
| TextureSwizzle | mode | ||
| ) | [static, inherited] |
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 oglplus::TextureOps::Swizzle().
| static TextureSwizzle oglplus::TextureOps::SwizzleRGBA | ( | Target | target | ) | [static, inherited] |
Gets the swizzle parameter (TEXTURE_SWIZZLE_RGBA)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_RGBA References oglplus::RGBA, and oglplus::TextureOps::Swizzle().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::SwizzleRGBA().
| static void oglplus::TextureOps::SwizzleRGBA | ( | Target | target, |
| TextureSwizzle | mode | ||
| ) | [static, inherited] |
Sets the swizzle parameter (TEXTURE_SWIZZLE_RGBA)
Requires OpenGL 3.3 or the GL_ARB_texture_swizzle extension.
GL_TEXTURE_SWIZZLE_RGBA References oglplus::RGBA, and oglplus::TextureOps::Swizzle().
| static void oglplus::TextureOps::Unbind | ( | Target | target | ) | [static, inherited] |
Unbinds the current texture from the target on the Active unit.
| Error |
References OGLPLUS_VERIFY.
| void oglplus::TextureOps::View | ( | Target | target, |
| const TextureOps & | 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.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::View().
| static GLsizei oglplus::TextureOps::Width | ( | Target | target, |
| GLint | level = 0 |
||
| ) | [static, inherited] |
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 TextureWrap oglplus::TextureOps::Wrap | ( | Target | target, |
| TextureWrapCoord | coord | ||
| ) | [static, inherited] |
Gets the wrap parameter (TEXTURE_WRAP_*)
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::Wrap(), oglplus::TextureOps::WrapR(), oglplus::TextureOps::WrapS(), and oglplus::TextureOps::WrapT().
| static void oglplus::TextureOps::Wrap | ( | Target | target, |
| TextureWrapCoord | coord, | ||
| TextureWrap | mode | ||
| ) | [static, inherited] |
Sets the wrap parameter (TEXTURE_WRAP_*)
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
| static TextureWrap oglplus::TextureOps::WrapR | ( | Target | target | ) | [static, inherited] |
Gets the wrap parameter (TEXTURE_WRAP_R)
GL_TEXTURE_WRAP_R References oglplus::R, and oglplus::TextureOps::Wrap().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::WrapR().
| static void oglplus::TextureOps::WrapR | ( | Target | target, |
| TextureWrap | mode | ||
| ) | [static, inherited] |
Sets the wrap parameter (TEXTURE_WRAP_R)
GL_TEXTURE_WRAP_R References oglplus::R, and oglplus::TextureOps::Wrap().
| static TextureWrap oglplus::TextureOps::WrapS | ( | Target | target | ) | [static, inherited] |
Gets the wrap parameter (TEXTURE_WRAP_S)
GL_TEXTURE_WRAP_S References oglplus::S, and oglplus::TextureOps::Wrap().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::WrapS().
| static void oglplus::TextureOps::WrapS | ( | Target | target, |
| TextureWrap | mode | ||
| ) | [static, inherited] |
Sets the wrap parameter (TEXTURE_WRAP_S)
GL_TEXTURE_WRAP_S References oglplus::S, and oglplus::TextureOps::Wrap().
| static TextureWrap oglplus::TextureOps::WrapT | ( | Target | target | ) | [static, inherited] |
Gets the wrap parameter (TEXTURE_WRAP_T)
GL_TEXTURE_WRAP_T References oglplus::T, and oglplus::TextureOps::Wrap().
Referenced by oglplus::BoundTemplate< Base, BaseParam, TextureOps >::WrapT().
| static void oglplus::TextureOps::WrapT | ( | Target | target, |
| TextureWrap | mode | ||
| ) | [static, inherited] |
Sets the wrap parameter (TEXTURE_WRAP_T)
GL_TEXTURE_WRAP_T References oglplus::T, and oglplus::TextureOps::Wrap().