2011-04-27 10:05:43 +00:00
|
|
|
HEADERS += glwidget.h
|
|
|
|
SOURCES += glwidget.cpp main.cpp
|
|
|
|
RESOURCES += framebufferobject2.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/framebufferobject2
|
2012-11-27 19:40:16 +00:00
|
|
|
INSTALLS += target
|
2011-04-27 10:05:43 +00:00
|
|
|
|
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")
|
|
|
|
}
|