Tatooine
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tatooine::rendering::interactive::renderer< Ellipse > Struct Template Reference

#include <ellipse.h>

Collaboration diagram for tatooine::rendering::interactive::renderer< Ellipse >:
[legend]

Classes

struct  geometry
 

Public Types

using renderable_type = Ellipse
 
using real_type = typename Ellipse::real_type
 
using shader = shaders::colored_pass_through_2d
 

Public Member Functions

 renderer (renderable_type const &)
 
auto properties (renderable_type const &)
 
auto update (auto const, auto &ell, camera auto const &cam)
 
auto render ()
 

Static Public Member Functions

static auto set_projection_matrix (Mat4< GLfloat > const &P)
 
static auto construct_model_matrix (Mat2< real_type > const &S, Vec2< real_type > const &center)
 

Public Attributes

int line_width = 1
 
Vec4< GLfloat > color = {0, 0, 0, 1}
 

Member Typedef Documentation

◆ real_type

template<typename Ellipse >
using tatooine::rendering::interactive::renderer< Ellipse >::real_type = typename Ellipse::real_type

◆ renderable_type

template<typename Ellipse >
using tatooine::rendering::interactive::renderer< Ellipse >::renderable_type = Ellipse

◆ shader

template<typename Ellipse >
using tatooine::rendering::interactive::renderer< Ellipse >::shader = shaders::colored_pass_through_2d

Constructor & Destructor Documentation

◆ renderer()

template<typename Ellipse >
tatooine::rendering::interactive::renderer< Ellipse >::renderer ( renderable_type const &  )
inline

Member Function Documentation

◆ construct_model_matrix()

template<typename Ellipse >
static auto tatooine::rendering::interactive::renderer< Ellipse >::construct_model_matrix ( Mat2< real_type > const &  S,
Vec2< real_type > const &  center 
)
inlinestatic

◆ properties()

template<typename Ellipse >
auto tatooine::rendering::interactive::renderer< Ellipse >::properties ( renderable_type const &  )
inline

◆ render()

template<typename Ellipse >
auto tatooine::rendering::interactive::renderer< Ellipse >::render ( )
inline

◆ set_projection_matrix()

template<typename Ellipse >
static auto tatooine::rendering::interactive::renderer< Ellipse >::set_projection_matrix ( Mat4< GLfloat > const &  P)
inlinestatic

◆ update()

template<typename Ellipse >
auto tatooine::rendering::interactive::renderer< Ellipse >::update ( auto const  ,
auto &  ell,
camera auto const &  cam 
)
inline

Member Data Documentation

◆ color

template<typename Ellipse >
Vec4<GLfloat> tatooine::rendering::interactive::renderer< Ellipse >::color = {0, 0, 0, 1}

◆ line_width

template<typename Ellipse >
int tatooine::rendering::interactive::renderer< Ellipse >::line_width = 1

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