xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
xcal
render
impl
opengl
gl
vertexarrayobject.hpp
浏览该文件的文档.
1
#pragma once
2
#include <
xcal/public.h
>
3
4
#include <
xcal/render/impl/opengl/core/typedef.hpp
>
5
6
namespace
xcal::render::opengl::GL
{
7
class
XCAL_API
VertexArrayObject
{
8
friend
class ::xcal::render::opengl::object::Object;
9
10
VertexArrayObject
(
const
VertexArrayObject
&) =
delete
;
11
VertexArrayObject
(
VertexArrayObject
&&o);
12
VertexArrayObject
&operator=(
const
VertexArrayObject
&) =
delete
;
13
VertexArrayObject
&operator=(
VertexArrayObject
&&o);
14
15
private
:
16
gl::GLuint
vao_ = 0;
17
18
public
:
19
VertexArrayObject
();
20
~VertexArrayObject
();
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
xcal::render::opengl::GL::VertexArrayObject
Definition
vertexarrayobject.hpp:7
xcal::render::opengl::GL::VertexArrayObject::is_valid
bool is_valid() const
Definition
vertexarrayobject.hpp:26
xcal::render::opengl::GL::VertexArrayObject::swap
void swap(VertexArrayObject &o)
Definition
vertexarrayobject.hpp:29
xcal::render::opengl::GL::VertexArrayObject::VertexArrayObject
VertexArrayObject(gl::GLuint vao)
Definition
vertexarrayobject.hpp:21
gl::GLuint
unsigned int GLuint
Definition
typedef.hpp:21
xcal::render::opengl::GL
Definition
rendercommand.hpp:7
public.h
XCAL_API
#define XCAL_API
Definition
public.h:69
typedef.hpp
生成于 2025年 九月 19日 星期五 21:12:12 , 为 xcal使用
1.9.8