TurtleBrains  0.3.1
High quality, portable, C++ framework for rapid 2D game development.
tb_render_target.h
1 
11 #ifndef _TurtleBrains_RenderTarget_h_
12 #define _TurtleBrains_RenderTarget_h_
13 
14 #include "tb_texture_manager.h" //For PixelSpace and TextureHandle types.
15 
16 namespace TurtleBrains
17 {
18  namespace Graphics
19  {
25  {
26  public:
31  RenderTarget(const PixelSpace& targetWidth, const PixelSpace& targetHeight);
32 
36  ~RenderTarget(void);
37 
46  void BindRenderTarget(void) const;
47 
51  void UnbindRenderTarget(void) const;
52 
58 
62  PixelSpace GetWidth(void) const;
63 
67  PixelSpace GetHeight(void) const;
68 
72  float GetAspectRatio(void) const;
73 
74  private:
75  PixelSpace mTargetWidth;
76  PixelSpace mTargetHeight;
77  unsigned int mDepthRenderBufferObject;
78  unsigned int mFrameBufferObject;
79  TextureHandle mRenderTexture;
80  };
81 
82  }; /* namespace Graphics */
83 }; /* namespace TurtleBrains */
84 
86 
87 #endif /* _TurtleBrains_RenderTarget_h_ */
RenderTarget(const PixelSpace &targetWidth, const PixelSpace &targetHeight)
Give the GameScene and Entities something to display, Text, Sprites and AnimatedSprites help bring th...
Definition: tb_render_target.h:24
Definition: tb_noncopyable.h:22
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
tbCore::uint32 TextureHandle
Definition: tb_texture_manager.h:43
tbCore::uint16 PixelSpace
Definition: tb_texture_manager.h:35
PixelSpace GetHeight(void) const
PixelSpace GetWidth(void) const
tbGraphics::TextureHandle GetTextureHandle(void) const