| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "../RhiCapabilitiesBase.h" |
| 4 |
|
| 5 |
namespace nCine::RHI::GL |
| 6 |
{ |
| 7 |
/** |
| 8 |
@brief Runtime capabilities of the OpenGL family backend |
| 9 |
|
| 10 |
Queries the active OpenGL, OpenGL ES or WebGL context once at construction and caches the version |
| 11 |
numbers, information strings, integer limits and extension availability flags in |
| 12 |
@ref RhiCapabilitiesBase, so the rest of the renderer can look them up without further driver calls. |
| 13 |
*/ |
| 14 |
class GLRhiCapabilities : public RhiCapabilitiesBase |
| 15 |
{ |
| 16 |
public: |
| 17 |
GLRhiCapabilities(); |
| 18 |
|
| 19 |
private: |
| 20 |
/** @brief Checks availability of the specified OpenGL extensions */ |
| 21 |
void CheckGLExtensions(const char* extensionNames[], bool results[], std::uint32_t numExtensionsToCheck) const; |
| 22 |
}; |
| 23 |
} |