Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::Texture::SetupParams Class Reference

The SetupParams function wraps all the parameters needed to crate a Texture. More...

#include <Texture.hpp>

Inheritance diagram for vl::Texture::SetupParams:
vl::Object

List of all members.

Public Member Functions

 SetupParams ()
void setImagePath (const String &path)
const StringimagePath () const
void setImage (Image *image)
const Imageimage () const
Imageimage ()
const GLBufferObjectbufferObject () const
GLBufferObjectbufferObject ()
void setBufferObject (GLBufferObject *bo)
void setDimension (ETextureDimension dimension)
ETextureDimension dimension () const
void setFormat (ETextureFormat format)
ETextureFormat format () const
void setBorder (bool on)
bool border () const
void setGenMipmaps (bool on)
bool genMipmaps () const
void setWidth (int w)
int width () const
void setHeight (int h)
int height () const
void setDepth (int d)
int depth () const
int samples () const
void setSamples (int samples)
bool fixedSamplesLocations () const
void setFixedSamplesLocations (bool fixed)

Protected Attributes

String mImagePath
ref< GLBufferObjectmBufferObject
ref< ImagemImage
ETextureDimension mDimension
ETextureFormat mFormat
int mWidth
int mHeight
int mDepth
int mSamples
bool mBorder
bool mGenMipmaps
bool mFixedSamplesLocation

Detailed Description

The SetupParams function wraps all the parameters needed to crate a Texture.

A SetupParams object is automatically setup and bound to a Texture after calling prepareTexture2D() and similar functions. Once the SetupParams are bound to a Texture calling Texture::createTexture() will create a new Texture according to what specified in the SetupParams objects. After Texture::createTexture() the SetupParams object is removed.

Definition at line 144 of file Texture.hpp.


Constructor & Destructor Documentation

vl::Texture::SetupParams::SetupParams (  ) [inline]

Definition at line 147 of file Texture.hpp.

References vl::TD_TEXTURE_2D, and vl::TF_RGBA.


Member Function Documentation

void vl::Texture::SetupParams::setImagePath ( const String path ) [inline]

Definition at line 158 of file Texture.hpp.

const String& vl::Texture::SetupParams::imagePath (  ) const [inline]

Definition at line 159 of file Texture.hpp.

void vl::Texture::SetupParams::setImage ( Image image ) [inline]
const Image* vl::Texture::SetupParams::image (  ) const [inline]

Definition at line 162 of file Texture.hpp.

Referenced by vl::Texture::createTexture().

Image* vl::Texture::SetupParams::image (  ) [inline]

Definition at line 163 of file Texture.hpp.

const GLBufferObject* vl::Texture::SetupParams::bufferObject (  ) const [inline]

Definition at line 165 of file Texture.hpp.

GLBufferObject* vl::Texture::SetupParams::bufferObject (  ) [inline]

Definition at line 166 of file Texture.hpp.

void vl::Texture::SetupParams::setBufferObject ( GLBufferObject bo ) [inline]

Definition at line 167 of file Texture.hpp.

void vl::Texture::SetupParams::setDimension ( ETextureDimension  dimension ) [inline]
ETextureDimension vl::Texture::SetupParams::dimension (  ) const [inline]

Definition at line 170 of file Texture.hpp.

Referenced by vl::Texture::createTexture().

void vl::Texture::SetupParams::setFormat ( ETextureFormat  format ) [inline]

Definition at line 172 of file Texture.hpp.

ETextureFormat vl::Texture::SetupParams::format (  ) const [inline]

Definition at line 173 of file Texture.hpp.

Referenced by vl::Texture::createTexture().

void vl::Texture::SetupParams::setBorder ( bool  on ) [inline]

Definition at line 175 of file Texture.hpp.

bool vl::Texture::SetupParams::border (  ) const [inline]

Definition at line 176 of file Texture.hpp.

Referenced by vl::Texture::createTexture().

void vl::Texture::SetupParams::setGenMipmaps ( bool  on ) [inline]

Definition at line 178 of file Texture.hpp.

bool vl::Texture::SetupParams::genMipmaps (  ) const [inline]

Definition at line 179 of file Texture.hpp.

Referenced by vl::Texture::createTexture().

void vl::Texture::SetupParams::setWidth ( int  w ) [inline]

Definition at line 181 of file Texture.hpp.

int vl::Texture::SetupParams::width (  ) const [inline]

Definition at line 182 of file Texture.hpp.

Referenced by vl::Texture::createTexture().

void vl::Texture::SetupParams::setHeight ( int  h ) [inline]

Definition at line 184 of file Texture.hpp.

int vl::Texture::SetupParams::height (  ) const [inline]

Definition at line 185 of file Texture.hpp.

Referenced by vl::Texture::createTexture().

void vl::Texture::SetupParams::setDepth ( int  d ) [inline]

Definition at line 187 of file Texture.hpp.

int vl::Texture::SetupParams::depth (  ) const [inline]

Definition at line 188 of file Texture.hpp.

Referenced by vl::Texture::createTexture().

int vl::Texture::SetupParams::samples (  ) const [inline]

Definition at line 190 of file Texture.hpp.

void vl::Texture::SetupParams::setSamples ( int  samples ) [inline]

Definition at line 191 of file Texture.hpp.

bool vl::Texture::SetupParams::fixedSamplesLocations (  ) const [inline]

Definition at line 193 of file Texture.hpp.

void vl::Texture::SetupParams::setFixedSamplesLocations ( bool  fixed ) [inline]

Definition at line 194 of file Texture.hpp.


Member Data Documentation

Definition at line 197 of file Texture.hpp.

Definition at line 198 of file Texture.hpp.

Definition at line 199 of file Texture.hpp.

Definition at line 200 of file Texture.hpp.

Definition at line 201 of file Texture.hpp.

Definition at line 202 of file Texture.hpp.

Definition at line 202 of file Texture.hpp.

Definition at line 202 of file Texture.hpp.

Definition at line 203 of file Texture.hpp.

Definition at line 204 of file Texture.hpp.

Definition at line 205 of file Texture.hpp.

Definition at line 206 of file Texture.hpp.


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

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:47.
Permission is granted to use this page to write and publish articles regarding Visualization Library.