git-svn-id: svn://db.shs.com.ru/libs@536 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-05-24 19:06:35 +00:00
parent 1082db07c6
commit 58fce3cd81
29 changed files with 394 additions and 599 deletions

View File

@@ -22,10 +22,7 @@
#include "gltypes.h"
#include "chunkstream.h"
class GLVBO
#if QT_VERSION >= 0x050600
: protected QOpenGLExtraFunctions
#endif
class GLVBO : protected QOpenGLExtraFunctions
{
friend class GLObjectBase;
friend QDataStream & operator <<(QDataStream & s, const GLVBO & m);
@@ -39,7 +36,7 @@ public:
void init();
void destroy();
bool rebuffer(bool clear_ = false);
void draw(GLenum type, __GLShaderProgram__ * prog, bool simplest = false);
void draw(GLenum type, QOpenGLShaderProgram * prog, bool simplest = false);
void clear();
GLuint buffer() const {return buffer_;}
@@ -58,7 +55,7 @@ public:
bool saveToFile(const QString & filename);
bool loadFromFile(const QString & filename);
Box3D boundingBox(const QMatrix4x4 & mat = QMatrix4x4()) const;
Box3D boundingBox() const;
private:
void calculateBinormals();