Big reorganization

This commit is contained in:
Matt Keeter 2014-03-13 06:17:51 -07:00
parent b903eced97
commit 44fb4197ca
11 changed files with 45 additions and 40 deletions

8
gl/gl.qrc Normal file
View file

@ -0,0 +1,8 @@
<RCC>
<qresource prefix="gl/">
<file>mesh.frag</file>
<file>mesh.vert</file>
<file>quad.frag</file>
<file>quad.vert</file>
</qresource>
</RCC>

31
qt/fstl.pro Normal file
View file

@ -0,0 +1,31 @@
QT += core gui opengl widgets
TARGET = fstl
TEMPLATE = app
SOURCES += \
../src/main.cpp\
../src/canvas.cpp \
../src/mesh.cpp \
../src/glmesh.cpp \
../src/loader.cpp \
../src/window.cpp \
../src/backdrop.cpp
HEADERS += \
../src/canvas.h \
../src/mesh.h \
../src/glmesh.h \
../src/loader.h \
../src/window.h \
../src/backdrop.h
CONFIG += c++11
RESOURCES += \
qt.qrc \
../gl/gl.qrc
QMAKE_INFO_PLIST = ../misc/Info.plist
ICON = ../misc/fstl.icns

5
qt/qt.qrc Normal file
View file

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="qt/">
<file>style.qss</file>
</qresource>
</RCC>

View file

@ -1,30 +0,0 @@
QT += core gui opengl widgets
TARGET = fstl
TEMPLATE = app
SOURCES += \
main.cpp\
canvas.cpp \
mesh.cpp \
glmesh.cpp \
loader.cpp \
window.cpp \
backdrop.cpp
HEADERS += \
canvas.h \
mesh.h \
glmesh.h \
loader.h \
window.h \
backdrop.h
CONFIG += c++11
RESOURCES += \
resources.qrc
QMAKE_INFO_PLIST = ../misc/Info.plist
ICON = ../misc/fstl.icns

View file

@ -1,9 +0,0 @@
<RCC>
<qresource prefix="/">
<file>gl/mesh.frag</file>
<file>gl/mesh.vert</file>
<file>gl/quad.frag</file>
<file>gl/quad.vert</file>
<file>style.qss</file>
</qresource>
</RCC>

View file

@ -11,7 +11,7 @@ Window::Window(QWidget *parent) :
{
setWindowTitle("fstl");
QFile styleFile( ":/style.qss" );
QFile styleFile( ":/qt/style.qss" );
styleFile.open( QFile::ReadOnly );
setStyleSheet(styleFile.readAll());