MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / RenderTarget

Class RenderTarget

engine/src/rendertarget.h:18–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include "vector.h"
17
18class RenderTarget {
19public:
20 int width;
21 int height;
22 bool hasdepthbuffer;
23 unsigned int fbo;
24 unsigned int rbo_depth;
25 unsigned int fbo_texture;
26
27 RenderTarget(){};
28 ~RenderTarget(){};
29
30 void Create(int w, int h, bool hasdepth);
31 void Clear(float r, float g, float b, float a);
32 void Resize(int w, int h);
33 void Delete();
34};
35
36void DrawFullscreenQuad(RenderTarget dst, RenderTarget src,
37 unsigned int shader);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected