casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Private Member Functions
casa::GLPCTextureParams Class Reference

Holds parameters for setting glTexParameteri variables. <visibility=local> More...

#include <GLPCTexture.h>

List of all members.

Public Member Functions

 GLPCTextureParams ()
 GLPCTextureParams (const GLPCTextureParams &)
 GLPCTextureParams (const GLPCTextureParams *)
void copy (const GLPCTextureParams &p)
 ~GLPCTextureParams ()
void filter (GLint minFilter, GLint magFilter=0)
 Set min/mag filters.
void wrap (GLint wrapS, GLint wrapT=0)
 Set wrap parameters.
void maxTextureSize (GLint maxtexturesize)
 Set value to use for max texture size.
void format (GLenum fmt)
void environMode (GLenum mode)
 For glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, mode);.

Public Attributes

GLint min_filter_
 glTexParameteri(GL_TEXTURE_2D, x, y).
GLint mag_filter_
GLint wrap_s_
GLint wrap_t_
GLuint maxtexturesize_
 Maximum texture size to use.
GLenum envmode_
GLenum format_

Private Member Functions

void init ()

Detailed Description

Holds parameters for setting glTexParameteri variables. <visibility=local>

Synopsis

Holds parameters for setting glTexParameteri variables. See the man page for glTexParameteri for description. This class is not needed unless the caller wishes to change the defaults for a textured image. maxtexturesize is used to specify the maximum texture size used for an image. The value used will be the smallest power of 2 that is >= maxtexturesize. By default, the display hosts' maximum texture size will be used. Again, this isn't normally changed. GLPCTextureParams may be deleted after GLPCTexturedImage is created.

Definition at line 54 of file GLPCTexture.h.


Constructor & Destructor Documentation


Member Function Documentation

void casa::GLPCTextureParams::environMode ( GLenum  mode)

For glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, mode);.

void casa::GLPCTextureParams::filter ( GLint  minFilter,
GLint  magFilter = 0 
)

Set min/mag filters.

If magFilter is 0, use min Filter.

void casa::GLPCTextureParams::format ( GLenum  fmt)
void casa::GLPCTextureParams::init ( ) [private]
void casa::GLPCTextureParams::maxTextureSize ( GLint  maxtexturesize)

Set value to use for max texture size.

Value will be rounded up to a power of 2 >= maxTextureSize.

void casa::GLPCTextureParams::wrap ( GLint  wrapS,
GLint  wrapT = 0 
)

Set wrap parameters.

If wrapT is 0, use wrapS.


Member Data Documentation

Definition at line 82 of file GLPCTexture.h.

Referenced by casa::GLPCTexturedImage::envmode().

Definition at line 83 of file GLPCTexture.h.

Definition at line 76 of file GLPCTexture.h.

Maximum texture size to use.

Default is host's max texture size.

Definition at line 81 of file GLPCTexture.h.

glTexParameteri(GL_TEXTURE_2D, x, y).

Definition at line 75 of file GLPCTexture.h.

Definition at line 77 of file GLPCTexture.h.

Definition at line 78 of file GLPCTexture.h.


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