Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2015-05-15 13:26:04 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:48:11 +0300
commit5e4b0bbd6e7e44f5e5e26709f34a02cbf6718c11 (patch)
tree677a203b1ca40b273173c83b9b491124b928b7cd /iphone/Maps/Classes/RenderBuffer.hpp
parentaeec75b70e2eee9156717090eb4c887582392820 (diff)
[iOS] Source code formatting.
Diffstat (limited to 'iphone/Maps/Classes/RenderBuffer.hpp')
-rw-r--r--iphone/Maps/Classes/RenderBuffer.hpp41
1 files changed, 21 insertions, 20 deletions
diff --git a/iphone/Maps/Classes/RenderBuffer.hpp b/iphone/Maps/Classes/RenderBuffer.hpp
index 12ec903cee..3226e98a89 100644
--- a/iphone/Maps/Classes/RenderBuffer.hpp
+++ b/iphone/Maps/Classes/RenderBuffer.hpp
@@ -6,33 +6,34 @@
@class CAEAGLLayer;
-namespace iphone
+namespace iphone
{
- class RenderBuffer : public graphics::RenderTarget
- {
- private:
- unsigned int m_id;
- shared_ptr<RenderContext> m_renderContext;
- int m_width;
- int m_height;
+class RenderBuffer : public graphics::RenderTarget
+{
+private:
+ unsigned int m_id;
+ shared_ptr<RenderContext> m_renderContext;
+ int m_width;
+ int m_height;
- public:
+public:
+ RenderBuffer(shared_ptr<RenderContext> renderContext, CAEAGLLayer * layer);
+ RenderBuffer(shared_ptr<RenderContext> renderContext, int width, int height);
+ ~RenderBuffer();
- RenderBuffer(shared_ptr<RenderContext> renderContext, CAEAGLLayer * layer);
- ~RenderBuffer();
+ void makeCurrent();
- void makeCurrent();
+ unsigned int id() const;
- unsigned int id() const;
+ void present();
- void present();
+ unsigned width() const;
+ unsigned height() const;
- unsigned width() const;
- unsigned height() const;
+ void attachToFrameBuffer();
+ void detachFromFrameBuffer();
+ void coordMatrix(math::Matrix<float, 4, 4> & m);
+};
- void attachToFrameBuffer();
- void detachFromFrameBuffer();
- void coordMatrix(math::Matrix<float, 4, 4> & m);
- };
}