version 3.3

VRS::ImageTexture1DGL Class Reference

Base class for all OpenGL textures. More...

#include <vrs/opengl/imagetexture1dgl.h>

Inheritance diagram for VRS::ImageTexture1DGL:

VRS::Texture1DGL VRS::TextureGL VRS::Texture VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable VRS::NoiseTexture1DGL VRS::TileableNoiseTexture1DGL

List of all members.

Public Member Functions

 ImageTexture1DGL (Image *image, TextureGL::WrapMode wrap=TextureGL::REPEAT, TextureGL::FilterMode minFilter=TextureGL::TRILINEAR, TextureGL::FilterMode magFilter=TextureGL::LINEAR, const Matrix &matrix=Matrix(), const Color &borderColor=Color(0.0f, 0.0f, 0.0f, 0.0f), GLenum internalFormat=GL_ZERO)
virtual void setImage (Image *newImage, GLenum internalFormat=GL_ZERO)
virtual ImagegetImage () const
virtual GLenum getInternalFormat () const
 VRS_TYPEINFO (ImageTexture1DGL, Texture1DGL)
 VRS_SERIALIZABLE (ImageTexture1DGL)

Protected Member Functions

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


Detailed Description

Base class for all OpenGL textures.

Constructor & Destructor Documentation

VRS::ImageTexture1DGL::ImageTexture1DGL ( Image image,
TextureGL::WrapMode  wrap = TextureGL::REPEAT,
TextureGL::FilterMode  minFilter = TextureGL::TRILINEAR,
TextureGL::FilterMode  magFilter = TextureGL::LINEAR,
const Matrix matrix = Matrix(),
const Color borderColor = Color(0.0f, 0.0f, 0.0f, 0.0f),
GLenum  internalFormat = GL_ZERO 
)

OpenGL 1D 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::ImageTexture1DGL::ImageTexture1DGL (  )  [protected]


Member Function Documentation

virtual void VRS::ImageTexture1DGL::setImage ( Image newImage,
GLenum  internalFormat = GL_ZERO 
) [virtual]

virtual Image* VRS::ImageTexture1DGL::getImage (  )  const [virtual]

Get/set the image.

virtual GLenum VRS::ImageTexture1DGL::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.

VRS::ImageTexture1DGL::VRS_TYPEINFO ( ImageTexture1DGL  ,
Texture1DGL   
)

VRS::ImageTexture1DGL::VRS_SERIALIZABLE ( ImageTexture1DGL   ) 

virtual void VRS::ImageTexture1DGL::acceptChildren ( std::vector< Visitable * > &  appendChildrenHere  )  const [protected, virtual]

Reimplemented from VRS::Visitable.


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

Generated on Mon May 21 06:00:20 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact