diff options
author | ccolin | 2020-12-26 01:21:28 +0100 |
---|---|---|
committer | ccolin | 2020-12-26 01:21:28 +0100 |
commit | a6d3f3d779b031f8ca70510abe90fade909a8d0d (patch) | |
tree | 10f50d6ad13ea0216779b18443bd2958b9f4d79e /src/opengl_mesh.hh | |
parent | c0116528a7b618d185ac688b31e0fa8752924375 (diff) |
textures and whatnot i forgot to commit for a while lol
Diffstat (limited to 'src/opengl_mesh.hh')
-rw-r--r-- | src/opengl_mesh.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/opengl_mesh.hh b/src/opengl_mesh.hh index e3b8ad2..5038816 100644 --- a/src/opengl_mesh.hh +++ b/src/opengl_mesh.hh @@ -3,15 +3,16 @@ #include <QMatrix4x4> #include <QVector> -#include <QOpenGLFunctions> +#include <QOpenGLTexture> struct OpenGLMesh { GLuint vao, vbo; unsigned nverts; QMatrix4x4 mat; + QOpenGLTexture *tex; - OpenGLMesh(QVector<float> verts); + OpenGLMesh(QVector<float> verts, QOpenGLTexture *tex); }; |