mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 14:43:43 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
36
drape/gl_extensions_list.hpp
Normal file
36
drape/gl_extensions_list.hpp
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user