VISH  0.2
Public Member Functions | Static Public Member Functions
Wizt::TextureCreator Class Reference

A handler for texture creation and release. More...

#include </home/werner/origo/vish/ocean/GLvish/TextureID.hpp>

List of all members.

Public Member Functions

Static Public Member Functions


Detailed Description

A handler for texture creation and release.

There are no functions to actually create the texture here, there is just a place to hold one. This texture reference may vanish at any time due to the cache management system. This will not work if a strong reference to the texture is kept elsewhere. It is up to the application code to check whether such a texture object exists, and if not, create and set an appropriate one.

Todo:
should be derived from Creator<> template?

Member Function Documentation

override MemCore::RefPtr<TextureBase> Wizt::TextureCreator::create ( ) [inline, virtual]

Actually create the object, e.g.

load it from disk.

Implements MemCore::CreatorBase< TextureBase >.

override const std::type_info& Wizt::TextureCreator::getType ( ) [inline, virtual]

Query the associated value type of this creator object.

This type information can possibly be determined without actually loading any data. Whether or not this is the case is up to the implementation of the child class.

Implements MemCore::CreatorBase< TextureBase >.


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