version 3.3

VRS::ImageTexture2DGL Class Reference

Base class for all OpenGL textures. More...

#include <vrs/opengl/imagetexture2dgl.h>

Inheritance diagram for VRS::ImageTexture2DGL:

VRS::Texture2DGL VRS::TextureGL VRS::Texture VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable VRS::NoiseTexture2DGL VRS::TileableNoiseTexture2DGL

List of all members.

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 ImagegetImage () 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


Detailed Description

Base class for all OpenGL textures.

Constructor & Destructor Documentation

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]


Member Function Documentation

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.


Friends And Related Function Documentation

friend class ImageTexture2DPainterGL [friend]


The documentation for this class was generated from the following file:

Generated on Sun May 19 06:00:36 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact