TDME2 1.9.121
FrameBufferRenderShader.h
Go to the documentation of this file.
1#pragma once
2
3#include <tdme/tdme.h>
6
8
9/**
10 * Frame buffer render shader
11 * @author Andreas Drewke
12 * @version $Id$
13 */
15{
16
17private:
18 Renderer* renderer { nullptr };
19 int32_t vertexShaderId { -1 };
20 int32_t fragmentShaderId { -1 };
21 int32_t programId { -1 };
24 int32_t vboVertices { -1 };
25 int32_t vboTextureCoordinates {-1 };
28
29public:
30 /**
31 * Public constructor
32 * @param renderer renderer
33 */
35
36 /**
37 * Public destructor
38 */
40
41 /**
42 * @return if initialized and ready to use
43 */
44 bool isInitialized();
45
46 /**
47 * Initialize
48 */
49 void initialize();
50
51 /**
52 * Use render program
53 */
54 void useProgram();
55
56 /**
57 * Un use render program
58 */
59 void unUseProgram();
60
61 /**
62 * @return vertices VBO
63 */
64 inline int32_t getVBOVertices() {
65 return vboVertices;
66 }
67
68 /**
69 * @return texture coordinates VBO
70 */
71 inline int32_t getVBOTextureCoordinates() {
73 }
74
75};