Eine Surface (Oberflaeche) besteht aus Textur + Lightmap Die Datenablage erfolgt maximal performant fuer den TexturMapper --> RGB pro Pixel. More...
#include <Surface.h>
Public Member Functions | |
Surface (long id, Texture &texture) | |
Konstruktor. | |
Surface (long id, Texture &texture, LightMap *lightMap, BYTE rgbIntensity[256][256], BYTE intensity) | |
Konstruktor. | |
~Surface (void) | |
Destruktor. | |
Public Attributes | |
long | m_id |
int | m_counter |
Private Member Functions | |
void | init (long id, Texture &texture) |
Eine Surface (Oberflaeche) besteht aus Textur + Lightmap Die Datenablage erfolgt maximal performant fuer den TexturMapper --> RGB pro Pixel.
Bytes/Pixel: 1 3 4 ! 1000 --------------------------------!---------- 64*64 = 4K 12K 16K ! 16M 128*128 = 16K 48K 64K ! 64M 256*256 = 64K 192K 256K ! 256M
Surface::Surface | ( | long | id, |
Texture & | texture | ||
) |
Konstruktor.
id | Surface-ID |
texture | Paletten-Image mit oder ohne Transparenz |
Surface::Surface | ( | long | id, |
Texture & | texture, | ||
LightMap * | lightmap, | ||
BYTE | rgbIntensity[256][256], | ||
BYTE | intensity | ||
) |
Konstruktor.
id | Surface-ID |
texture | Paletten-Image mit oder ohne Transparenz |
lightmap | LightMap |
rgbIntensity | Mappingmatrix |
intensity |
Surface::~Surface | ( | void | ) |
Destruktor.
void Surface::init | ( | long | id, |
Texture & | texture | ||
) | [private] |
long Surface::m_id |