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

class TextureCache16 : public TextureCache

This class implements the software texture cache for 16-bit mode

Inheritance:


Public Methods

TextureCache16(csPixelFormat* pfmt)
virtual ~TextureCache16()

Protected Methods

virtual void create_lighted_texture_lightmaps(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
For debugging: don't add the texture but only the lightmap data
virtual void show_lightmap_grid(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
For debugging: overlay the lightmap grid on the lighted texture

Private Methods

void create_lighted_24bit(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
Create a texture in the texture cache (24bit version).
virtual void create_lighted_texture(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
Create a texture in the texture cache
void create_lighted_true_rgb(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
Create a texture in the texture cache (true_rgb version).
void create_lighted_true_rgb_priv(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
Create a texture in the texture cache (true_rgb and private colormaps).

Inherited from TextureCache:

Public Methods

void clear()
void dump()
void init_texture(IPolygonTexture* pt, csTextureManagerSoftware* txtmgr)
void set_cache_size(long size)
static void set_default_cache_size(long size)
void use_sub_texture(IPolygonTexture* pt, csTextureManagerSoftware* txtmgr, int u, int v)
void use_texture(IPolygonTexture* pt, csTextureManagerSoftware* txtmgr)

Protected Fields

int gi_pixelbytes

Protected Methods

void* alloc_pool(int size)
void free_pool(void* mem, int size)
void init_cache_filler(TCacheData& tcd, IPolygonTexture* pt, csTextureManagerSoftware* txtmgr, int u = -1, int v = -1)

Private Fields

static int cache_size
TCacheLightedTexture* first
TCacheLightedTexture* last
MemoryHeap* memory
int real_cache_size
long total_size
int total_textures

Private Methods

void create_lighted_fast_wxx(TCacheData& tcd, TCacheLightedTexture* pt, csTextureManagerSoftware* txtmgr)
void create_lighted_nocolor(TCacheData& tcd, TCacheLightedTexture* pt, csTextureManagerSoftware* txtmgr)
void destroy_pool()
void init_pool()

Private


Documentation

This class implements the software texture cache for 16-bit mode
virtual void create_lighted_texture(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
Create a texture in the texture cache

void create_lighted_true_rgb(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
Create a texture in the texture cache (true_rgb version).

void create_lighted_24bit(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
Create a texture in the texture cache (24bit version).

void create_lighted_true_rgb_priv(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
Create a texture in the texture cache (true_rgb and private colormaps).

virtual void show_lightmap_grid(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
For debugging: overlay the lightmap grid on the lighted texture. This function should be called after calling create_lighted_texture ().

virtual void create_lighted_texture_lightmaps(TCacheData& tcd, TCacheLightedTexture* tclt, csTextureManagerSoftware* txtmgr)
For debugging: don't add the texture but only the lightmap data

TextureCache16(csPixelFormat* pfmt)

virtual ~TextureCache16()


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