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

RenderContext.hpp « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1ace05950d6d3cc2d84e78c2effc741b578bd6b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once

#include <OpenGLES/EAGL.h>
#include <OpenGLES/ES1/gl.h>
#include <OpenGLES/ES1/glext.h>

#include "../../../graphics/opengl/gl_render_context.hpp"
#include "../../../std/shared_ptr.hpp"


namespace iphone
{
  class RenderContext : public graphics::gl::RenderContext
  {
	private:
		/// Pointer to render context.
		EAGLContext * m_context;
	public:
		/// Create rendering context.
		RenderContext();
		/// Create shared render context.
		RenderContext(RenderContext * renderContext);
		/// Destroy render context
		~RenderContext();
		/// Make this rendering context current
		void makeCurrent();
		/// create a shared render context
    graphics::RenderContext * createShared();

  	EAGLContext * getEAGLContext();
  };
}