Commit cb6e0d82 authored by Jan Möbius's avatar Jan Möbius
Browse files

Use initializer list for renderobject

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18212 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6352aaf8
......@@ -167,6 +167,8 @@ void RenderObject::setMaterial( const SceneGraph::Material* _mat )
RenderObject::RenderObject()
: priority(0),
modelview(GLMatrixf(ACG::Vec3f(1.0,0.0,0.0),ACG::Vec3f(0.0,1.0,0.0),ACG::Vec3f(0.0,0.0,1.0))),
proj(modelview),
vertexBuffer(0), indexBuffer(0), sysmemIndexBuffer(0),
primitiveMode(GL_TRIANGLES), numIndices(0), indexOffset(0), indexType(GL_UNSIGNED_INT),
vertexDecl(0),
......@@ -183,16 +185,6 @@ RenderObject::RenderObject()
debugID(0), debugName(0),
internalFlags_(0)
{
// set modelview and proj to identity
float I[16] = {1.0f, .0f, .0f, .0f,
.0f, 1.0f, .0f, .0f,
.0f, .0f, 1.0f, .0f,
.0f, .0f, .0f, 1.0f};
modelview = GLMatrixf(I);
proj = modelview;
colorWriteMask[0] = colorWriteMask[1] = colorWriteMask[2] = colorWriteMask[3] = 1;
}
......
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