summaryrefslogtreecommitdiff
path: root/layoutgl/widget.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
committerTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
commit3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10 (patch)
treed10e8cd4e462db28dd3c2f995905c4df57a20fed /layoutgl/widget.h
parentbe8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff)
downloadLayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.tar.gz
LayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.zip
initial un-exporter version
Diffstat (limited to '')
-rw-r--r--layoutgl/widget.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/layoutgl/widget.h b/layoutgl/widget.h
deleted file mode 100644
index 1c7aaf1..0000000
--- a/layoutgl/widget.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef WIDGET_H
-#define WIDGET_H
-
-#include <QGLWidget>
-
-#include "lyt/layout.h"
-#include "layoutgl/texturemanager.h"
-
-class LGLWidget : public QGLWidget
-{
- Q_OBJECT
-public:
- explicit LGLWidget(QWidget *parent = 0);
-
- void setLayout(LYTLayout *layout);
-
-protected:
- void initializeGL();
- void resizeGL(int w, int h);
- void paintGL();
-
- LYTLayout *m_layout;
-
- void renderPane(const LYTPane *pane, quint8 parentAlpha);
-
- void drawPicture(const LYTPicture *pic, quint8 effectiveAlpha);
- void drawWindow(const LYTWindow *wnd, quint8 effectiveAlpha);
-
- const LYTMaterial &getMaterial(const QString &materialName) {
- return *m_layout->materials.getMaterialByName(materialName);
- }
-
- void useMaterial(const QString &materialName);
- void useMaterial(const LYTMaterial &material);
-
- void drawQuad(float x, float y, float w, float h, const QVector<LYTTexCoords> &texCoords, const QColor *colours, uchar alpha);
- void drawQuad(float x, float y, float w, float h, int texCoordCount, const LYTTexCoords *texCoords, const QColor *colours, uchar alpha);
-
- void getTextureSize(const QString &materialName, float *w, float *h);
-
- void dealWithWindowFrame(LYTTexCoords &coords, const QString &materialName, int flipType,
- float pieceWidth, float pieceHeight,
- int rep1, int rep2, int rep3, int rep4);
-
- LGLTextureManager m_texMgr;
-
-signals:
-
-public slots:
-
-};
-
-#endif // WIDGET_H