Antkeeper  0.0.1
Public Types | Public Member Functions | List of all members
render::model Class Reference

#include <model.hpp>

Public Types

using aabb_type = geom::box< float >
 AABB type. More...
 

Public Member Functions

void set_vertex_offset (std::size_t offset) noexcept
 Sets the byte offset to the first vertex in the vertex buffer. More...
 
void set_vertex_stride (std::size_t stride) noexcept
 Sets the byte stride between consecutive elements within the vertex buffer. More...
 
constexpr std::size_t get_vertex_offset () const noexcept
 Returns the byte offset to the first vertex in the vertex buffer. More...
 
constexpr std::size_t get_vertex_stride () const noexcept
 Returns the byte stride between consecutive elements within the vertex buffer. More...
 
const std::shared_ptr< gl::vertex_array > & get_vertex_array () const noexcept
 Returns the vertex array associated with this model. More...
 
std::shared_ptr< gl::vertex_array > & get_vertex_array () noexcept
 Returns the vertex array associated with this model. More...
 
const std::shared_ptr< gl::vertex_buffer > & get_vertex_buffer () const noexcept
 Returns the vertex buffer associated with this model. More...
 
std::shared_ptr< gl::vertex_buffer > & get_vertex_buffer () noexcept
 Returns the vertex buffer associated with this model. More...
 
const aabb_typeget_bounds () const noexcept
 Returns the bounds of the model. More...
 
aabb_typeget_bounds () noexcept
 Returns the bounds of the model. More...
 
const std::vector< model_group > & get_groups () const noexcept
 Returns the model's model groups. More...
 
std::vector< model_group > & get_groups () noexcept
 Returns the model's model groups. More...
 
const ::skeletonget_skeleton () const noexcept
 Returns the skeleton associated with this model. More...
 
::skeletonget_skeleton () noexcept
 Returns the skeleton associated with this model. More...
 

Detailed Description

Definition at line 52 of file model.hpp.

Member Typedef Documentation

◆ aabb_type

AABB type.

Definition at line 56 of file model.hpp.

Member Function Documentation

◆ get_bounds() [1/2]

const aabb_type& render::model::get_bounds ( ) const
inlinenoexcept

Returns the bounds of the model.

Definition at line 122 of file model.hpp.

◆ get_bounds() [2/2]

aabb_type& render::model::get_bounds ( )
inlinenoexcept

Returns the bounds of the model.

Definition at line 126 of file model.hpp.

◆ get_groups() [1/2]

const std::vector<model_group>& render::model::get_groups ( ) const
inlinenoexcept

Returns the model's model groups.

Definition at line 136 of file model.hpp.

◆ get_groups() [2/2]

std::vector<model_group>& render::model::get_groups ( )
inlinenoexcept

Returns the model's model groups.

Definition at line 140 of file model.hpp.

◆ get_skeleton() [1/2]

const ::skeleton& render::model::get_skeleton ( ) const
inlinenoexcept

Returns the skeleton associated with this model.

Definition at line 150 of file model.hpp.

◆ get_skeleton() [2/2]

::skeleton& render::model::get_skeleton ( )
inlinenoexcept

Returns the skeleton associated with this model.

Definition at line 154 of file model.hpp.

◆ get_vertex_array() [1/2]

const std::shared_ptr<gl::vertex_array>& render::model::get_vertex_array ( ) const
inlinenoexcept

Returns the vertex array associated with this model.

Definition at line 82 of file model.hpp.

◆ get_vertex_array() [2/2]

std::shared_ptr<gl::vertex_array>& render::model::get_vertex_array ( )
inlinenoexcept

Returns the vertex array associated with this model.

Definition at line 86 of file model.hpp.

◆ get_vertex_buffer() [1/2]

const std::shared_ptr<gl::vertex_buffer>& render::model::get_vertex_buffer ( ) const
inlinenoexcept

Returns the vertex buffer associated with this model.

Definition at line 96 of file model.hpp.

◆ get_vertex_buffer() [2/2]

std::shared_ptr<gl::vertex_buffer>& render::model::get_vertex_buffer ( )
inlinenoexcept

Returns the vertex buffer associated with this model.

Definition at line 100 of file model.hpp.

◆ get_vertex_offset()

constexpr std::size_t render::model::get_vertex_offset ( ) const
inlineconstexprnoexcept

Returns the byte offset to the first vertex in the vertex buffer.

Definition at line 107 of file model.hpp.

◆ get_vertex_stride()

constexpr std::size_t render::model::get_vertex_stride ( ) const
inlineconstexprnoexcept

Returns the byte stride between consecutive elements within the vertex buffer.

Definition at line 113 of file model.hpp.

◆ set_vertex_offset()

void render::model::set_vertex_offset ( std::size_t  offset)
inlinenoexcept

Sets the byte offset to the first vertex in the vertex buffer.

Parameters
offsetByte offset into the vertex buffer.

Definition at line 63 of file model.hpp.

◆ set_vertex_stride()

void render::model::set_vertex_stride ( std::size_t  stride)
inlinenoexcept

Sets the byte stride between consecutive elements within the vertex buffer.

Parameters
strideByte stride between consecutive elements within the vertex buffer.

Definition at line 73 of file model.hpp.


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