projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed terrain rendering - visualized normals
[demo]
/
src
/
opengl
/
mesh-gl.h
diff --git
a/src/opengl/mesh-gl.h
b/src/opengl/mesh-gl.h
index
78d415a
..
833e2db
100644
(file)
--- a/
src/opengl/mesh-gl.h
+++ b/
src/opengl/mesh-gl.h
@@
-18,6
+18,10
@@
private:
void update_vbo();
void update_vbo();
+ /* used by draw_normals to debug stuff: */
+ mutable unsigned int nvao;
+ mutable unsigned int nvbo;
+
public:
MeshGL();
MeshGL(const MeshGL &mesh);
public:
MeshGL();
MeshGL(const MeshGL &mesh);
@@
-26,9
+30,10
@@
public:
virtual ~MeshGL();
virtual void draw() const override;
virtual ~MeshGL();
virtual void draw() const override;
+ virtual void draw_normals(float scale) const override;
virtual void update_vertex_data() override;
void destroy_vbo();
};
virtual void update_vertex_data() override;
void destroy_vbo();
};
-#endif // MESH_GL_H_
+#endif // MESH_GL_H_
\ No newline at end of file