Euphoria
buffer2d.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "render/buffer.h"
4 
5 namespace eu::core
6 {
7  struct BufferBuilder2;
8 }
9 
10 namespace eu::render
11 {
12  struct Buffer2d
13  {
14  public:
15  Buffer2d(const core::BufferBuilder2& bb);
16 
17  void
18  draw() const;
19 
20  private:
21  int index_count;
22  VertexBuffer vbo;
23  PointLayout vao;
24  IndexBuffer ebo;
25  };
26 
27 }
Buffer2d(const core::BufferBuilder2 &bb)
Definition: buffer2d.cc:11
void draw() const
Definition: buffer2d.cc:32
Reuses points.
Definition: buffer.h:64
Stores what the data in the vertex_buffer is and how it is laid out/used Represents a OpenGL Vertex A...
Definition: buffer.h:34
Stores vertices, uv, etc.
Definition: buffer.h:13