Isle
Loading...
Searching...
No Matches
Tgl::Mesh Class Referenceabstract

[AI] Represents a renderable 3D mesh. More...

#include <tgl.h>

Inheritance diagram for Tgl::Mesh:
Collaboration diagram for Tgl::Mesh:

Public Member Functions

virtual Result SetColor (float r, float g, float b, float a)=0
 [AI] Sets the color and transparency for the mesh. More...
 
virtual Result SetTexture (const Texture *)=0
 [AI] Sets the texture to use. More...
 
virtual Result GetTexture (Texture *&)=0
 [AI] Retrieves the currently set texture. More...
 
virtual Result SetTextureMappingMode (TextureMappingMode)=0
 [AI] Sets how texture coordinates are mapped (linear or perspective correct). More...
 
virtual Result SetShadingModel (ShadingModel)=0
 [AI] Sets the mesh's shading model (e.g., Gouraud, Phong). More...
 
virtual MeshDeepClone (MeshBuilder *)=0
 [AI] Performs a deep clone—copying all mesh and group data. More...
 
virtual MeshShallowClone (MeshBuilder *)=0
 [AI] Performs a shallow clone—new wrapper, same mesh data. More...
 
- Public Member Functions inherited from Tgl::Object
virtual ~Object ()
 [AI] Destructor; releases resources. More...
 
virtual void * ImplementationDataPtr ()=0
 [AI] Returns a pointer to internal/implementation data, if any. More...
 

Detailed Description

[AI] Represents a renderable 3D mesh.

[AI]

[AI] Allows setting color, texture, shading and provides clone operations. [AI]

Definition at line 596 of file tgl.h.

Member Function Documentation

◆ DeepClone()

virtual Mesh * Tgl::Mesh::DeepClone ( MeshBuilder )
pure virtual

[AI] Performs a deep clone—copying all mesh and group data.

[AI]

Parameters
builderMesh builder to use. [AI]
Returns
Mesh* New, separate mesh object. [AI]

Implemented in TglImpl::MeshImpl.

◆ GetTexture()

virtual Result Tgl::Mesh::GetTexture ( Texture *&  )
pure virtual

[AI] Retrieves the currently set texture.

[AI]

Parameters
pTextureReference to pointer to texture (output). [AI]
Returns
Result Success or Error. [AI]

Implemented in TglImpl::MeshImpl.

◆ SetColor()

virtual Result Tgl::Mesh::SetColor ( float  r,
float  g,
float  b,
float  a 
)
pure virtual

[AI] Sets the color and transparency for the mesh.

[AI]

Parameters
rRed. [AI]
gGreen. [AI]
bBlue. [AI]
aAlpha (opacity). [AI]
Returns
Result Success or Error. [AI]

Implemented in TglImpl::MeshImpl.

◆ SetShadingModel()

virtual Result Tgl::Mesh::SetShadingModel ( ShadingModel  )
pure virtual

[AI] Sets the mesh's shading model (e.g., Gouraud, Phong).

[AI]

Parameters
mShading model. [AI]
Returns
Result Success or Error. [AI]

Implemented in TglImpl::MeshImpl.

◆ SetTexture()

virtual Result Tgl::Mesh::SetTexture ( const Texture )
pure virtual

[AI] Sets the texture to use.

[AI]

Parameters
pTextureTexture object. [AI]
Returns
Result Success or Error. [AI]

Implemented in TglImpl::MeshImpl.

◆ SetTextureMappingMode()

virtual Result Tgl::Mesh::SetTextureMappingMode ( TextureMappingMode  )
pure virtual

[AI] Sets how texture coordinates are mapped (linear or perspective correct).

[AI]

Parameters
modeMapping mode. [AI]
Returns
Result Success or Error. [AI]

Implemented in TglImpl::MeshImpl.

◆ ShallowClone()

virtual Mesh * Tgl::Mesh::ShallowClone ( MeshBuilder )
pure virtual

[AI] Performs a shallow clone—new wrapper, same mesh data.

[AI]

Parameters
builderMesh builder to use. [AI]
Returns
Mesh* Mesh sharing data with original. [AI]

Implemented in TglImpl::MeshImpl.


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