1
0

OpenGL3: New extension listing system

This commit is contained in:
numzero
2023-04-20 17:37:15 +03:00
committed by sfan5
parent 13680ef42d
commit 81ad195aa3
6 changed files with 43 additions and 26 deletions

View File

@@ -6,6 +6,8 @@
#pragma once
#include <unordered_set>
#include "EDriverFeatures.h"
#include "irrTypes.h"
#include "os.h"
@@ -28,6 +30,9 @@ namespace video
void initExtensionsOld();
void initExtensionsNew();
/// Checks whether a named extension is present
bool queryExtension(const std::string &name) const noexcept;
bool queryFeature(video::E_VIDEO_DRIVER_FEATURE feature) const
{
switch (feature)
@@ -160,8 +165,13 @@ namespace video
glBlendEquation(mode);
}
bool AnisotropicFilterSupported = false;
private:
void addExtension(const char *name);
void addExtension(std::string name);
void updateLegacyExtensionList();
std::unordered_set<std::string> Extensions;
};
}