Back to index

nux  3.0.0
Public Types | Public Member Functions | Public Attributes
nux::TexCoordXForm Class Reference

Texture parameter and coordinate computation class. More...

#include <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

 TexCoordXForm ()
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, wrapping 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 scaled and offset.

OFFSET_COORD 

Textures coordinates are offset.

The scaling factor between the texture size and the quad size is preserved.

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.


Constructor & Destructor Documentation


Member Function Documentation

Definition at line 167 of file RenderingPipe.cpp.

  {
    flip_u_coord = b;
  }
void nux::TexCoordXForm::FlipUVCoord ( bool  flip_u,
bool  flip_v 
)

Definition at line 177 of file RenderingPipe.cpp.

  {
    flip_u_coord = flip_u;
    flip_v_coord = flip_v;
  }

Definition at line 172 of file RenderingPipe.cpp.

  {
    flip_v_coord = b;
  }

Here is the caller graph for this function:

void nux::TexCoordXForm::SetFilter ( TexFilter  min_fliter,
TexFilter  mag_filter 
)

Definition at line 183 of file RenderingPipe.cpp.

  {
    min_filter = minfitter;
    mag_filter = magfilter;
  }

Definition at line 195 of file RenderingPipe.cpp.

  {
    m_tex_coord_type = tex_coord_type;
  }

Here is the caller graph for this function:

void nux::TexCoordXForm::SetWrap ( TexWrap  u_wrap,
TexWrap  v_wrap 
)

Definition at line 189 of file RenderingPipe.cpp.

  {
    uwrap = u_wrap;
    vwrap = v_wrap;
  }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 128 of file RenderingPipe.h.

Definition at line 129 of file RenderingPipe.h.

Definition at line 130 of file RenderingPipe.h.

Definition at line 127 of file RenderingPipe.h.

Definition at line 126 of file RenderingPipe.h.

Texture coordinates are computed automatically by following the TexCoordType policy or provided by the user.

Definition at line 119 of file RenderingPipe.h.

Definition at line 119 of file RenderingPipe.h.

Definition at line 122 of file RenderingPipe.h.

Definition at line 120 of file RenderingPipe.h.

Definition at line 124 of file RenderingPipe.h.

Definition at line 119 of file RenderingPipe.h.

Definition at line 119 of file RenderingPipe.h.

Definition at line 123 of file RenderingPipe.h.

Definition at line 121 of file RenderingPipe.h.

Definition at line 125 of file RenderingPipe.h.


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