In file libs/cs3d/software/soft_txt.h:

## class csTextureMMSoftware : public csTextureMM

> csTextureMMSoftware represents a texture and all its mipmapped variants

## Inheritance:

### Public Methods

csTextureMMSoftware(IImageFile* image)
unsigned char* get_colormap_private()
  Get the private colormap if any.
unsigned char* get_private_to_global()
  Get the conversion table from private to global colormap if any.
void remap_palette_global(csTextureManagerSoftware* new_palette, bool do_2d = false)
  Remap the palette of this texture using the given global palette (inside csTextureManagerSoftware)
void remap_palette_private(csTextureManagerSoftware* new_palette)
  Remap the palette of this texture using a private palette and make a mapping of this palette to RGB and to the global palette (inside csTextureManagerSoftware)
virtual void remap_texture(csTextureManager* new_palette)
  Remap the palette of this texture according to the internal texture mode
virtual ~csTextureMMSoftware()

### Protected Fields

TxtCmapPrivate* priv_cmap
  Private colormap if needed.

### Protected Methods

virtual void convert_to_internal(csTextureManager* tex, IImageFile* imfile, unsigned char* bm)
  Convert ImageFile to internal format.

### Inherited from csTextureMM:

### Public Fields

static bool fIgnoreLoadingErrors

### Public Methods

void alloc_2dtexture(csTextureManager* tex)
void alloc_mipmaps(csTextureManager* tex)
void blend_mipmap0(csTextureManager* tex)
void compute_color_usage()
void create_mipmaps(csTextureManager* tex)
bool for_2d()
bool for_3d()
void free_image()
void free_usage_table()
const csColor& get_mean_color()
int get_mean_color_idx()
int get_num_colors()
csTexture* get_texture(int lev)
bool get_transparent()
void get_transparent(int &red, int &green, int &blue)
const RGBPalEntry& get_usage(int idx)
bool loaded_correctly()
virtual void remap_palette_24bit(csTextureManager* new_palette)
virtual void remap_texture_16(csTextureManager* new_palette)
virtual void remap_texture_32(csTextureManager* new_palette)
void set_3d2d(bool f3d, bool f2d)
void set_transparent(int red, int green, int blue)

### Protected Fields

bool for2d
bool for3d
IImageFile* ifile
bool istransp
csColor mean_color
int mean_idx
int rs24
csTexture* t1
csTexture* t2
csTexture* t2d
csTexture* t3
csTexture* t4
RGBPixel transp_color
ImageColorInfo* usage

### Protected Methods

void create_blended_mipmap(csTextureManager* tex, unsigned char* bm)
void create_mipmap_bitmap(csTextureManager* tex, int steps, unsigned char* bm)

## Documentation

> csTextureMMSoftware represents a texture and all its mipmapped variants

`TxtCmapPrivate* priv_cmap`
  Private colormap if needed.

`virtual void convert_to_internal(csTextureManager* tex, IImageFile* imfile, unsigned char* bm)`
  Convert ImageFile to internal format.

`csTextureMMSoftware(IImageFile* image)`

`virtual ~csTextureMMSoftware()`

`unsigned char* get_colormap_private()`
  Get the private colormap if any.

`unsigned char* get_private_to_global()`
  Get the conversion table from private to global colormap if any.

`virtual void remap_texture(csTextureManager* new_palette)`
  Remap the palette of this texture according to the internal texture mode

`void remap_palette_global(csTextureManagerSoftware* new_palette, bool do_2d = false)`
  Remap the palette of this texture using the given global palette (inside csTextureManagerSoftware). If do_2d is true then this remapping is done on the 2d driver texture.

`void remap_palette_private(csTextureManagerSoftware* new_palette)`
  Remap the palette of this texture using a private palette and make a mapping of this palette to RGB and to the global palette (inside csTextureManagerSoftware)

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de