| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/imagetexture2dgl.h>

Public Member Functions | |
| ImageTexture2DGL (Image *image, TextureGL::WrapMode wrapS=TextureGL::REPEAT, TextureGL::WrapMode wrapT=TextureGL::REPEAT, TextureGL::FilterMode minFilter=TextureGL::TRILINEAR, TextureGL::FilterMode magFilter=TextureGL::LINEAR, GLfloat anisotropic=1.0, const Matrix &matrix=Matrix(), const Color &borderColor=Color(0.0f, 0.0f, 0.0f, 0.0f), GLenum internalFormat=GL_ZERO, bool unrefImageAfterBindung=false) | |
| bool | operator== (const ImageTexture2DGL &other) const |
| virtual void | setImage (Image *newImage, GLenum internalFormat=GL_ZERO) |
| virtual Image * | getImage () const |
| virtual bool | isMipmap () const |
| virtual GLenum | getInternalFormat () const |
| void | unrefImageAfterBinding () const |
| Returns whether the texture shall release the vrs image after it has been transferred to the grahics adapter. | |
| VRS_TYPEINFO (ImageTexture2DGL, Texture2DGL) | |
| VRS_SERIALIZABLE (ImageTexture2DGL) | |
Protected Member Functions | |
| ImageTexture2DGL () | |
| virtual void | acceptChildren (std::vector< Visitable * > &appendChildrenHere) const |
Friends | |
| class | ImageTexture2DPainterGL |
| VRS::ImageTexture2DGL::ImageTexture2DGL | ( | Image * | image, | |
| TextureGL::WrapMode | wrapS = TextureGL::REPEAT, |
|||
| TextureGL::WrapMode | wrapT = TextureGL::REPEAT, |
|||
| TextureGL::FilterMode | minFilter = TextureGL::TRILINEAR, |
|||
| TextureGL::FilterMode | magFilter = TextureGL::LINEAR, |
|||
| GLfloat | anisotropic = 1.0, |
|||
| const Matrix & | matrix = Matrix(), |
|||
| const Color & | borderColor = Color(0.0f, 0.0f, 0.0f, 0.0f), |
|||
| GLenum | internalFormat = GL_ZERO, |
|||
| bool | unrefImageAfterBindung = false | |||
| ) |
OpenGL texture. By default (if GL_ZERO is specified for 'internalFormat'), the internal texture format is determined by the number of layers: 1: GL_LUMINANCE 2: GL_LUMINANCE_ALPHA 3: GL_RGB 4: GL_RGBA Or GL_RGB for a PaletteImage.
| VRS::ImageTexture2DGL::ImageTexture2DGL | ( | ) | [protected] |
| bool VRS::ImageTexture2DGL::operator== | ( | const ImageTexture2DGL & | other | ) | const |
| virtual void VRS::ImageTexture2DGL::setImage | ( | Image * | newImage, | |
| GLenum | internalFormat = GL_ZERO | |||
| ) | [virtual] |
| virtual Image* VRS::ImageTexture2DGL::getImage | ( | ) | const [virtual] |
Get/set the image.
| virtual bool VRS::ImageTexture2DGL::isMipmap | ( | ) | const [virtual] |
Returns if the min filter is one that uses mipmaping.
Reimplemented from VRS::TextureGL.
| virtual GLenum VRS::ImageTexture2DGL::getInternalFormat | ( | ) | const [virtual] |
Sets/gets the internal texture format used by OpenGL for the texture. The internal texture format determines the texture application formula used for each component of the texture. If GL_ZERO is specified the value described for the constructor is set.
Reimplemented from VRS::TextureGL.
| void VRS::ImageTexture2DGL::unrefImageAfterBinding | ( | ) | const |
Returns whether the texture shall release the vrs image after it has been transferred to the grahics adapter.
| VRS::ImageTexture2DGL::VRS_TYPEINFO | ( | ImageTexture2DGL | , | |
| Texture2DGL | ||||
| ) |
| VRS::ImageTexture2DGL::VRS_SERIALIZABLE | ( | ImageTexture2DGL | ) |
| virtual void VRS::ImageTexture2DGL::acceptChildren | ( | std::vector< Visitable * > & | appendChildrenHere | ) | const [protected, virtual] |
Reimplemented from VRS::Visitable.
friend class ImageTexture2DPainterGL [friend] |