Ocular Engine
RenderTexture.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_GRAPHICS_RENDER_TEXTURE__H__
19 #define __H__OCULAR_GRAPHICS_RENDER_TEXTURE__H__
20 
21 #include "Texture2D.hpp"
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Graphics
36  {
41  class RenderTexture : public Texture2D
42  {
43  public:
44 
45  RenderTexture(TextureDescriptor const& descriptor);
46  virtual ~RenderTexture();
47 
48  virtual void unload();
49  virtual void apply();
50  virtual void refresh();
51 
52  protected:
53 
54  private:
55  };
56  }
60 }
65 //------------------------------------------------------------------------------------------
66 
67 #endif
virtual void refresh()
Definition: RenderTexture.cpp:54
virtual void apply()
Definition: RenderTexture.cpp:49
Definition: Texture2D.hpp:45
A special texture that can be rendered directly to.
Definition: RenderTexture.hpp:41
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: TextureDescriptor.hpp:45
virtual void unload()
Definition: RenderTexture.cpp:44