xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
vertexarrayobject.cc
浏览该文件的文档.
2//
4
6 _gl glGenVertexArrays(1, &vao_);
7};
9 if (is_valid()) _gl glDeleteVertexArrays(1, &vao_);
10 vao_ = 0;
11};
13 _gl glBindVertexArray(vao_);
14};
16 _gl glBindVertexArray(0);
17};
18
20xcal::render::opengl::GL::VertexArrayObject::operator=(VertexArrayObject &&o) {
21 std::swap(vao_, o.vao_);
22 return *this;
23}
25 VertexArrayObject &&o) {
26 std::swap(vao_, o.vao_);
27}