blob: 928454ffcb71bd777558e1415dae38edffdf9930 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#import "iosOGLContext.h"
#import "../../../../drape/oglcontextfactory.hpp"
class iosOGLContextFactory: public dp::OGLContextFactory
{
public:
iosOGLContextFactory(CAEAGLLayer * layer);
~iosOGLContextFactory();
virtual dp::OGLContext * getDrawContext();
virtual dp::OGLContext * getResourcesUploadContext();
virtual bool isDrawContextCreated() const;
virtual bool isUploadContextCreated() const;
private:
CAEAGLLayer * m_layer;
iosOGLContext * m_drawContext;
iosOGLContext * m_uploadContext;
};
|