# 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 TextureMapper * | getInstance ()
| 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
Texture * | m_tex
Surface * | m_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]`

int TextureMapper::m_tex_width`[private]`

int TextureMapper::m_tex_height`[private]`

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

bool TextureMapper::debugFlag`[private]`

int TextureMapper::msg_count`[private]`

Texture* TextureMapper::m_tex`[private]`

Surface* TextureMapper::m_surface`[private]`

int TextureMapper::m_height`[private]`

int TextureMapper::m_height_1`[private]`

int TextureMapper::m_width`[private]`

int TextureMapper::m_alpha`[private]`

float* TextureMapper::m_ZBuffer`[private]`

Vec TextureMapper::m_p0

Vec TextureMapper::m_p1

Vec TextureMapper::m_p2

float TextureMapper::m_d

float TextureMapper::x0

float TextureMapper::y0

float TextureMapper::z0

float TextureMapper::c0

float TextureMapper::uc0

float TextureMapper::vc0

float TextureMapper::x1

float TextureMapper::y1

float TextureMapper::z1

float TextureMapper::c1

float TextureMapper::uc1

float TextureMapper::vc1

float TextureMapper::x2

float TextureMapper::y2

float TextureMapper::z2

float TextureMapper::c2

float TextureMapper::uc2

float TextureMapper::vc2

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]`

BYTE* TextureMapper::m_planePixels`[private]`

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

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

- D:/Project/engine3d/cplusplus/src/renderer/TextureMapper.h
- D:/Project/engine3d/cplusplus/src/renderer/TextureMapper.cpp