Inheritance diagram for XFcGLComplexSurfaceResource:
Public Member Functions | |
virtual | ~XFcGLComplexSurfaceResource () |
Virtual destructor. | |
XFcGLSurface * | lock (INT32 aSurfaceNumber) |
Locks a surface. | |
INT | unlock (INT32 aSurfaceNumber) |
Unlocks a surface. | |
INT32 | getSurfaceCount () |
Returns the surface count. | |
INT32 | getSurfaceFormat () |
Returns the surface format (all surfaces must be of the same format). | |
Static Public Member Functions | |
XFcGLComplexSurfaceResource * | create (XFcGLTextureBuilder *aBuilder, INT32 aFlags) |
Creates a XFcGLComplexSurfaceResource object. | |
Protected Member Functions | |
XFcGLComplexSurfaceResource () | |
Protected constructor. | |
virtual INT | callback (void *aBuffer) |
Called whenever resource manager needs to re-create the resource. | |
Protected Attributes | |
INT32 | mSurfaces |
Surface count. | |
INT32 * | mSurfaceOffset |
Surface offsets inside the resource. | |
XFcGLSurface ** | mSurface |
Pointers to surfaces. | |
XFcGLTextureBuilder * | mBuilder |
Pointer to parent (used in creation of surface data). | |
INT32 | mLockCount |
Lock count. | |
void * | mData |
Data pointer. |
This class acts as the resource for the XFcGLTexture object. It stores all of the texture's surface data in a single resource. The negative side from this is that if the texture resource is lost, all of the mipmaps will have to be generated whenever the texture is needed next. Positive side is that this dramatically reduces the fragmentation of resource memory, and also speeds up texture finding, as the resource manager does not need to go through N * 8 resources. Swapping between mipmaps inside a single texture is also faster.
|
Virtual destructor.
|
|
Protected constructor.
|
|
Called whenever resource manager needs to re-create the resource.
Reimplemented from XFcResource. |
|
Creates a XFcGLComplexSurfaceResource object. XFcGLTextureBuilder is queried for surface details. |
|
Returns the surface count.
|
|
Returns the surface format (all surfaces must be of the same format).
|
|
Locks a surface.
|
|
Unlocks a surface.
|
|
Pointer to parent (used in creation of surface data).
|
|
Data pointer.
|
|
Lock count.
|
|
Pointers to surfaces.
|
|
Surface offsets inside the resource.
|
|
Surface count.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |