From 4b46ed3c4e34760b2ef54cb4d1e31b4d7eebbe6c Mon Sep 17 00:00:00 2001 From: ponchio Date: Sat, 14 Oct 2006 16:26:26 +0000 Subject: [PATCH] Aggiunti un paio di typename... al solito. --- wrap/gl/trimesh.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wrap/gl/trimesh.h b/wrap/gl/trimesh.h index d2110a06..9c56ed71 100644 --- a/wrap/gl/trimesh.h +++ b/wrap/gl/trimesh.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.20 2006/05/25 09:40:14 cignoni +gcc dislike doubleline comments; removed. + Revision 1.19 2006/02/13 13:05:05 cignoni Removed glew inclusion @@ -245,16 +248,16 @@ void Update(/*Change c=CHAll*/) if(!glIsBuffer(b[1])) glGenBuffers(2,b); glBindBuffer(GL_ARRAY_BUFFER,b[0]); - glBufferData(GL_ARRAY_BUFFER_ARB, m->vn * sizeof(MESH_TYPE::VertexType), + glBufferData(GL_ARRAY_BUFFER_ARB, m->vn * sizeof(typename MESH_TYPE::VertexType), (char *)&(m->vert[0].P()), GL_STATIC_DRAW_ARB); glBindBuffer(GL_ARRAY_BUFFER,b[1]); - glBufferData(GL_ARRAY_BUFFER_ARB, m->vn * sizeof(MESH_TYPE::VertexType), + glBufferData(GL_ARRAY_BUFFER_ARB, m->vn * sizeof(typename MESH_TYPE::VertexType), (char *)&(m->vert[0].N()), GL_STATIC_DRAW_ARB); } - glVertexPointer(3,GL_FLOAT,sizeof(MESH_TYPE::VertexType),0); - glNormalPointer(GL_FLOAT,sizeof(MESH_TYPE::VertexType),0); + glVertexPointer(3,GL_FLOAT,sizeof(typename MESH_TYPE::VertexType),0); + glNormalPointer(GL_FLOAT,sizeof(typename MESH_TYPE::VertexType),0); } //int C=c;