blob: 507c10ec52d956f1a914527a9c5bfd563f89ab96 (
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
33
34
35
36
37
|
#pragma once
#include "drape/drape_global.hpp"
#include "base/macros.hpp"
#include <map>
#include <string>
namespace dp
{
class GLExtensionsList
{
public:
enum ExtensionName
{
VertexArrayObject,
TextureNPOT,
MapBuffer,
UintIndices,
MapBufferRange
};
static GLExtensionsList & Instance();
bool IsSupported(ExtensionName extName) const;
private:
GLExtensionsList(dp::ApiVersion apiVersion);
void CheckExtension(ExtensionName enumName, std::string const & extName);
void SetExtension(ExtensionName enumName, bool isSupported);
std::map<ExtensionName, bool> m_supportedMap;
DISALLOW_COPY_AND_MOVE(GLExtensionsList);
};
} // namespace dp
|