mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 21:27:44 +02:00
feat(skin manager): add elytra preview
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -180,7 +180,8 @@ QList<QVector2D> getCubeUVs(float u, float v, float width, float height, float d
|
||||
}
|
||||
|
||||
namespace opengl {
|
||||
BoxGeometry::BoxGeometry(QVector3D size, QVector3D position) : m_indexBuf(QOpenGLBuffer::IndexBuffer), m_size(size), m_position(position)
|
||||
BoxGeometry::BoxGeometry(QVector3D size, QVector3D position)
|
||||
: QOpenGLFunctions(), m_indexBuf(QOpenGLBuffer::IndexBuffer), m_size(size), m_position(position)
|
||||
{
|
||||
initializeOpenGLFunctions();
|
||||
|
||||
@ -274,4 +275,9 @@ BoxGeometry* BoxGeometry::Plane()
|
||||
|
||||
return b;
|
||||
}
|
||||
|
||||
void BoxGeometry::scale(const QVector3D& vector)
|
||||
{
|
||||
m_matrix.scale(vector);
|
||||
}
|
||||
} // namespace opengl
|
Reference in New Issue
Block a user