Added initializers

This commit is contained in:
Robert Osfield 2016-06-25 13:42:49 +01:00
parent aee1423e55
commit 5f920b21ca
2 changed files with 27 additions and 19 deletions

View File

@ -47,7 +47,8 @@ Surface::Surface()
translucency_(0),
glossiness_(0.4f),
sidedness_(FRONT_ONLY),
max_smoothing_angle_(0)
max_smoothing_angle_(0),
color_map_intensity_(1.0f)
{
}
@ -61,7 +62,8 @@ Surface::Surface(const lwo2::FORM::SURF *surf, const Clip_map &clips)
translucency_(0),
glossiness_(0.4f),
sidedness_(FRONT_ONLY),
max_smoothing_angle_(0)
max_smoothing_angle_(0),
color_map_intensity_(1.0f)
{
compile(surf, clips);
}

View File

@ -28,6 +28,12 @@ namespace lwosg
public:
bool tessellate(const Polygon &poly, const osg::Vec3Array *points, osg::DrawElementsUInt *out, const std::vector<int> *remap = 0);
Tessellator():
prim_type_(0),
last_error_(0)
{
}
~Tessellator();
protected: