nux-1.16.0
nux::TexCoordXForm Class Reference

Texture parameter and coordinate computation class. More...

#include <NuxGraphics/RenderingPipe.h>

List of all members.

Public Types

enum  TexCoordType {
  OFFSET_SCALE_COORD, OFFSET_COORD, NORMALIZED_COORD, UNNORMALIZED_COORD,
  FIXED_COORD
}
 Texture coordinates computation mode. More...

Public Member Functions

void SetTexCoordType (TexCoordType tex_coord_type)
void FlipUCoord (bool b)
void FlipVCoord (bool b)
void FlipUVCoord (bool flip_u, bool flip_v)
void SetFilter (TexFilter min_fliter, TexFilter mag_filter)
void SetWrap (TexWrap u_wrap, TexWrap v_wrap)

Public Attributes

float u0
 Texture coordinates are computed automatically by following the TexCoordType policy or provided by the user.
float v0
float u1
float v1
float uscale
float vscale
float uoffset
float voffset
TexWrap uwrap
TexWrap vwrap
TexFilter min_filter
TexFilter mag_filter
bool flip_u_coord
bool flip_v_coord
TexCoordType m_tex_coord_type

Detailed Description

Texture parameter and coordinate computation class.

Defines the texture coordinate computation, wraping and filtering modes

Definition at line 96 of file RenderingPipe.h.


Member Enumeration Documentation

Texture coordinates computation mode.

Enumerator:
OFFSET_SCALE_COORD 

Texture coordinates are offset and scaled.

OFFSET_COORD 

Textures coordinates are offset only.

NORMALIZED_COORD 

Provided normalized texture coordinates in u0, v0, u1, v1.

UNNORMALIZED_COORD 

Provided un-normalized texture coordinates in u0, v0, u1, v1.

FIXED_COORD 

Provided fix coordinates in u0, v0, u1, v1.

Definition at line 100 of file RenderingPipe.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends