Graphics
v0.0.0
A simple abstraction layer for the modern graphics APIs.
载入中...
搜索中...
未找到
GLVertexArray.h
1
// Copyright 2022 ShenMian
2
// License(Apache-2.0)
3
4
#pragma once
5
6
#include <memory>
7
#include <glad/glad.h>
8
9
class
GLBuffer
;
10
class
VertexFormat
;
11
12
class
GLVertexArray
13
{
14
public
:
15
GLVertexArray
();
16
virtual
~GLVertexArray
();
17
18
void
bind();
19
20
void
build(
const
VertexFormat
& fmt,
GLBuffer
& vbo);
21
22
private
:
23
GLuint handle;
24
};
GLBuffer
Definition:
GLBuffer.h:11
GLVertexArray
Definition:
GLVertexArray.h:13
VertexFormat
顶点格式布局.
Definition:
VertexFormat.h:15
src
OpenGL
GLVertexArray.h
制作者
1.9.5