File IndexBuffer.h
File List > buffers > IndexBuffer.h
Go to the documentation of this file
#pragma once
#include "Buffers.h"
class IndexBuffer : public Buffers
{
public:
IndexBuffer(const GLuint* data, GLuint size);
IndexBuffer() = default;
~IndexBuffer() = default;
IndexBuffer(const IndexBuffer& ibo);
IndexBuffer(IndexBuffer&& ibo) noexcept;
IndexBuffer& operator=(const IndexBuffer& ibo);
IndexBuffer& operator=(IndexBuffer&& ibo) noexcept;
public:
void Bind() const;
void Unbind() const;
GLuint Count() const;
GLuint GetID() const { return buf_ID; }
};