summaryrefslogtreecommitdiffstats
path: root/src/glcube.h
blob: de399a3dcec6dee4d082c01ad4b9442a8791b508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef GLCUBE_H
#define GLCUBE_H

#include "glbody.h"

class GLCube : public GLBody
{
public:
    GLCube(QVector3D lbb = QVector3D(0.0, 0.0, 0.0), QVector3D rtf = QVector3D(1.0,
            1.0, 1.0), const GLColorRgba & m_color = GLColorRgba::clBlue,
           const QString m_textureFile = "");

    virtual void makeSurface(QVector<GLPoint> *pointContainer,
                             QVector<GLshort> *indexContainer);

private:
    QVector3D m_lbb;
    QVector3D m_rtf;
};

#endif // GLCUBE_H