Rune Engine  Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
frameBuffer.h
1 
9 #pragma once
10 
11 #ifndef FRAMEBUFFER_H_DEFINED
12 #define FRAMEBUFFER_H_DEFINED
13 
14 #include "core.h"
15 #include <Math/vec2.h>
16 
17 namespace rune{
18 
19 class RUNE_ENGINE FrameBuffer
20 {
21 private:
22  unsigned int bufferID, colorAttachment;
23  int width, height;
24 
25 public:
27  FrameBuffer();
29  ~FrameBuffer();
31  void setSize(rune::Vec2 newSize);
33  rune::Vec2 getSize(void);
35  void invalidate();
37  void bind();
39  void unbind();
41  unsigned int getColorBuffer();
42 
43 };
44 
45 }//namespace rune
46 
47 #endif
rune::FrameBuffer
An off screen frame buffer that can be bound and rendered to.
Definition: frameBuffer.h:20
rune::Vec2
1 x 2 vector to be used for math.
Definition: vec2.h:20
rune
The main namespace to be used for interfacing with the engine.
Definition: animator.h:21