class csTextureManagerSoftware : public csTextureManager Software version of the texture manager
Software version of the texture manager. This instance of the texture manager is probably the most involved of all 3D rasterizer specific texture manager implementations because it needs to do a lot of work regarding palette management and the creation of lots of lookup tables.
bool initialized
bool truecolor
RGBcolor pal[256]
int alloc[256]
int prefered_dist
int prefered_col_dist
void read_config()
ULong encode_rgb(int r, int g, int b)
ULong encode_rgb_safe(int r, int g, int b)
void create_lt_palette()
void create_lt_white16()
void create_lt_white8()
void create_lt_truergb()
void create_lt_truergb_private()
void create_lt_alpha()
csTexture* get_texture(int idx, int lev)
int find_rgb_map(int r, int g, int b, int map_type, int l)
unsigned char* lt_palette_table
PalIdxLookup* lt_light
TextureTablesTrueRgb* lt_truergb
TextureTablesTrueRgbPriv* lt_truergb_private
TextureTablesWhite16* lt_white16
TextureTablesWhite8* lt_white8
TextureTablesPalette* lt_pal
TextureTablesAlpha* lt_alpha
static UShort alpha_mask
int txtMode
int force_txtMode
csTextureManagerSoftware(ISystem* piSystem, IGraphics2D* piG2D)
virtual ~csTextureManagerSoftware()
virtual void InitSystem()
virtual void clear()
STDMETHODIMP Initialize()
STDMETHODIMP Prepare()
STDMETHODIMP RegisterTexture(IImageFile* image, ITextureHandle** handle, bool for3d, bool for2d)
STDMETHODIMP UnregisterTexture(ITextureHandle* handle)
STDMETHODIMP MergeTexture(ITextureHandle* handle)
STDMETHODIMP FreeImages()
STDMETHODIMP ReserveColor(int r, int g, int b)
STDMETHODIMP AllocPalette()
csTextureMMSoftware* new_texture(IImageFile* image)
int find_rgb_slow(int r, int g, int b)
int alloc_rgb(int r, int g, int b, int dist)
bool force_mixing(char* mix)
bool force_txtmode(char* txtmode)
int find_rgb(int r, int g, int b)
virtual int find_color(int r, int g, int b)
int find_rgb_real(int r, int g, int b)
void compute_palette()
void compute_light_tables()
const RGBcolor* get_palette()
int mix_lights(int r, int g, int b, int p)
int add_light_red_private(int r, int l)
int add_light_green_private(int g, int l)
int add_light_blue_private(int b, int l)
UShort mix_lights_16(int r, int g, int b, int p)
void SetConfig(csIniFile* newconfig)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de