Commit 680bdd5b authored by Christopher Tenter's avatar Christopher Tenter
Browse files

address to int

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15851 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 44727f35
......@@ -516,7 +516,15 @@ void StatusNodeT<Mesh, Mod>::getRenderObjects(IRenderer* _renderer,
ro.emissive = ACG::Vec3f(1.0f, 0.0f, 0.0f);
pointVertexDecl_.clear();
pointVertexDecl_.addElement(GL_DOUBLE, 3, VERTEX_USAGE_POSITION, 0, (unsigned int)mesh_.points());
VertexElement el;
el.type_ = GL_DOUBLE;
el.numElements_ = 3;
el.usage_ = VERTEX_USAGE_POSITION;
el.shaderInputName_ = 0;
el.pDataSrc_ = mesh_.points();
// pointVertexDecl_.addElement(GL_DOUBLE, 3, VERTEX_USAGE_POSITION, 0, reinterpret_cast<unsigned int>(mesh_.points()));
pointVertexDecl_.addElement(&el);
// draw status later than scene
ro.priority = 1;
......@@ -546,7 +554,14 @@ void StatusNodeT<Mesh, Mod>::getRenderObjects(IRenderer* _renderer,
if (halfedges && !he_points_.empty())
{
halfedgeVertexDecl_.clear();
halfedgeVertexDecl_.addElement(GL_DOUBLE, 3, VERTEX_USAGE_POSITION, 0, (unsigned int)&he_points_[0]);
VertexElement el;
el.type_ = GL_DOUBLE;
el.numElements_ = 3;
el.usage_ = VERTEX_USAGE_POSITION;
el.shaderInputName_ = 0;
el.pDataSrc_ = &he_points_[0];
// halfedgeVertexDecl_.addElement(GL_DOUBLE, 3, VERTEX_USAGE_POSITION, 0, reinterpret_cast<unsigned int>(&he_points_[0]));
halfedgeVertexDecl_.addElement(&el);
ro.vertexDecl = &halfedgeVertexDecl_;
......
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