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.
Constructor & Destructor Documentation
THuiTextureHandle()
IMPORT_C | THuiTextureHandle | ( | ) | |
Constructors and destructor. Constructor.
THuiTextureHandle(TUint, const TSize &, const TSize &)
IMPORT_C | THuiTextureHandle | ( | TUint | aName, |
| const TSize & | aSize, |
| const TSize & | aTextureSize |
| ) | |
Constructs a texture handle. Set()
Member Functions Documentation
HasContent()
IMPORT_C TBool | HasContent | ( | ) | 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 TBool | IsNull | ( | ) | const |
Determines if this is a null handle.
Name()
IMPORT_C TUint | Name | ( | ) | const |
Release()
Releases the texture object that the handle references.
SegmentCount()
IMPORT_C TInt | SegmentCount | ( | ) | const |
SegmentTextureSize(TInt)
IMPORT_C TSize | SegmentTextureSize | ( | TInt | aSegment | ) | const |
Set(TUint, const TSize &, const TSize &)
IMPORT_C void | Set | ( | TUint | aName, |
| const TSize & | aSize, |
| const TSize & | aTextureSize |
| ) | |
Parameters
TUint aName | Assigns texture name of this handle. For example, with OpenGL ES renderer, this will be the texture name generated with glGenTextures(). |
const TSize & aSize | The actual texture size of this texture. |
const TSize & aTextureSize | |
SetName(TUint)
IMPORT_C void | SetName | ( | TUint | aName | ) | |
Sets the name of the named texture object that this handle refers to.
Parameters
TUint aName | Name of the texture object. |
SetSize(const TSize &)
IMPORT_C void | SetSize | ( | const TSize & | aSize | ) | |
Sets the logical size of the texture object this handle refers to.
Parameters
const TSize & aSize | Logical size. |
SetTextureSize(const TSize &)
IMPORT_C void | SetTextureSize | ( | 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 & aTextureSize | Texture size. |
Size()
IMPORT_C TSize | Size | ( | ) | const |
TextureChanged()
IMPORT_C TBool | TextureChanged | ( | ) | 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 void | TextureClearChanged | ( | ) | const [virtual] |
Clears the changed status of the visual.
TextureExtension(const TUid &, TAny **)
IMPORT_C void | TextureExtension | ( | const TUid & | aExtensionUid, |
| TAny ** | aExtensionParameters |
| ) | [protected, virtual] |
Parameters
const TUid & aExtensionUid | |
TAny ** aExtensionParameters | |
Member Data Documentation
TSize
iSize
Logical size of this texture.
TSize
iTextureSize
Real size of the GL texture object.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.