In file gfx/libmosaic/Mosaic.hxx:

class Mosaic::Texture2D

A class which stores a complete texture image in memory as well as an OpenGL texture object.

Documentation

A class which stores a complete texture image in memory as well as an OpenGL texture object. @todo make this into a template based on pixel format.

Inheritance:

Texture2D


Public Methods

[more]const Id& getId ()
Get the texture id of the current texture
[more]void loadSubImage (RasterBase &r, int x, int y)
Load a raster to be part of this texture at x, y.

oconst Id& getId()
Get the texture id of the current texture

ovoid loadSubImage(RasterBase &r, int x, int y)
Load a raster to be part of this texture at x, y. NOTE: for performance reasons, this routine doesn't actually reload the OpenGL texture; call reload() after calling this routine to actually load the OpenGL texture. @todo Provide another routine which will call glTexSubImage or something like that.


This class has no child classes.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.