![]() |
• Graphics Manager | ||||||||
|
API Links
Developer Links
|
Texture::GetDefined in:
Returns a reference to a texture object.
C4Textures.hPrototype
Parameters
Description
The Get function returns a reference to a texture map object. A texture map may be stored in a resource or created in memory, and the location determines which version of the Get function should be called. If the texture is stored in a resource, then the version of the Get function taking the name of the resource in the name parameter should be called. If the texture image exists in memory, then the version of the Get function taking a TextureHeader structure should be called.If a texture object already exists for the parameters passed to the Get function, then its reference count is incremented, and a pointer to the existing object is returned. Otherwise, a new texture object is created with a reference count of 1, and a pointer to the new object is returned. If an attempt is made to create a texture object for a resource that does not exist, then the return value is nullptr.For each successful call to the Get function, there should be a balancing call to the Shared::Release function that releases the texture object.
See Also
|