diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-11-30 12:05:02 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:47:43 +0300 |
commit | 9ce0961712eb176b2f02b761c6e4e8491270e73b (patch) | |
tree | e0371021e3a62d0c0210335b660251f7dd787956 /graphics/render_target.hpp | |
parent | bdb3c27342f5e1c1bbf8227f2b541b61eb7fa445 (diff) |
refactored coordinate system setting.
Diffstat (limited to 'graphics/render_target.hpp')
-rw-r--r-- | graphics/render_target.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/graphics/render_target.hpp b/graphics/render_target.hpp index 7ef18ce2a0..a145f62ce8 100644 --- a/graphics/render_target.hpp +++ b/graphics/render_target.hpp @@ -1,15 +1,18 @@ #pragma once +#include "../base/matrix.hpp" + namespace graphics { class RenderTarget { public: - virtual ~RenderTarget() {} - /// attach render target to framebuffer and setup coordinate system + virtual ~RenderTarget(); virtual unsigned int id() const = 0; + /// attach render target to framebuffer and setup coordinate system virtual void attachToFrameBuffer() = 0; virtual void detachFromFrameBuffer() = 0; + virtual void coordMatrix(math::Matrix<float, 4, 4> & m); virtual unsigned width() const = 0; virtual unsigned height() const = 0; }; |