Dandelion 2.0.0
A light-weight 3D builder for educational usage
载入中...
搜索中...
未找到
GL::DrawableLineSet结构体 参考

保存 GPU 所需几何数据的渲染线条集。 更多...

#include <gl.hpp>

Public 成员函数

 DrawableLineSet ()
 DrawableLineSet (const DrawableLineSet &other)=delete
DrawableLineSetoperator= (const DrawableLineSet &other)=delete
void clear () noexcept
void to_gpu () const

Public 属性

VertexArrayObject VAO
ArrayBuffer< float, 3 > positions
ElementArrayBuffer< 2 > lines

详细描述

保存 GPU 所需几何数据的渲染线条集。

DrawableLineSet 类似 DrawableMesh 但更简单,只有简单的顶点坐标和线条。

构造及析构函数说明

◆ DrawableLineSet() [1/2]

DrawableLineSet::DrawableLineSet ( )

默认构造一个空的 DrawableSet ,只在 VAO 中记录 VBO 的绑定。

◆ DrawableLineSet() [2/2]

GL::DrawableLineSet::DrawableLineSet ( const DrawableLineSet & other)
delete

禁止拷贝构造。

成员函数说明

◆ clear()

void DrawableLineSet::clear ( )
noexcept

清空内存数据副本。

◆ operator=()

DrawableLineSet & GL::DrawableLineSet::operator= ( const DrawableLineSet & other)
delete

禁止拷贝赋值。

◆ to_gpu()

void DrawableLineSet::to_gpu ( ) const

将顶点和索引数据复制到显存。

类成员变量说明

◆ lines

ElementArrayBuffer<2> GL::DrawableLineSet::lines

线段顶点索引。

◆ positions

ArrayBuffer<float, 3> GL::DrawableLineSet::positions

顶点坐标。

◆ VAO

VertexArrayObject GL::DrawableLineSet::VAO

OpenGL VAO 对象。


该结构体的文档由以下文件生成: