#include <Projection.h>
Inheritance diagram for Teddy::PhysicalComponents::Projection:
Public Methods | |
Projection (const std::string &name, Camera *camera) | |
Constructor. More... | |
virtual | ~Projection () |
Destructor. More... | |
void | setProjectionMatrix () |
void | setProjectionMatrix (Matrix &m) |
void | setModelViewMatrix () |
void | setModelViewMatrix (Matrix &m) |
Model * | pick (const Vector2 &pos) |
float | getRatio () |
virtual Area * | getHit (const Vector2 &pos) |
Area Input Interface - Get Hit Area, NULL if none. More... | |
virtual void | drawSelf () |
Drawing code. More... | |
Material * | getMaster () |
Options & | getSelect () |
void | setSelect (unsigned long select) |
void | enableSelect (unsigned long select) |
void | disableSelect (unsigned long select) |
void | setClearColor (Color c) |
Color | getClearColor () |
Camera * | getCamera () |
Camera get accessor. More... | |
void | setCamera (Camera *c=NULL) |
Camera set accessor. More... | |
void | doMaterial (Material *m) |
Apply Material to Projection. More... | |
void | materialReapplyActive () |
Apply material. More... | |
bool | materialPass () |
Apply single material application pass. More... | |
void | pickState (const bool state) |
Enable and or disable pick mode. More... | |
void | applyFillOutline () |
void | applyRemoveHidden () |
void | applyFrustumCull () |
void | applySortInstances () |
void | applySortElements () |
Static Public Attributes | |
int | material_skip_count = 0 |
Protected Attributes | |
Camera * | camera |
Material * | active_material |
Texture * | active_texture |
Area * | frame |
Material * | master_material |
Uint8 | render_pass |
Uint8 | render_pass_count |
Options | render_options_selection_mask |
Color | clear_color |
Each projection area maintains it own rendering preferences. Those are independent of potential Material properties of ModelInstances which can be viewed in the Projection area.
While some of the projection properties are default values, which can be overridden by material properties, others may override any material properties. For example, if projection is set to use wireframe rendering, no material property can override this - all modelinstances are drawn in wireframe mode.
Projection is responsible for implementing and applying Material properties.
Definition at line 70 of file Projection.h.
|
Constructor.
Definition at line 49 of file Projection.cpp. References active_material, active_texture, clear_color, Teddy::PhysicalComponents::Area::drawing_ordering, Teddy::PhysicalComponents::Area::fill_free_size_relative, master_material, Teddy::MixIn::Options::options, render_pass_count, Teddy::PhysicalComponents::Area::separate_self, setSelect, and Vector2. |
|
Destructor.
Definition at line 74 of file Projection.cpp. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 353 of file Projection.cpp. References render_options_selection_mask. |
|
Apply Material to Projection.
Definition at line 103 of file Projection.cpp. References active_material, Teddy::SysSupport::dmsg, Teddy::MixIn::Options::isEnabled, Teddy::SysSupport::M_MAT, material_skip_count, materialReapplyActive, render_pass, and render_pass_count. |
|
Drawing code.
Reimplemented from Teddy::PhysicalComponents::Area. Definition at line 278 of file Projection.cpp. References active_material, camera, clear_color, Teddy::MixIn::Options::isEnabled, master_material, material_skip_count, Teddy::PhysicalComponents::Area::rect, render_options_selection_mask, Teddy::PhysicalComponents::Area::size, and Teddy::Graphics::ViewClient::view. |
|
Definition at line 347 of file Projection.cpp. References render_options_selection_mask. |
|
Camera get accessor.
Definition at line 323 of file Projection.cpp. References camera. |
|
Definition at line 384 of file Projection.cpp. References clear_color. |
|
Area Input Interface - Get Hit Area, NULL if none.
Reimplemented from Teddy::PhysicalComponents::Area. Definition at line 79 of file Projection.cpp. References Teddy::SysSupport::dmsg, Teddy::SysSupport::M_WM, and Teddy::PhysicalComponents::Area::rect. |
|
Definition at line 372 of file Projection.cpp. References master_material. |
|
Definition at line 421 of file Projection.cpp. References Teddy::PhysicalComponents::Area::size. |
|
Definition at line 335 of file Projection.cpp. References render_options_selection_mask. |
|
Apply single material application pass.
Definition at line 187 of file Projection.cpp. References active_material, active_texture, Teddy::MixIn::Options::isEnabled, master_material, MIN, render_options_selection_mask, render_pass, render_pass_count, and Teddy::Graphics::ViewClient::view. |
|
Apply material.
Definition at line 133 of file Projection.cpp. References active_material, Teddy::SysSupport::dmsg, Teddy::MixIn::Options::enable, Teddy::SysSupport::M_MAT, master_material, MIN, render_options_selection_mask, render_pass_count, and Teddy::Graphics::ViewClient::view. Referenced by doMaterial. |
|
Definition at line 414 of file Projection.cpp. References camera, and Teddy::Graphics::ViewClient::view. |
|
Enable and or disable pick mode.
Definition at line 359 of file Projection.cpp. References active_material, active_texture, Teddy::MixIn::Options::disable, and Teddy::MixIn::Options::enable. |
|
Camera set accessor.
Definition at line 329 of file Projection.cpp. References camera. |
|
Definition at line 378 of file Projection.cpp. References clear_color. |
|
Definition at line 408 of file Projection.cpp. References Teddy::Graphics::ViewClient::view. |
|
Definition at line 402 of file Projection.cpp. References Teddy::Graphics::ViewClient::view. |
|
Definition at line 396 of file Projection.cpp. References Teddy::Graphics::ViewClient::view. |
|
Definition at line 390 of file Projection.cpp. References Teddy::Graphics::ViewClient::view. |
|
Definition at line 341 of file Projection.cpp. References render_options_selection_mask. Referenced by Projection. |
|
Definition at line 117 of file Projection.h. Referenced by doMaterial, drawSelf, materialPass, materialReapplyActive, pickState, and Projection. |
|
Definition at line 118 of file Projection.h. Referenced by materialPass, pickState, and Projection. |
|
Definition at line 116 of file Projection.h. |
|
Definition at line 124 of file Projection.h. Referenced by drawSelf, getClearColor, Projection, and setClearColor. |
|
Definition at line 119 of file Projection.h. |
|
Definition at line 120 of file Projection.h. Referenced by drawSelf, getMaster, materialPass, materialReapplyActive, and Projection. |
|
Definition at line 45 of file Projection.cpp. Referenced by doMaterial, and drawSelf. |
|
Definition at line 123 of file Projection.h. Referenced by disableSelect, drawSelf, enableSelect, getSelect, materialPass, materialReapplyActive, and setSelect. |
|
Definition at line 121 of file Projection.h. Referenced by doMaterial, and materialPass. |
|
Definition at line 122 of file Projection.h. Referenced by doMaterial, materialPass, materialReapplyActive, and Projection. |