Freegult 使用
Freegult编译
Freegult 下载
编译
-
编译环境: CMake3.28.0-rc3 GUI + VS2015
-
编译版本:Releases v3.4.0
-
解压缩后文件 README.cmake 说明了编译方法
-
编译64位
-
编译32位
简单用法
QCustomPlot + freeglut
- QCustomPlot 使用OpenGL需要打开宏 QCUSTOMPLOT_USE_OPENGL 且加载freeglut、opengl32库。
DEFINES += QCUSTOMPLOT_USE_OPENGL
HEADERS += \
$$PWD/qcustomplot.h
SOURCES += \
$$PWD/qcustomplot.cpp
contains(DEFINES, QCUSTOMPLOT_USE_OPENGL){ # opengl 使用 freeglt 库
INCLUDEPATH += $$PWD/freeglut/inc
win32 {
contains(QT_ARCH, i386) {
LIBS += -L$$PWD/freeglut/x86 -lfreeglut_static
} else {
LIBS += -L$$PWD/freeglut/x64 -lfreeglut_static
}
LIBS += -lopengl32
}
}