blob: c5fb4dfc1bffaa9cf83e2e6658705807a1a55434 (
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
|
#pragma once
#include "drape/drape_global.hpp"
#include "base/macros.hpp"
#include <map>
#include <string>
namespace dp
{
class GLExtensionsList
{
public:
enum ExtensionName
{
VertexArrayObject,
MapBuffer,
UintIndices,
MapBufferRange
};
GLExtensionsList() = default;
void Init(dp::ApiVersion apiVersion);
bool IsSupported(ExtensionName extName) const;
private:
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
|