TextureMapper Klassenreferenz

Projiziert eine Texture aus dem 3D Raum in den 2D Raum. Mehr ...

#include <TextureMapper.h>

Aufstellung aller Elemente

Öffentliche Methoden

void dumpVertices ()
void dumpProjection ()
void dumpGradients ()
virtual ~TextureMapper ()
 Destruktor.
void render (float d, Triangle &t, BYTE *pane, float *ZBuffer, int width, int height)

Öffentliche, statische Methoden

static TextureMappergetInstance ()
 Liefert die Singleton-Instanz.

Öffentliche Attribute

Vec m_p0
Vec m_p1
Vec m_p2
float m_d
float x0
float y0
float z0
float c0
float uc0
float vc0
float x1
float y1
float z1
float c1
float uc1
float vc1
float x2
float y2
float z2
float c2
float uc2
float vc2

Geschützte Methoden

 TextureMapper ()
 Konstruktor.

Private Methoden

void project (float d, Vec p0, Vec p1, Vec p2)
void addOffset ()
void sortVertices ()
void gradients ()
void gradients2 ()
void gradients3 ()
void doit ()
void renderSegment (int y1, int y2)
void renderLine (int y, int x1, int x2, float cs, float ucs, float vcs)

Private Attribute

int m_xmax
int m_ymax
int m_tex_width
int m_tex_height
BYTE m_rgbIntensity [256][256]
bool debugFlag
int msg_count
Texturem_tex
Surfacem_surface
int m_height
int m_height_1
int m_width
int m_alpha
float * m_ZBuffer
float dc_dx
float dc_dy
float duc_dx
float duc_dy
float dvc_dx
float dvc_dy
float dx_dy_a
float dc_dy_a
float duc_dy_a
float dvc_dy_a
float dx_dy_b
float dc_dy_b
float duc_dy_b
float dvc_dy_b
float xa
float xb
float ca
float uca
float vca
BYTE * m_planePixels

Statische private Attribute

static TextureMapper_instance = 0


Ausführliche Beschreibung

Projiziert eine Texture aus dem 3D Raum in den 2D Raum.

Beschreibung der Konstruktoren und Destruktoren

TextureMapper::TextureMapper (  )  [protected]

Konstruktor.

TextureMapper::~TextureMapper (  )  [virtual]

Destruktor.


Dokumentation der Elementfunktionen

void TextureMapper::project ( float  d,
Vec  p0,
Vec  p1,
Vec  p2 
) [private]

void TextureMapper::addOffset (  )  [private]

void TextureMapper::sortVertices (  )  [private]

void TextureMapper::gradients (  )  [private]

void TextureMapper::gradients2 (  )  [private]

void TextureMapper::gradients3 (  )  [private]

void TextureMapper::doit (  )  [private]

void TextureMapper::renderSegment ( int  y1,
int  y2 
) [private]

void TextureMapper::renderLine ( int  y,
int  x1,
int  x2,
float  cs,
float  ucs,
float  vcs 
) [inline, private]

void TextureMapper::dumpVertices (  ) 

void TextureMapper::dumpProjection (  ) 

void TextureMapper::dumpGradients (  ) 

TextureMapper * TextureMapper::getInstance (  )  [static]

Liefert die Singleton-Instanz.

Rückgabe:
Pointer auf die Instanz

void TextureMapper::render ( float  d,
Triangle t,
BYTE *  pane,
float *  ZBuffer,
int  width,
int  height 
)


Dokumentation der Datenelemente

int TextureMapper::m_xmax [private]

int TextureMapper::m_ymax [private]

BYTE TextureMapper::m_rgbIntensity[256][256] [private]

bool TextureMapper::debugFlag [private]

int TextureMapper::msg_count [private]

int TextureMapper::m_height [private]

int TextureMapper::m_width [private]

int TextureMapper::m_alpha [private]

float* TextureMapper::m_ZBuffer [private]

float TextureMapper::dc_dx [private]

float TextureMapper::dc_dy [private]

float TextureMapper::duc_dx [private]

float TextureMapper::duc_dy [private]

float TextureMapper::dvc_dx [private]

float TextureMapper::dvc_dy [private]

float TextureMapper::dx_dy_a [private]

float TextureMapper::dc_dy_a [private]

float TextureMapper::duc_dy_a [private]

float TextureMapper::dvc_dy_a [private]

float TextureMapper::dx_dy_b [private]

float TextureMapper::dc_dy_b [private]

float TextureMapper::duc_dy_b [private]

float TextureMapper::dvc_dy_b [private]

float TextureMapper::xa [private]

float TextureMapper::xb [private]

float TextureMapper::ca [private]

float TextureMapper::uca [private]

float TextureMapper::vca [private]

TextureMapper * TextureMapper::_instance = 0 [static, private]


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien:

Generated on Sun Nov 1 16:26:43 2009 for engine3d by doxygen 1.5.5