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
9class GLBuffer;
10class VertexFormat;
11
13{
14public:
16 virtual ~GLVertexArray();
17
18 void bind();
19
20 void build(const VertexFormat& fmt, GLBuffer& vbo);
21
22private:
23 GLuint handle;
24};
Definition: GLBuffer.h:11
Definition: GLVertexArray.h:13
顶点格式布局.
Definition: VertexFormat.h:15