In file libs/cs3d/opengl/ogl_txtmgr.h:

## class csTextureManagerOpenGL : public csTextureManager

> OpenGL version of the texture manager

## Inheritance:

### Public Methods

STDMETHODIMP AllocPalette()
virtual void clear()
csTextureManagerOpenGL(ISystem* piSystem, IGraphics2D* piG2D)
virtual int find_color(int r, int g, int b)
  Return the index for some color
int find_rgb_real(int r, int g, int b)
  This version of find_rgb finds some r,g,b value AFTER gamma correction is applied
bool force_mixing(char* mix)
STDMETHODIMP FreeImages()
STDMETHODIMP Initialize()
virtual void InitSystem()
STDMETHODIMP MergeTexture(ITextureHandle* handle)
csTextureMMOpenGL* new_texture(IImageFile* image)
  Create a new texture.
STDMETHODIMP Prepare()
STDMETHODIMP RegisterTexture(IImageFile* image, ITextureHandle** handle, bool for3d, bool for2d)
void remap_textures()
  Remap all textures
STDMETHODIMP ReserveColor(int r, int g, int b)
void SetConfig(csIniFile* newconfig)
  Set configuration file for use inside Initialize() call
STDMETHODIMP UnregisterTexture(ITextureHandle* handle)
virtual ~csTextureManagerOpenGL()

### Private Fields

csIniFile* config
  The configuration file (duplicate! should not be freed)
int prefered_col_dist
  Configuration values for color matching.
int prefered_dist
  Configuration values for color matching.

### Private Methods

ULong encode_rgb(int r, int g, int b)
  Encode RGB values to a 16-bit word (for 16-bit mode)
int find_rgb_map(int r, int g, int b, int map_type, int l)
  Find rgb for a specific map type and apply an intensity
csTexture* get_texture(int idx, int lev)
void read_config()
  Read configuration values from config file.

### Inherited from csTextureManager:

### Public Fields

static Filter3x3 blend_filter
bool do_blend_mipmap0
bool do_lightmapgrid
bool do_lightmaponly
csTextureFactory* factory_2d
csTextureFactory* factory_3d
int force_mix
float Gamma
IGraphics2D* m_piG2D
ISystem* m_piSystem
static Filter3x3 mipmap_filter_1
static Filter5x5 mipmap_filter_2
int mipmap_nice
int mixing
bool use_rgb
bool verbose

### Public Methods

int black()
int blue()
STDMETHODIMP FindRGB(int r, int g, int b, int& color)
int get_almost_black()
int get_display_depth()
STDMETHODIMP GetVeryNice(bool& result)
int green()
const csPixelFormat& pixel_format()
int red()
STDMETHODIMP SetVerbose(bool vb)
int white()
int yellow()

### Protected Fields

csPixelFormat pfmt
int red_color
csVector textures

## Documentation

> OpenGL version of the texture manager. This

`csIniFile* config`
  The configuration file (duplicate! should not be freed)

`int prefered_dist`
  Configuration values for color matching.

`int prefered_col_dist`
  Configuration values for color matching.

`void read_config()`
  Read configuration values from config file.

`ULong encode_rgb(int r, int g, int b)`
  Encode RGB values to a 16-bit word (for 16-bit mode)

`csTexture* get_texture(int idx, int lev)`

`int find_rgb_map(int r, int g, int b, int map_type, int l)`
  Find rgb for a specific map type and apply an intensity. 'map_type' is one of TABLE_....

`csTextureManagerOpenGL(ISystem* piSystem, IGraphics2D* piG2D)`

`virtual ~csTextureManagerOpenGL()`

`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()`

`csTextureMMOpenGL* new_texture(IImageFile* image)`
  Create a new texture.

`bool force_mixing(char* mix)`

`virtual int find_color(int r, int g, int b)`
  Return the index for some color. This works in 8-bit (returns an index in the 256-color table) and in 15/16-bit (returns a 15/16-bit encoded RGB value).

`int find_rgb_real(int r, int g, int b)`
  This version of find_rgb finds some r,g,b value AFTER gamma correction is applied. This is useful for console messages that always need the same color regardless of the gamma correction.

`void remap_textures()`
  Remap all textures

`void SetConfig(csIniFile* newconfig)`
  Set configuration file for use inside Initialize() call

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