Commit 41658478 authored by Jan Möbius's avatar Jan Möbius

Fixed some uninitialized variables

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13359 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cd0c0968
......@@ -103,6 +103,14 @@ GLState::GLState(bool _updateGL)
max_render_passes_(1),
bb_min_(ACG::Vec3d(0.0,0.0,0.0)),
bb_max_(ACG::Vec3d(0.0,0.0,0.0)),
left_(-1.0),
bottom_(1.0),
width_(2.0),
height_(2.0),
glwidth_(2.0),
glheight_(2.0),
near_plane_(1.0),
far_plane_(100.0),
multisampling_(false),
allow_multisampling_(true),
mipmapping_(true),
......@@ -125,7 +133,6 @@ GLState::GLState(bool _updateGL)
initialize();
}
//-----------------------------------------------------------------------------
......
......@@ -245,27 +245,6 @@ int PrimitivesGeneratorPlugin::addTriangulatedCube() {
//========================================================================
void PrimitivesGeneratorPlugin::addSphereTriangle(int sl0, int st0, int sl1, int st1, int sl2, int st2)
{
ACG::Vec2f tex[3];
tex[0] = texCoordOnSphere(sl0, st0);
tex[1] = texCoordOnSphere(sl1, st1);
tex[2] = texCoordOnSphere(sl2, st2);
// std::vector<TriMesh::VertexHandle> vhandles;
//
// vhandles.push_back(vhandles_[_vh1]);
// vhandles.push_back(vhandles_[_vh2]);
// vhandles.push_back(vhandles_[_vh3]);
//
// triMesh_->add_face(vhandles);
//addTriangleToVBO(p, n, tex);
}
//------------------------------------------------------------------------
ACG::Vec3d PrimitivesGeneratorPlugin::positionOnSphere(int _sliceNumber, int _stackNumber)
{
ACG::Vec3d position;
......
......@@ -115,8 +115,6 @@ private:
inline void add_face( int _vh1 , int _vh2, int _vh3, int _vh4 , int _vh5 );
void addSphereTriangle(int sl0, int st0, int sl1, int st1, int sl2, int st2);
inline ACG::Vec3d positionOnSphere(int _sliceNumber, int _stackNumber);
inline ACG::Vec2f texCoordOnSphere(int _sliceNumber, int _stackNumber);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment