THuiTextureHandle Class Reference

class THuiTextureHandle : public MHuiTexture

Handle to a single-segment texture object. Only used for referencing existing textures. Destroying the handle does not affect the texture object itself.

Inherits from

Public Member Functions
THuiTextureHandle()
THuiTextureHandle(TUint, const TSize &, const TSize &)
IMPORT_C TBoolHasContent()
IMPORT_C TBoolIsNull()
IMPORT_C TUintName()
IMPORT_C voidRelease()
IMPORT_C TIntSegmentCount()
IMPORT_C TUintSegmentName(TInt)
IMPORT_C TPointSegmentOffset(TInt)
IMPORT_C TSizeSegmentSize(TInt)
IMPORT_C TSizeSegmentTextureSize(TInt)
IMPORT_C MHuiSegmentedTexture *SegmentedTexture()
IMPORT_C const MHuiSegmentedTexture *SegmentedTexture()
IMPORT_C voidSet(TUint, const TSize &, const TSize &)
IMPORT_C voidSetName(TUint)
IMPORT_C voidSetSize(const TSize &)
IMPORT_C voidSetTextureSize(const TSize &)
IMPORT_C MHuiShadowedTexture *ShadowedTexture()
IMPORT_C const MHuiShadowedTexture *ShadowedTexture()
IMPORT_C TSizeSize()
IMPORT_C TBoolTextureChanged()
IMPORT_C voidTextureClearChanged()
Protected Member Functions
IMPORT_C voidTextureExtension(const TUid &, TAny **)
Inherited Functions
MHuiTexture::~MHuiTexture()
Public Attributes
TUint iName
TSize iSize
TSize iTextureSize

Constructor & Destructor Documentation

THuiTextureHandle()

IMPORT_CTHuiTextureHandle()

Constructors and destructor. Constructor.

THuiTextureHandle(TUint, const TSize &, const TSize &)

IMPORT_CTHuiTextureHandle(TUintaName,
const TSize &aSize,
const TSize &aTextureSize
)

Constructs a texture handle. Set()

Parameters

TUint aName
const TSize & aSize
const TSize & aTextureSize

Member Functions Documentation

HasContent()

IMPORT_C TBoolHasContent()const [virtual]

Determines whether the texture has content. Only textures that have content can be drawn.

Note that a texture that has not finished loading will return EFalse here, because its content will only become available after it has been fully loaded.

IsNull()

IMPORT_C TBoolIsNull()const

Determines if this is a null handle.

Name()

IMPORT_C TUintName()const

Release()

IMPORT_C voidRelease()

Releases the texture object that the handle references.

SegmentCount()

IMPORT_C TIntSegmentCount()const

SegmentName(TInt)

IMPORT_C TUintSegmentName(TIntaSegment)const

Parameters

TInt aSegment

SegmentOffset(TInt)

IMPORT_C TPointSegmentOffset(TIntaSegment)const

Parameters

TInt aSegment

SegmentSize(TInt)

IMPORT_C TSizeSegmentSize(TIntaSegment)const

Parameters

TInt aSegment

SegmentTextureSize(TInt)

IMPORT_C TSizeSegmentTextureSize(TIntaSegment)const

Parameters

TInt aSegment

SegmentedTexture()

IMPORT_C MHuiSegmentedTexture *SegmentedTexture()[virtual]

SegmentedTexture()

IMPORT_C const MHuiSegmentedTexture *SegmentedTexture()const [virtual]

Set(TUint, const TSize &, const TSize &)

IMPORT_C voidSet(TUintaName,
const TSize &aSize,
const TSize &aTextureSize
)

Sets the handle's texture name, logical size and texture size. This is equivalent to calling SetName(), SetSize(), and SetTextureSize().

Parameters

TUint aNameAssigns texture name of this handle. For example, with OpenGL ES renderer, this will be the texture name generated with glGenTextures().
const TSize & aSizeThe actual texture size of this texture.
const TSize & aTextureSize

SetName(TUint)

IMPORT_C voidSetName(TUintaName)

Sets the name of the named texture object that this handle refers to.

Parameters

TUint aNameName of the texture object.

SetSize(const TSize &)

IMPORT_C voidSetSize(const TSize &aSize)

Sets the logical size of the texture object this handle refers to.

Parameters

const TSize & aSizeLogical size.

SetTextureSize(const TSize &)

IMPORT_C voidSetTextureSize(const TSize &aTextureSize)

Sets the actual size of the texture object this handle refers to. For example, with OpenGL ES, this is the size of the texture object itself, which is limited to powers of two.

Parameters

const TSize & aTextureSizeTexture size.

ShadowedTexture()

IMPORT_C MHuiShadowedTexture *ShadowedTexture()[virtual]

ShadowedTexture()

IMPORT_C const MHuiShadowedTexture *ShadowedTexture()const [virtual]

Size()

IMPORT_C TSizeSize()const

TextureChanged()

IMPORT_C TBoolTextureChanged()const [virtual]

Returns true if the texture has changed since the last change notification. Changed means that the bitmap data of the texture has been modified, and must be re-uploaded to texture memory.

TextureClearChanged()

IMPORT_C voidTextureClearChanged()const [virtual]

Clears the changed status of the visual.

TextureExtension(const TUid &, TAny **)

IMPORT_C voidTextureExtension(const TUid &aExtensionUid,
TAny **aExtensionParameters
)[protected, virtual]

Parameters

const TUid & aExtensionUid
TAny ** aExtensionParameters

Member Data Documentation

TUint iName

TUint iName

Name of the GL texture.

TSize iSize

TSize iSize

Logical size of this texture.

TSize iTextureSize

TSize iTextureSize

Real size of the GL texture object.