2011-04-27 10:05:43 +00:00
|
|
|
HEADERS += glwidget.h \
|
|
|
|
cube.h
|
|
|
|
SOURCES += glwidget.cpp \
|
|
|
|
main.cpp \
|
|
|
|
cube.cpp
|
|
|
|
RESOURCES += pbuffers.qrc
|
2011-05-07 21:50:03 +00:00
|
|
|
QT += opengl widgets
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
# install
|
2012-11-26 13:04:31 +00:00
|
|
|
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/pbuffers
|
2012-11-27 19:40:16 +00:00
|
|
|
INSTALLS += target
|
2011-04-27 17:16:41 +00:00
|
|
|
|
|
|
|
simulator: warning(This example might not fully work on Simulator platform)
|
2012-12-17 11:43:26 +00:00
|
|
|
|
|
|
|
contains(QT_CONFIG, opengles.) {
|
|
|
|
contains(QT_CONFIG, angle): \
|
|
|
|
warning("Qt was built with ANGLE, which provides only OpenGL ES 2.0 on top of DirectX 9.0c")
|
|
|
|
error("This example requires Qt to be configured with -opengl desktop")
|
|
|
|
}
|