|
DubiousEngine
0.2.0
Simple Game Engine
|
An object that can be seen. More...
#include <Visible_object.h>
Classes | |
| struct | Silhouette |
| Silhouette. More... | |
Public Member Functions | |
| Visible_object (const std::shared_ptr< Visible_model > &model, const std::shared_ptr< Visible_model > &shadow_model) | |
| Constructor. A Model is required. More... | |
| Visible_object (const Visible_object &)=delete | |
| Visible_object & | operator= (const Visible_object &)=delete |
| void | build_silhouette (const Math::Local_point &light_post, Silhouette &sil) const |
| Builds a Silhououette for use with shadow casting. More... | |
| Math::Coordinate_space & | coordinate_space () |
| Accessor. More... | |
| std::shared_ptr< Visible_model > | model () const |
| Accessor. More... | |
| std::shared_ptr< Visible_model > | shadow_model () const |
| Accessor. More... | |
| std::shared_ptr< Object_renderer > & | renderer () |
| Renderer. More... | |
| std::shared_ptr< Shadow_renderer > & | shadow_renderer () |
| Shadow Renderer. More... | |
| Color & | base_color () |
| Accessor. More... | |
An object that can be seen.
A VisibleObject is something that can be drawn within the scene. It's a pretty broad object used to define anything that is drawable. For this iteration of the engine I'm just making one kind of visible object and I will let it be able to draw with shadow or shine or whatever.
| Dubious::Renderer::Visible_object::Visible_object | ( | const std::shared_ptr< Visible_model > & | model, |
| const std::shared_ptr< Visible_model > & | shadow_model | ||
| ) |
Constructor. A Model is required.
| model | - [in] the model representing this object |
| shadow_model | - [in] the model that represents the shadow. This can be an empty pointer for non-shadow casting objects |
|
delete |
|
inline |
Accessor.
| void Dubious::Renderer::Visible_object::build_silhouette | ( | const Math::Local_point & | light_post, |
| Silhouette & | sil | ||
| ) | const |
Builds a Silhououette for use with shadow casting.
| light_post | - [in] Position of the light in local coord space |
| sil | - [out] The resulting Silhouette |
|
inline |
Accessor.
|
inline |
Accessor.
|
delete |
|
inline |
|
inline |
Accessor.
|
inline |
Shadow Renderer.