Untitled Game engine no.5  1.0
RenderTag.hpp
1 //
2 // Created by jibbo on 4/11/21.
3 //
4 
5 #ifndef ENGINE_PROJ_RENDERTAG_H
6 #include "Buffer.hpp"
7 #include "Shader.hpp"
8 
9 #define ENGINE_PROJ_RENDERTAG_H
10 
11 namespace Engine {
12  enum DrawType {
13  POINTS,
14  LINES,
15  LINE_STRIP,
16  LINE_LOOP,
17  QUADS,
18  QUAD_STRIP,
19  TRIANGLES,
20  TRIANGLE_STRIP,
21  TRIANGLE_FAN
22  };
23 
24  enum ViewProjection {
25  PROJECTION,
26  ORTHO,
27  UI
28  };
29 
30 
31  struct RenderTag {
32  BufferLayout layout;
33  Ref<Shader> shader;
34  DrawType dtype;
35  };
36 }
37 
38 #endif //ENGINE_PROJ_RENDERTAG_H
Engine::BufferLayout
Constructs the layout of a vertex buffer.
Definition: Buffer.hpp:58
Engine::Ref
std::shared_ptr< T > Ref
Has stuff for making references a lot more easily shared smart pointer.
Definition: Base.hpp:21
Engine::RenderTag
Definition: RenderTag.hpp:31
Engine
Definition: Animation.hpp:14