diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-11-15 23:58:45 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:47:04 +0300 |
commit | c34b0b50e13e286abafe8351475670b47937c3dc (patch) | |
tree | e6b3b3da8f53e09830b7fa75f91e37860e4380f1 /graphics/render_target.hpp | |
parent | 96973c8454e4926937da147217fcd6f081f85300 (diff) |
separated OpenGL-dependent classes into separate namespace for better modularity and easier porting.
Diffstat (limited to 'graphics/render_target.hpp')
-rw-r--r-- | graphics/render_target.hpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/graphics/render_target.hpp b/graphics/render_target.hpp index 100ba7b78c..7ef18ce2a0 100644 --- a/graphics/render_target.hpp +++ b/graphics/render_target.hpp @@ -2,18 +2,15 @@ namespace graphics { - namespace gl + class RenderTarget { - class RenderTarget - { - public: - virtual ~RenderTarget() {} - /// attach render target to framebuffer and setup coordinate system - virtual unsigned int id() const = 0; - virtual void attachToFrameBuffer() = 0; - virtual void detachFromFrameBuffer() = 0; - virtual unsigned width() const = 0; - virtual unsigned height() const = 0; - }; - } + public: + virtual ~RenderTarget() {} + /// attach render target to framebuffer and setup coordinate system + virtual unsigned int id() const = 0; + virtual void attachToFrameBuffer() = 0; + virtual void detachFromFrameBuffer() = 0; + virtual unsigned width() const = 0; + virtual unsigned height() const = 0; + }; } |