casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
casa::GLPCTextureParams Class Reference

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

#include <GLPCTexture.h>

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. More...
void wrap (GLint wrapS, GLint wrapT=0)
 Set wrap parameters. More...
void maxTextureSize (GLint maxtexturesize)
 Set value to use for max texture size. More...
void format (GLenum fmt)
void environMode (GLenum mode)
 For glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, mode);. More...

Public Attributes

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

Private Member Functions

void init ()

Detailed Description

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


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

casa::GLPCTextureParams::GLPCTextureParams ( )
casa::GLPCTextureParams::GLPCTextureParams ( const GLPCTextureParams )
casa::GLPCTextureParams::GLPCTextureParams ( const GLPCTextureParams )
casa::GLPCTextureParams::~GLPCTextureParams ( )

Member Function Documentation

void casa::GLPCTextureParams::copy ( const GLPCTextureParams p)
void casa::GLPCTextureParams::environMode ( GLenum  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 ( )
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

GLenum casa::GLPCTextureParams::envmode_

Definition at line 82 of file GLPCTexture.h.

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

GLenum casa::GLPCTextureParams::format_

Definition at line 83 of file GLPCTexture.h.

GLint casa::GLPCTextureParams::mag_filter_

Definition at line 76 of file GLPCTexture.h.

GLuint casa::GLPCTextureParams::maxtexturesize_

Maximum texture size to use.

Default is host's max texture size.

Definition at line 81 of file GLPCTexture.h.

GLint casa::GLPCTextureParams::min_filter_

glTexParameteri(GL_TEXTURE_2D, x, y).

Definition at line 75 of file GLPCTexture.h.

GLint casa::GLPCTextureParams::wrap_s_

Definition at line 77 of file GLPCTexture.h.

GLint casa::GLPCTextureParams::wrap_t_

Definition at line 78 of file GLPCTexture.h.

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