VisimBox 1.0 VisimBox 3d simulation and visualisation ToolBox

- Main Page
- Packages
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
VisimRenderGL.GLTextureMan Class Reference

OpenGL texture manager. More...

Inheritance diagram for VisimRenderGL.GLTextureMan:

List of all members.

## Public Member Functions
override void | Add (string key, Texture value)
override Texture | CreateTexture (System.Drawing.Bitmap bmp, string name, bool alpha=false)
| Creates new texture from the System.Drawing.Bitmap. Note, doesn't add this to resources. Use Add(bitmap)
override Texture | Load (string key, string filename)
| Returns data with associated filename from cache or loads them.

## Detailed Description

OpenGL texture manager.

## Member Function Documentation

override void VisimRenderGL.GLTextureMan.Add | ( | string | key,
|  | Texture | value
| ) |  |

override Texture VisimRenderGL.GLTextureMan.CreateTexture | ( | System.Drawing.Bitmap | bmp,
|  | string | name,
|  | bool | alpha = `false`
| ) |  | `[virtual]`

Creates new texture from the System.Drawing.Bitmap. Note, doesn't add this to resources. Use Add(bitmap)

Parameters:

  bmp | Bitmap for the texture

Returns:
  New texture

Implements VisimBox.Renderer.TextureManager.

override Texture VisimRenderGL.GLTextureMan.Load | ( | string | key,
|  | string | filename
| ) |  | `[virtual]`

Returns data with associated filename from cache or loads them.

Parameters:

  filename | Filename with data
  key | Key to use for loaded data

Returns:
  loaded value

NOTE: use image loader later

Reimplemented from VisimBox.Resources.AbstractResMan< T >.

The documentation for this class was generated from the following file:

- GLTextures.cs

All Classes Namespaces Files Functions Variables Enumerations Properties Events