VenomEngine
Cross-Platform Modern Graphics Engine
Loading...
Searching...
No Matches
venom::common::Mesh Class Reference

Contains all the mesh's data and is the main high-level interface for the user. More...

#include <Mesh.h>

+ Inheritance diagram for venom::common::Mesh:

Public Member Functions

void SetMaterial (const Material &material)
 Assigns Material to mesh.
 
bool HasMaterial () const
 Checks if the mesh has a Material assigned.
 
const MaterialGetMaterial () const
 Returns the Material assigned to the mesh.
 
void Draw () const
 Draws the mesh.
 
- Public Member Functions inherited from venom::common::PluginObjectImplWrapper
 PluginObjectImplWrapper (PluginObjectImpl *impl)
 
 PluginObjectImplWrapper (const PluginObjectImplWrapper &other)
 
PluginObjectImplWrapperoperator= (const PluginObjectImplWrapper &other)
 
 PluginObjectImplWrapper (PluginObjectImplWrapper &&other)
 
PluginObjectImplWrapperoperator= (PluginObjectImplWrapper &&other)
 
PluginObjectImplGetImpl ()
 
const PluginObjectImplGetImpl () const
 
const PluginObjectImplGetConstImpl () const
 
bool IsImplInitialized () const
 
void Destroy ()
 

Friends

class ModelImpl
 

Additional Inherited Members

- Protected Attributes inherited from venom::common::PluginObjectImplWrapper
PluginObjectImpl_impl
 

Detailed Description

Contains all the mesh's data and is the main high-level interface for the user.

Member Function Documentation

◆ GetMaterial()

const Material & venom::common::Mesh::GetMaterial ( ) const
inline

Returns the Material assigned to the mesh.

Returns
Material

◆ HasMaterial()

bool venom::common::Mesh::HasMaterial ( ) const
inline

Checks if the mesh has a Material assigned.

Returns
true if a Material is assigned, false otherwise

◆ SetMaterial()

void venom::common::Mesh::SetMaterial ( const Material & material)
inline

Assigns Material to mesh.

Parameters
material

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