VAPOR3 3.9.4
GLManager.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace VAPoR {
7
8class LegacyGL;
9class FontManager;
10
17
23
26
29 static std::vector<int> GetViewport();
30 static glm::vec2 GetViewportSize();
31
37
38 enum class Vendor { Intel, Nvidia, AMD, Mesa, Other, Unknown };
39
40 static Vendor GetVendor();
41 static void GetGLVersion(int *major, int *minor);
42 static int GetGLSLVersion();
44 static bool CheckError();
45
46#ifndef NDEBUG
50#endif
51 static void * BeginTimer();
52 static double EndTimer(void *startTime);
53
54private:
55 static Vendor _cachedVendor;
56
57 void _queryVendor();
58};
59
60} // namespace VAPoR
Replements Legacy OpenGL API using OpenGL Core.
Definition: LegacyGL.h:27
Replaces the OpenGL matrix stack.
Definition: MatrixManager.h:27
Resource management class for shaders.
Definition: ShaderManager.h:18
#define RENDER_API
Definition: common.h:78
Contains references to context scope OpenGL data.
Definition: GLManager.h:18
static bool CheckError()
void PixelCoordinateSystemPush()
void PixelCoordinateSystemPop()
static void GetGLVersion(int *major, int *minor)
MatrixManager * matrixManager
Definition: GLManager.h:21
static glm::vec2 GetViewportSize()
void ShowDepthBuffer()
static Vendor GetVendor()
static std::vector< int > GetViewport()
LegacyGL * legacy
Definition: GLManager.h:22
FontManager * fontManager
Definition: GLManager.h:20
static bool IsCurrentOpenGLVersionSupported()
static void * BeginTimer()
ShaderManager * shaderManager
Definition: GLManager.h:19
static double EndTimer(void *startTime)
static int GetGLSLVersion()