xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
vertexarrayobject.hpp
浏览该文件的文档.
1#pragma once
2#include <xcal/public.h>
3
5
8 friend class ::xcal::render::opengl::object::Object;
9
10 VertexArrayObject(const VertexArrayObject &) = delete;
12 VertexArrayObject &operator=(const VertexArrayObject &) = delete;
14
15 private:
16 gl::GLuint vao_ = 0;
17
18 public:
21 explicit VertexArrayObject(gl::GLuint vao) : vao_(vao) {}
22
23 public:
24 void bind() const;
25 static void unbind();
26 bool is_valid() const { return vao_ != 0; };
27
28 public:
29 void swap(VertexArrayObject &o) { std::swap(vao_, o.vao_); }
30};
31} // namespace xcal::render::opengl::GL
unsigned int GLuint
Definition typedef.hpp:21
#define XCAL_API
Definition public.h:69