version 3.3

VRS::Texture2DGL Class Reference

Base class for all OpenGL 2D textures. More...

#include <vrs/opengl/texture2dgl.h>

Inheritance diagram for VRS::Texture2DGL:

VRS::TextureGL VRS::Texture VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable VRS::ImageTexture2DGL VRS::MipmapTexture2DGL VRS::NoiseTexture2DGL VRS::TileableNoiseTexture2DGL

List of all members.

Public Member Functions

 Texture2DGL (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 operator== (const Texture2DGL &other) const
virtual void setWrap (TextureGL::WrapMode wrapST)
virtual void setWrapS (TextureGL::WrapMode wrapS)
virtual void setWrapT (TextureGL::WrapMode wrapT)
virtual TextureGL::WrapMode getWrapS () const
virtual TextureGL::WrapMode getWrapT () const
 VRS_TYPEINFO (Texture2DGL, TextureGL)
 VRS_SERIALIZABLE (Texture2DGL)


Detailed Description

Base class for all OpenGL 2D textures.

Constructor & Destructor Documentation

VRS::Texture2DGL::Texture2DGL ( 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 
)

2D 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.


Member Function Documentation

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

virtual void VRS::Texture2DGL::setWrap ( TextureGL::WrapMode  wrapST  )  [virtual]

virtual void VRS::Texture2DGL::setWrapS ( TextureGL::WrapMode  wrapS  )  [virtual]

virtual void VRS::Texture2DGL::setWrapT ( TextureGL::WrapMode  wrapT  )  [virtual]

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

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

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

VRS::Texture2DGL::VRS_TYPEINFO ( Texture2DGL  ,
TextureGL   
)

VRS::Texture2DGL::VRS_SERIALIZABLE ( Texture2DGL   ) 


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

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