projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some descriptor functions in vkutil - wip
[demo]
/
src
/
opengl
/
mesh-gl.h
diff --git
a/src/opengl/mesh-gl.h
b/src/opengl/mesh-gl.h
index
ab1ea07
..
ca4c058
100644
(file)
--- a/
src/opengl/mesh-gl.h
+++ b/
src/opengl/mesh-gl.h
@@
-18,8
+18,9
@@
private:
void update_vbo();
void update_vbo();
-protected:
- virtual void update_vertex_data() override;
+ /* used by draw_normals to debug stuff: */
+ mutable unsigned int nvao;
+ mutable unsigned int nvbo;
public:
MeshGL();
public:
MeshGL();
@@
-29,6
+30,8
@@
public:
virtual ~MeshGL();
virtual void draw() const override;
virtual ~MeshGL();
virtual void draw() const override;
+ virtual void draw_normals(float scale) const override;
+ virtual bool update_vertex_data() override;
void destroy_vbo();
};
void destroy_vbo();
};