MOS
Public Member Functions | Public Attributes | Friends | List of all members
mos::gpu::Model Class Referencefinal

Public Member Functions

auto centroid () const -> glm::vec3
 Get centroid position. More...
 
auto radius () const -> float
 Get radious of bounding sphere.
 
auto position () const -> glm::vec3
 

Public Attributes

Mesh mesh = Mesh()
 Loaded mesh.
 
Material material
 Material. More...
 
glm::mat4 transform {0.0f}
 Transform. More...
 
Models models {}
 Children models. More...
 

Friends

class mos::gl::Renderer
 

Member Function Documentation

◆ centroid()

auto mos::gpu::Model::centroid ( ) const -> glm::vec3

Get centroid position.

Member Data Documentation

◆ material

Material mos::gpu::Model::material

◆ models

Models mos::gpu::Model::models {}

Children models.

◆ transform

glm::mat4 mos::gpu::Model::transform {0.0f}

Transform.


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