Files
cuber/cbt/opengl/vao.hpp
T
portersky b6adb7c23a style: move public members first in class declarations
- Reorder all class headers to put public interface before private members
- Document convention in AGENTS.md
2026-05-05 22:30:56 +02:00

28 lines
417 B
C++

#pragma once
#include "glad/glad.h"
namespace cbt::opengl {
class vao {
public:
vao();
~vao();
vao(vao const&) = delete;
vao& operator=(vao const&) = delete;
vao(vao&& other) noexcept;
vao& operator=(vao&& other) noexcept;
auto bind() const -> void;
auto unbind() const -> void;
auto id() const -> GLuint;
auto valid() const -> bool;
private:
GLuint m_id = 0;
};
}