Ai
1 Star 1 Fork 0

DGuco/qtproject

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
roundedbox.h 596 Bytes
一键复制 编辑 原始数据 按行查看 历史
DGuco 提交于 2023-02-24 16:40 +08:00 . 修改着色器程序
#ifndef ROUNDEDBOX_H
#define ROUNDEDBOX_H
//#include <GL/glew.h>
#include "glextensions.h"
#include <QtWidgets>
#include <QtOpenGL>
#include "gltrianglemesh.h"
#include <QtGui/qvector3d.h>
#include <QtGui/qvector2d.h>
#include "glbuffers.h"
struct P3T2N3Vertex
{
QVector3D position;
QVector3D texCoord;
QVector3D normal;
};
#define VERTEX_COLOR QVector4D(1.0f,1.0f,1.0f,0.0f)
class GLRoundedBox : public GLTriangleMesh<P3T2N3Vertex, unsigned short>
{
public:
// 0 < r < 0.5, 0 <= n <= 125
explicit GLRoundedBox(float r = 0.25f, float scale = 1.0f, int n = 10);
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/DGuco/qtproject.git
git@gitee.com:DGuco/qtproject.git
DGuco
qtproject
qtproject
master

搜索帮助