Big reorganization
This commit is contained in:
parent
b903eced97
commit
44fb4197ca
11 changed files with 45 additions and 40 deletions
8
gl/gl.qrc
Normal file
8
gl/gl.qrc
Normal 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
31
qt/fstl.pro
Normal 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
5
qt/qt.qrc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="qt/">
|
||||||
|
<file>style.qss</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
30
src/fstl.pro
30
src/fstl.pro
|
@ -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
|
|
|
@ -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>
|
|
|
@ -11,7 +11,7 @@ Window::Window(QWidget *parent) :
|
||||||
{
|
{
|
||||||
setWindowTitle("fstl");
|
setWindowTitle("fstl");
|
||||||
|
|
||||||
QFile styleFile( ":/style.qss" );
|
QFile styleFile( ":/qt/style.qss" );
|
||||||
styleFile.open( QFile::ReadOnly );
|
styleFile.open( QFile::ReadOnly );
|
||||||
setStyleSheet(styleFile.readAll());
|
setStyleSheet(styleFile.readAll());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue