DzTexture Class Reference

Class that handles sharing of data for image maps. More...

Inheritance diagram for DzTexture:

QObject DzRefCountedItem Object List of all members.

Methods

String getFilename ()
Size getGLTextureSize ()
String getTempFilename ()
void refresh ()

Signals

void drawnDataChanged ()
 Signature: "drawnDataChanged()"
void tempFilenameChanged (String filename)
 Signature: "tempFilenameChanged(const QString&)"

Detailed Description

Class that handles sharing of data for image maps.

This is a sharable object that stores information for an texture (image map) that is used in OpenGL. Do not create a texture, rather, request one from DzImageMgr - this insures that there is only one instance of a given image in memory at a time, and also ensures that necessary conversions for rendering the image via OpenGL and offline renderers occurs correctly.


Member Function Documentation

void DzTexture::drawnDataChanged (  )  [signal]

Signature: "drawnDataChanged()"

Emitted when the data of the texture has changed - e.g. after a call to refresh()

String DzTexture::getFilename (  ) 

Returns:
The source file name for this image.

Size DzTexture::getGLTextureSize (  ) 

Returns:
The actual size of the OpenGL texture image.

String DzTexture::getTempFilename (  ) 

Returns:
The temp file name for this image.

void DzTexture::refresh (  ) 

Reloads the image if its source file has changed

DzTexture::tempFilenameChanged ( String  filename  )  [signal]

Signature: "tempFilenameChanged(const QString&)"

Emitted when the temp filename for the image has changed


Generated on Thu Sep 24 12:21:16 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.