资源简介
QT5.7+OPENGL画正方体,实现鼠标对正方体的的交互,对于OpenGL和QT的初学者有一定的帮助

代码片段和文件信息
/****************************************************************************
** meta object code from reading C++ file ‘cubeglwidget.h‘
**
** Created by: The Qt meta object Compiler version 67 (Qt 5.7.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include “../../QT_OpenGL_Cube/cubeglwidget.h“
#include
#include tatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error “The header file ‘cubeglwidget.h‘ doesn‘t include ject>.“
#elif Q_MOC_OUTPUT_REVISION != 67
#error “This file was generated using the moc from 5.7.0. It“
#error “cannot be used with the include files from this version of Qt.“
#error “(The moc has changed too much.)“
#endif
QT_BEGIN_MOC_NAMESPACE
struct qt_meta_stringdata_CubeGLWidget_t {
QByteArrayData data[1];
char stringdata0[13];
};
#define QT_MOC_LITERAL(idx ofs len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len \
qptrdiff(offsetof(qt_meta_stringdata_CubeGLWidget_t stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_CubeGLWidget_t qt_meta_stringdata_CubeGLWidget = {
{
QT_MOC_LITERAL(0 0 12) // “CubeGLWidget“
}
“CubeGLWidget“
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_CubeGLWidget[] = {
// content:
7 // revision
0 // classname
0 0 // classinfo
0 0 // methods
0 0 // properties
0 0 // enums/sets
0 0 // constructors
0 // flags
0 // signalCount
0 // eod
};
void CubeGLWidget::qt_static_metacall(Qobject *_o Qmetaobject::Call _c int _id void **_a)
{
Q_UNUSED(_o);
Q_UNUSED(_id);
Q_UNUSED(_c);
Q_UNUSED(_a);
}
const Qmetaobject CubeGLWidget::staticmetaobject = {
{ &QOpenGLWidget::staticmetaobject qt_meta_stringdata_CubeGLWidget.data
qt_meta_data_CubeGLWidget qt_static_metacall Q_NULLPTR Q_NULLPTR}
};
const Qmetaobject *CubeGLWidget::metaobject() const
{
return Qobject::d_ptr->metaobject ? Qobject::d_ptr->dynamicmetaobject() : &staticmetaobject;
}
void *CubeGLWidget::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!strcmp(_clname qt_meta_stringdata_CubeGLWidget.stringdata0))
return static_cast(const_cast< CubeGLWidget*>(this));
if (!strcmp(_clname “QOpenGLFunctions“))
return static_cast< QOpenGLFunctions*>(const_cast< CubeGLWidget*>(this));
return QOpenGLWidget::qt_metacast(_clname);
}
int CubeGLWidget::qt_metacall(Qmetaobject::Call _c int _id void **_a)
{
_id = QOpenGLWidget::qt_metacall(_c _id _a);
if (_id < 0)
return _id;
return _id;
}
QT_END_MOC_NAMESPACE
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-04-09 10:27 QT_OpenGL_Cube\
目录 0 2018-04-10 15:45 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\
目录 0 2018-04-09 10:27 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\debug\
文件 26260 2018-04-09 06:31 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\Makefile
文件 151991 2018-04-09 06:31 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\Makefile.Debug
文件 152046 2018-04-09 06:31 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\Makefile.Release
目录 0 2018-04-10 15:45 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\release\
文件 83887 2018-04-10 15:58 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\release\cubeglwidget.obj
文件 66407 2018-04-10 15:47 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\release\main.obj
文件 116531 2018-04-10 15:54 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\release\mainwindow.obj
文件 2907 2018-04-10 15:45 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\release\moc_cubeglwidget.cpp
文件 67225 2018-04-10 15:45 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\release\moc_cubeglwidget.obj
文件 2733 2018-04-10 15:45 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\release\moc_mainwindow.cpp
文件 66527 2018-04-10 15:45 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\release\moc_mainwindow.obj
文件 33792 2018-04-10 15:58 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\release\QT_OpenGL_Cube.exe
文件 1329 2018-04-09 10:34 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\ui_cubeglwidget.h
文件 2513 2018-04-10 15:54 QT_OpenGL_Cube\build-QT_OpenGL_Cube-Desktop_Qt_5_7_0_MSVC2013_64bit-Release\ui_mainwindow.h
目录 0 2018-04-10 16:01 QT_OpenGL_Cube\QT_OpenGL_Cube\
文件 3730 2018-04-10 15:58 QT_OpenGL_Cube\QT_OpenGL_Cube\cubeglwidget.cpp
文件 702 2018-04-10 15:26 QT_OpenGL_Cube\QT_OpenGL_Cube\cubeglwidget.h
文件 232 2018-04-10 15:47 QT_OpenGL_Cube\QT_OpenGL_Cube\main.cpp
文件 233 2018-04-09 09:06 QT_OpenGL_Cube\QT_OpenGL_Cube\mainwindow.cpp
文件 313 2018-04-09 09:06 QT_OpenGL_Cube\QT_OpenGL_Cube\mainwindow.h
文件 1412 2018-04-10 15:54 QT_OpenGL_Cube\QT_OpenGL_Cube\mainwindow.ui
文件 433 2018-04-10 15:48 QT_OpenGL_Cube\QT_OpenGL_Cube\QT_OpenGL_Cube.pro
文件 23947 2018-04-10 16:01 QT_OpenGL_Cube\QT_OpenGL_Cube\QT_OpenGL_Cube.pro.user
相关资源
- OpenGL参考手册
- Qt Creator opengl实现四元数鼠标控制轨迹
- OpenGL文档,api大全,可直接查询函数
- opengl轮廓字体源代码
- MFC读三维模型obj文件
- 利用OpenGL写毛笔字算法
- MFC中OpenGL面和体的绘制以及动画效果
- 基于OPENGL的光线跟踪源代码368758
- VC 实现三维旋转(源码)
- 自编用openGL实现3D分形树,分形山
- OpenGL球形贴图自旋程序
- OpenGL导入贴图的Texture类
- 计算机图形学(openGL)代码
- 用OpenGL开发的机械臂运动仿真程序(
- OpenGL-3D坦克模拟
- OPENGL实现世界上最小的3D游戏
- VS2012OpenGL配置所需要的全部libdllh文件
- 基于OpenGL的仿蝗虫机器人三维动态仿
- 图形学 - OpenGL实现3种三维茶壶显示源
- opengl程序-会跳舞的骷髅
- opengl实现三维网格光顺Laplacian算法
- opengl——爆炸
- OpenGL三维地形建模
- opengl游戏编程徐明亮版(含源码)
- 用OPENGL画的一个简单的直升飞机
- opengl完美天空盒
- 3D绘图程序设计:使用Direct3D 10/9和Ope
- OpenGL绘制可运动自行车源程序.zip
- OpenGL实现飘动效果
- opengl室内场景的绘制,包括碰撞检测
评论
共有 条评论