forked from cs123tas/projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCS123.pro
More file actions
192 lines (179 loc) · 5.47 KB
/
CS123.pro
File metadata and controls
192 lines (179 loc) · 5.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# -------------------------------------------------
# Project created by QtCreator 2010-08-22T14:12:19
# -------------------------------------------------
QT += opengl xml
TARGET = CS123
TEMPLATE = app
QMAKE_LFLAGS += -no-pie
QMAKE_CXXFLAGS += -std=c++14
CONFIG += c++14
unix:!macx {
LIBS += -lGLU
}
macx {
QMAKE_CFLAGS_X86_64 += -mmacosx-version-min=10.7
QMAKE_CXXFLAGS_X86_64 = $$QMAKE_CFLAGS_X86_64
CONFIG += c++11
}
win32 {
DEFINES += GLEW_STATIC
LIBS += -lopengl32 -lglu32
}
SOURCES += \
brush/Brush.cpp \
brush/ConstantBrush.cpp \
brush/LinearBrush.cpp \
brush/QuadraticBrush.cpp \
brush/SmudgeBrush.cpp \
camera/OrbitingCamera.cpp \
camera/CamtransCamera.cpp \
camera/QuaternionCamera.cpp \
filter/Filter.cpp \
filter/FilterBlur.cpp \
filter/FilterEdge.cpp \
filter/FilterGray.cpp \
filter/FilterScale.cpp \
scenegraph/Scene.cpp \
scenegraph/OpenGLScene.cpp \
scenegraph/ShapesScene.cpp \
scenegraph/SceneviewScene.cpp \
scenegraph/RayScene.cpp \
shapes/Barrel.cpp \
shapes/Cap.cpp \
shapes/Cone.cpp \
shapes/Cube.cpp \
shapes/Cylinder.cpp \
shapes/ExampleShape.cpp \
shapes/Shape.cpp \
shapes/Slant.cpp \
shapes/Sphere.cpp \
ui/Canvas2D.cpp \
ui/SupportCanvas2D.cpp \
ui/SupportCanvas3D.cpp \
ui/Settings.cpp \
ui/mainwindow.cpp \
ui/Databinding.cpp \
lib/CS123XmlSceneParser.cpp \
lib/ResourceLoader.cpp \
gl/shaders/Shader.cpp \
gl/GLDebug.cpp \
gl/datatype/VBOAttribMarker.cpp \
gl/datatype/VBO.cpp \
gl/datatype/IBO.cpp \
gl/datatype/VAO.cpp \
gl/datatype/FBO.cpp \
gl/textures/Texture.cpp \
gl/textures/Texture2D.cpp \
gl/textures/TextureParameters.cpp \
gl/textures/TextureParametersBuilder.cpp \
gl/textures/RenderBuffer.cpp \
gl/textures/DepthBuffer.cpp \
gl/shaders/CS123Shader.cpp \
gl/util/FullScreenQuad.cpp \
main.cpp \
glew-1.10.0/src/glew.c \
lib/RGBA.cpp
HEADERS += \
brush/Brush.h \
brush/ConstantBrush.h \
brush/LinearBrush.h \
brush/QuadraticBrush.h \
brush/SmudgeBrush.h \
camera/Camera.h \
camera/OrbitingCamera.h \
camera/CamtransCamera.h \
camera/QuaternionCamera.h \
filter/Filter.h \
filter/FilterBlur.h \
filter/FilterEdge.h \
filter/FilterGray.h \
filter/FilterScale.h \
scenegraph/RayBox.h \
scenegraph/Scene.h \
scenegraph/OpenGLScene.h \
scenegraph/ShapesScene.h \
scenegraph/SceneviewScene.h \
scenegraph/RayScene.h \
shapes/Barrel.h \
shapes/Cap.h \
shapes/Cone.h \
shapes/Cube.h \
shapes/Cylinder.h \
shapes/ExampleShape.h \
shapes/Shape.h \
shapes/Slant.h \
shapes/Sphere.h \
ui/Canvas2D.h \
ui/SupportCanvas2D.h \
ui/SupportCanvas3D.h \
ui/Settings.h \
ui/mainwindow.h \
ui/Databinding.h \
ui_mainwindow.h \
gl/shaders/Shader.h \
gl/GLDebug.h \
gl/shaders/ShaderAttribLocations.h \
gl/datatype/VBOAttribMarker.h \
gl/datatype/VBO.h \
gl/datatype/IBO.h \
gl/datatype/VAO.h \
gl/datatype/FBO.h \
gl/textures/Texture.h \
gl/textures/Texture2D.h \
gl/textures/TextureParameters.h \
gl/textures/TextureParametersBuilder.h \
gl/textures/RenderBuffer.h \
gl/textures/DepthBuffer.h \
gl/shaders/CS123Shader.h \
gl/util/FullScreenQuad.h \
lib/CS123XmlSceneParser.h \
lib/CS123SceneData.h \
lib/CS123ISceneParser.h \
lib/ResourceLoader.h \
glew-1.10.0/include/GL/glew.h \
lib/RGBA.h
FORMS += ui/mainwindow.ui
INCLUDEPATH += glm brush camera lib scenegraph ui glew-1.10.0/include
DEPENDPATH += glm brush camera lib scenegraph ui glew-1.10.0/include
DEFINES += _USE_MATH_DEFINES
DEFINES += TIXML_USE_STL
DEFINES += GLM_SWIZZLE GLM_FORCE_RADIANS
OTHER_FILES += shaders/shader.frag \
shaders/shader.vert \
shaders/wireframe/wireframe.vert \
shaders/wireframe/wireframe.frag \
shaders/normals/normals.vert \
shaders/normals/normals.gsh \
shaders/normals/normals.frag \
shaders/normals/normalsArrow.vert \
shaders/normals/normalsArrow.gsh \
shaders/normals/normalsArrow.frag \
shaders/deferredlighting/gbuffer/gbuffer.frag \
shaders/deferredlighting/gbuffer/gbuffer.vert \
shaders/deferredlighting/lighting/lighting.frag \
shaders/deferredlighting/lighting/lighting.vert \
shaders/deferredlighting/compositing/compositing.frag \
shaders/deferredlighting/compositing/compositing.vert
# Don't add the -pg flag unless you know what you are doing. It makes QThreadPool freeze on Mac OS X
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3
QMAKE_CXXFLAGS_WARN_ON -= -Wall
QMAKE_CXXFLAGS_WARN_ON += -Waddress -Warray-bounds -Wc++0x-compat -Wchar-subscripts -Wformat\
-Wmain -Wmissing-braces -Wparentheses -Wreorder -Wreturn-type \
-Wsequence-point -Wsign-compare -Wstrict-overflow=1 -Wswitch \
-Wtrigraphs -Wuninitialized -Wunused-label -Wunused-variable \
-Wvolatile-register-var -Wno-extra
QMAKE_CXXFLAGS += -g
# QMAKE_CXX_FLAGS_WARN_ON += -Wunknown-pragmas -Wunused-function -Wmain
macx {
QMAKE_CXXFLAGS_WARN_ON -= -Warray-bounds -Wc++0x-compat
}
RESOURCES += \
resources.qrc
DISTFILES += \
shaders/normals/normals.vert \
shaders/normals/normals.frag \
shaders/normals/normals.gsh \
shaders/normals/normalsArrow.gsh \
shaders/normals/normalsArrow.frag \
shaders/normals/normalsArrow.vert