Isle
Loading...
Searching...
No Matches
LegoNamedTexture Class Reference

[AI] Associates a named string with a LegoTexture instance, allowing textures to be referenced symbolically (by name). More...

#include <legonamedtexture.h>

Public Member Functions

 LegoNamedTexture (const char *p_name, LegoTexture *p_texture)
 [AI] Constructor. More...
 
 ~LegoNamedTexture ()
 [AI] Destructor. More...
 
const MxStringGetName () const
 [AI] Returns a pointer to the name string associated with this texture. More...
 
LegoTextureGetTexture ()
 [AI] Returns a pointer to the owned LegoTexture instance. More...
 

Detailed Description

[AI] Associates a named string with a LegoTexture instance, allowing textures to be referenced symbolically (by name).

This class owns the texture pointer and automatically deletes it in its destructor. It is useful for managing named texture resources, for example for lookup and resource management.

[AI]

Definition at line 15 of file legonamedtexture.h.

Constructor & Destructor Documentation

◆ LegoNamedTexture()

LegoNamedTexture::LegoNamedTexture ( const char *  p_name,
LegoTexture p_texture 
)
inline

[AI] Constructor.

Creates a LegoNamedTexture pairing a name with a texture.

Parameters
p_nameThe symbolic name to associate with the texture. [AI]
p_texturePointer to the LegoTexture to own and manage. [AI]

Definition at line 22 of file legonamedtexture.h.

◆ ~LegoNamedTexture()

LegoNamedTexture::~LegoNamedTexture ( )
inline

[AI] Destructor.

Deletes the associated LegoTexture automatically to manage memory.

[AI]

Definition at line 32 of file legonamedtexture.h.

Member Function Documentation

◆ GetName()

const MxString * LegoNamedTexture::GetName ( ) const
inline

[AI] Returns a pointer to the name string associated with this texture.

Returns
Pointer to the internal MxString name. [AI]

Definition at line 38 of file legonamedtexture.h.

◆ GetTexture()

LegoTexture * LegoNamedTexture::GetTexture ( )
inline

[AI] Returns a pointer to the owned LegoTexture instance.

Returns
Pointer to the LegoTexture. [AI]

Definition at line 44 of file legonamedtexture.h.


The documentation for this class was generated from the following file: