aboutsummaryrefslogtreecommitdiff
path: root/visualization/extrasmeltutils.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-02-12 00:36:04 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-02-15 18:44:07 +0800
commit002baf9367417604412ed19d283835c23454349e (patch)
tree5f01620819966a3eb6980e80262309f453778fe5 /visualization/extrasmeltutils.hpp
parent0db7268f5b81f39a4126782c2fef4282c2e75dd8 (diff)
downloadQMidiPlayer-002baf9367417604412ed19d283835c23454349e.tar.xz
Measure indicators are now solid frames instead of ugly grey cubes.
Fixed multiple embodiment of stupidness in the code.
Diffstat (limited to 'visualization/extrasmeltutils.hpp')
-rw-r--r--visualization/extrasmeltutils.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/visualization/extrasmeltutils.hpp b/visualization/extrasmeltutils.hpp
index fe9bb73..d827567 100644
--- a/visualization/extrasmeltutils.hpp
+++ b/visualization/extrasmeltutils.hpp
@@ -13,10 +13,13 @@ class smEntity3D
std::vector<WORD> indices;
public:
smEntity3D(){vertices.clear();indices.clear();}
- ~smEntity3D(){vertices.clear();indices.clear();}
- void addVerices(int n,...);
- void addIndices(int n,...);
- static smEntity3D cube(smvec3d tl,smvec3d br,DWORD color);
+ void addVertices(size_t n,...);
+ void addIndices(size_t n,...);
+ smVertex vertex(size_t idx)const;
+ WORD index(size_t idx)const;
+ void setVertex(size_t idx,smVertex v);
+ void setIndex(size_t idx,WORD i);
+ static smEntity3D cube(smvec3d tl,smvec3d br,DWORD color,int faces=63);
};
class smEntity3DBuffer
{