mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-29 05:10:20 +02:00
fix build final
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
49d82ab528
commit
aeeb6f6bb6
@ -182,6 +182,8 @@ QVector<QVector2D> getCubeUVs(float u, float v, float width, float height, float
|
|||||||
namespace opengl {
|
namespace opengl {
|
||||||
BoxGeometry::BoxGeometry(QVector3D size, QVector3D position) : m_indexBuf(QOpenGLBuffer::IndexBuffer), m_size(size), m_position(position)
|
BoxGeometry::BoxGeometry(QVector3D size, QVector3D position) : m_indexBuf(QOpenGLBuffer::IndexBuffer), m_size(size), m_position(position)
|
||||||
{
|
{
|
||||||
|
initializeOpenGLFunctions();
|
||||||
|
|
||||||
// Generate 2 VBOs
|
// Generate 2 VBOs
|
||||||
m_vertexBuf.create();
|
m_vertexBuf.create();
|
||||||
m_indexBuf.create();
|
m_indexBuf.create();
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include <QVector3D>
|
#include <QVector3D>
|
||||||
|
|
||||||
namespace opengl {
|
namespace opengl {
|
||||||
class BoxGeometry {
|
class BoxGeometry : protected QOpenGLFunctions {
|
||||||
public:
|
public:
|
||||||
BoxGeometry(QVector3D size, QVector3D position);
|
BoxGeometry(QVector3D size, QVector3D position);
|
||||||
BoxGeometry(QVector3D size, QVector3D position, QPoint uv, QVector3D textureDim, QSize textureSize = { 64, 64 });
|
BoxGeometry(QVector3D size, QVector3D position, QPoint uv, QVector3D textureDim, QSize textureSize = { 64, 64 });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user