资源简介
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
相关资源
- view3ds工具
- 鼠标获取OpenGL模型的坐标
- 计算机图形学——基于OpenGL绘制三维
- vs搭建OpenGL所需文件 & 简易天体运动源
- LIB3DS,OpenGL显示3DS文件
- freeglut-3.2.1.rar
- OPENGL三维绘图
- opengl开发库文件
- opengl雪花koch
- qt opengl 2d纹理到球面
- OpenGL实现机器人运动下蹲、起身、走
- OpenGL完整测试文件
- OpenGL绘制3D机器人
- 包含GlU32.Lib glut32.dll glut32.lib glut.dll
- gl/glext.h
- glutdlls37beta
- QT5.7.0实现面积计算小demo
- opengl所需的5个基本文件
- gltools/freeglut
- openGL中的glut库,32位和64位
- openGL期末大作业——行走的机器人
- OpenGL立方体带黑白格格纹理有光照可
- 计算机图形学OpenGL、codeblock、四连通
- opengl鼠标旋转,键盘缩放和平移
- opengl头文件glext.h
- 计算机图形学OpengL蔡士杰等译 随书代
- OPENGL室内三维效果
- YUV420在qt5下显示
- glut工具库
- 计算机图形学 交互实体模型
评论
共有 条评论