Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::Texture::Settings Class Reference

All parameters of a texture that are independent of the underlying image data. More...

#include <Texture.h>

List of all members.

Public Member Functions

bool equalsIgnoringMipMap (const Settings &other) const
size_t hashCode () const
bool operator== (const Settings &other) const
 Settings ()

Static Public Member Functions

static const Settingsdefaults ()
static const Settingsshadow ()
static const Settingsvideo ()

Public Attributes

bool autoMipMap
DepthReadMode depthReadMode
InterpolateMode interpolateMode
float maxAnisotropy
int maxMipMap
int minMipMap
WrapMode wrapMode


Detailed Description

All parameters of a texture that are independent of the underlying image data.


Constructor & Destructor Documentation

G3D::Texture::Settings::Settings (  ) 


Member Function Documentation

static const Settings& G3D::Texture::Settings::defaults (  )  [static]

bool G3D::Texture::Settings::equalsIgnoringMipMap ( const Settings other  )  const

True if both Settings are identical, ignoring mipmap settings.

size_t G3D::Texture::Settings::hashCode (  )  const

bool G3D::Texture::Settings::operator== ( const Settings other  )  const

static const Settings& G3D::Texture::Settings::shadow (  )  [static]

Useful defaults for shadow maps.

BILINEAR_NO_MIPMAP / CLAMP / DEPTH_LEQUAL / 1.0 / false

static const Settings& G3D::Texture::Settings::video (  )  [static]

Useful defaults for video/image processing.

BILINEAR_NO_MIPMAP / CLAMP / DEPTH_NORMAL / 1.0 / false


Member Data Documentation

Default is true.

Highest MIP-map level that will be used during rendering.

The highest level that actually exists will be L = log(max(m_width, m_height), 2)), although it is fine to set maxMipMap higher than this. Must be larger than minMipMap. Default is 1000.

Setting the max mipmap level is useful for preventing adjacent areas of a texture from being blurred together when viewed at a distance. It may decrease performance, however, by forcing a larger texture into cache than would otherwise be required.

Lowest MIP-map level that will be used during rendering.

Level 0 is the full-size image. Default is -1000, matching the OpenGL spec.

Referenced Code:
http://oss.sgi.com/projects/ogl-sample/registry/SGIS/texture_lod.txt


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:48 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo