Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
32
libs/drape/gl_extensions_list.hpp
Normal file
32
libs/drape/gl_extensions_list.hpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#pragma once
|
||||
|
||||
#include "drape/drape_global.hpp"
|
||||
|
||||
#include "base/macros.hpp"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace dp
|
||||
{
|
||||
class GLExtensionsList
|
||||
{
|
||||
public:
|
||||
enum ExtensionName
|
||||
{
|
||||
MapBuffer,
|
||||
};
|
||||
|
||||
GLExtensionsList() = default;
|
||||
void Init();
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue