version 3.3

VRS::ImageTextureArray2DGL Class Reference

Base class for all OpenGL textures. More...

#include <vrs/opengl/imagetexturearray2dgl.h>

Inheritance diagram for VRS::ImageTextureArray2DGL:

VRS::TextureArray2DGL VRS::TextureGL VRS::Texture VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 ImageTextureArray2DGL (SO< Iterator< SO< Image > > > images, 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::black, GLenum internalFormat=GL_ZERO, bool unrefImageAfterBindung=false)
bool operator== (const ImageTextureArray2DGL &other) const
virtual void setImages (Iterator< SO< Image > > *newImages, GLenum internalFormat)
virtual void setImage (int idx, Image *newImage)
virtual SO< Iterator< SO
< Image > > > 
getImages () const
virtual ImagegetImage (int idx) const
virtual int getImageCount () const
virtual TextureGL::WrapMode getWrapS () const
virtual TextureGL::WrapMode getWrapT () const
virtual TextureGL::FilterMode getMinFilter () 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 (ImageTextureArray2DGL, TextureArray2DGL)
 VRS_SERIALIZABLE (ImageTextureArray2DGL)

Protected Member Functions

 ImageTextureArray2DGL ()
virtual void acceptChildren (std::vector< Visitable * > &appendChildrenHere) const

Friends

class ImageTexture2DPainterGL


Detailed Description

Base class for all OpenGL textures.

Constructor & Destructor Documentation

VRS::ImageTextureArray2DGL::ImageTextureArray2DGL ( SO< Iterator< SO< Image > > >  images,
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::black,
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::ImageTextureArray2DGL::ImageTextureArray2DGL (  )  [protected]


Member Function Documentation

bool VRS::ImageTextureArray2DGL::operator== ( const ImageTextureArray2DGL other  )  const

virtual void VRS::ImageTextureArray2DGL::setImages ( Iterator< SO< Image > > *  newImages,
GLenum  internalFormat 
) [virtual]

virtual void VRS::ImageTextureArray2DGL::setImage ( int  idx,
Image newImage 
) [virtual]

virtual SO<Iterator<SO<Image> > > VRS::ImageTextureArray2DGL::getImages (  )  const [virtual]

virtual Image* VRS::ImageTextureArray2DGL::getImage ( int  idx  )  const [virtual]

virtual int VRS::ImageTextureArray2DGL::getImageCount (  )  const [virtual]

Get/set the image.

virtual TextureGL::WrapMode VRS::ImageTextureArray2DGL::getWrapS (  )  const [virtual]

Reimplemented from VRS::TextureArray2DGL.

virtual TextureGL::WrapMode VRS::ImageTextureArray2DGL::getWrapT (  )  const [virtual]

S and T are the texture-coordinates. Wrapping means that the texture repeats itself outside the interval [0:1].

Reimplemented from VRS::TextureArray2DGL.

virtual TextureGL::FilterMode VRS::ImageTextureArray2DGL::getMinFilter (  )  const [virtual]

Reimplemented from VRS::TextureGL.

virtual GLenum VRS::ImageTextureArray2DGL::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::ImageTextureArray2DGL::unrefImageAfterBinding (  )  const

Returns whether the texture shall release the vrs image after it has been transferred to the grahics adapter.

VRS::ImageTextureArray2DGL::VRS_TYPEINFO ( ImageTextureArray2DGL  ,
TextureArray2DGL   
)

VRS::ImageTextureArray2DGL::VRS_SERIALIZABLE ( ImageTextureArray2DGL   ) 

virtual void VRS::ImageTextureArray2DGL::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 Mon May 21 06:00:21 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact