Tatooine
indexbuffer.h
Go to the documentation of this file.
1#ifndef TATOOINE_GL_INDEXBUFFER_H
2#define TATOOINE_GL_INDEXBUFFER_H
3//==============================================================================
4#include <initializer_list>
5#include <iostream>
6#include <vector>
7#include "buffer.h"
8#include "dllexport.h"
9#include "errorcheck.h"
10//==============================================================================
11namespace tatooine::gl {
12//==============================================================================
13class indexbuffer : public buffer<GL_ELEMENT_ARRAY_BUFFER, unsigned int> {
14 public:
17
19
21 DLL_API indexbuffer(const indexbuffer& other);
22 DLL_API indexbuffer(indexbuffer&& other);
23 DLL_API this_type& operator=(const this_type& other);
24 DLL_API this_type& operator=(this_type&& other);
25
27 DLL_API indexbuffer(GLsizei n, unsigned int initial,
29 DLL_API indexbuffer(const std::vector<unsigned int>& data,
31 DLL_API indexbuffer(std::initializer_list<unsigned int>&& list);
32};
33
34//==============================================================================
35} // namespace tatooine::gl
36//==============================================================================
37
38#endif
buffer base class for each of the OpenGL buffer types
Definition: buffer.h:405
Definition: indexbuffer.h:13
static const auto default_usage
Definition: indexbuffer.h:18
DLL_API indexbuffer(std::initializer_list< unsigned int > &&list)
DLL_API indexbuffer(buffer_usage usage=default_usage)
DLL_API indexbuffer(indexbuffer &&other)
DLL_API indexbuffer(const indexbuffer &other)
DLL_API indexbuffer(GLsizei n, unsigned int initial, buffer_usage usage=default_usage)
DLL_API indexbuffer(GLsizei n, buffer_usage usage=default_usage)
DLL_API this_type & operator=(const this_type &other)
DLL_API this_type & operator=(this_type &&other)
DLL_API indexbuffer(const std::vector< unsigned int > &data, buffer_usage usage=default_usage)
Definition: ansiformat.h:6
buffer_usage
Definition: buffer_usage.h:8