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: 70125e7fac2d8727e866480debf8b64750da8ebe (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();
  };
}