chunkstream version fixedleaselication

git-svn-id: svn://db.shs.com.ru/libs@3 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
2015-03-24 11:04:36 +00:00
parent b3e47dfc99
commit b068a301bf
29 changed files with 406 additions and 95 deletions

View File

@@ -21,6 +21,7 @@
#include "globject.h"
class GLPrimitivePoint: public GLObjectBase
{
public:
@@ -30,6 +31,21 @@ private:
double sz;
};
class GLPrimitiveLine: public GLObjectBase
{
public:
GLPrimitiveLine(QVector3D p0_ = QVector3D(), QVector3D p1_ = QVector3D()) {p0 = p0_; p1 = p1_;}
virtual void draw(bool simplest = false);
private:
QVector3D p0, p1;
};
class GLPrimitiveCube: public GLObjectBase
{
public:
@@ -39,4 +55,19 @@ private:
double w, l, h;
};
class GLPrimitiveEllipsoid: public GLObjectBase
{
public:
GLPrimitiveEllipsoid(double width = 1., double length = 1., double height = 1., int seg_wl = 10, int seg_h = 10, QVector3D pos = QVector3D());
virtual void init();
private:
void putTriangle(const QVector3D & v0, const QVector3D & v1, const QVector3D & v2);
double w, l, h;
int swl, sh;
};
#endif // GLPRIMITIVE_CUBE_H