DubiousEngine
0.2.0
Simple Game Engine
|
Representation of a visible model. More...
#include <Visible_model.h>
Classes | |
struct | Edge |
A Model Edge. More... | |
struct | surface |
Model Surface. More... | |
Public Member Functions | |
Visible_model (const Utility::Ac3d_file &file, bool include_edges) | |
Construct from AC3D Model. More... | |
Visible_model (const Visible_model &)=delete | |
Visible_model & | operator= (const Visible_model &)=delete |
void | build_edges () |
Builds the edges. More... | |
const Math::Local_point & | offset () const |
const std::vector< Math::Local_point > & | points () const |
const std::vector< surface > & | surfaces () const |
const std::vector< Edge > & | edges () const |
const Color & | color () const |
const std::vector< std::unique_ptr< Visible_model > > & | kids () const |
Friends | |
class | RendererTest::Visible_model_test |
Representation of a visible model.
The Renderer::Visible_model is a model suitable for drawing in OpenGL. It is similar to the Ac3d_model, but it contains more information, like point normals.
Dubious::Renderer::Visible_model::Visible_model | ( | const Utility::Ac3d_file & | file, |
bool | include_edges | ||
) |
Construct from AC3D Model.
Constructs a model from an AC3D File. Building edges is an optional operation. These are used by the shadowing renderer when you want to cast shadows.
file | - [in] The file object |
include_edges | - [in] Set true to build edges |
|
delete |
void Dubious::Renderer::Visible_model::build_edges | ( | ) |
Builds the edges.
Builds the internal edges structure. This is used by the shadow rendering system to construct silhouettes.
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
|
friend |