VAPOR3 3.9.4
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
VAPoR::GLManager Class Reference

Contains references to context scope OpenGL data. More...

#include <GLManager.h>

Public Types

enum class  Vendor {
  Intel , Nvidia , AMD , Mesa ,
  Other , Unknown
}
 

Public Member Functions

 GLManager ()
 
 ~GLManager ()
 
void PixelCoordinateSystemPush ()
 
void PixelCoordinateSystemPop ()
 
void ShowDepthBuffer ()
 

Static Public Member Functions

static std::vector< int > GetViewport ()
 
static glm::vec2 GetViewportSize ()
 
static Vendor GetVendor ()
 
static void GetGLVersion (int *major, int *minor)
 
static int GetGLSLVersion ()
 
static bool IsCurrentOpenGLVersionSupported ()
 
static bool CheckError ()
 
static void * BeginTimer ()
 
static double EndTimer (void *startTime)
 

Public Attributes

ShaderManagershaderManager
 
FontManagerfontManager
 
MatrixManagermatrixManager
 
LegacyGLlegacy
 

Detailed Description

Contains references to context scope OpenGL data.

Author
Stanislaw Jaroszynski

Definition at line 18 of file GLManager.h.

Member Enumeration Documentation

◆ Vendor

enum class VAPoR::GLManager::Vendor
strong
Enumerator
Intel 
Nvidia 
AMD 
Mesa 
Other 
Unknown 

Definition at line 38 of file GLManager.h.

Constructor & Destructor Documentation

◆ GLManager()

VAPoR::GLManager::GLManager ( )

◆ ~GLManager()

VAPoR::GLManager::~GLManager ( )

Member Function Documentation

◆ BeginTimer()

static void * VAPoR::GLManager::BeginTimer ( )
static

◆ CheckError()

static bool VAPoR::GLManager::CheckError ( )
static

◆ EndTimer()

static double VAPoR::GLManager::EndTimer ( void *  startTime)
static

◆ GetGLSLVersion()

static int VAPoR::GLManager::GetGLSLVersion ( )
static

◆ GetGLVersion()

static void VAPoR::GLManager::GetGLVersion ( int *  major,
int *  minor 
)
static

◆ GetVendor()

static Vendor VAPoR::GLManager::GetVendor ( )
static

◆ GetViewport()

static std::vector< int > VAPoR::GLManager::GetViewport ( )
static
Return values
vector<int>[4]from glGetIntegerv(GL_VIEWPORT)

◆ GetViewportSize()

static glm::vec2 VAPoR::GLManager::GetViewportSize ( )
static

◆ IsCurrentOpenGLVersionSupported()

static bool VAPoR::GLManager::IsCurrentOpenGLVersionSupported ( )
static

◆ PixelCoordinateSystemPop()

void VAPoR::GLManager::PixelCoordinateSystemPop ( )

◆ PixelCoordinateSystemPush()

void VAPoR::GLManager::PixelCoordinateSystemPush ( )

Utility function that pushes the current matrix state and sets up a pixel coorinate 2D orthographic projection

◆ ShowDepthBuffer()

void VAPoR::GLManager::ShowDepthBuffer ( )

Draws the depth buffer in the top right corner

Member Data Documentation

◆ fontManager

FontManager* VAPoR::GLManager::fontManager

Definition at line 20 of file GLManager.h.

◆ legacy

LegacyGL* VAPoR::GLManager::legacy

Definition at line 22 of file GLManager.h.

◆ matrixManager

MatrixManager* VAPoR::GLManager::matrixManager

Definition at line 21 of file GLManager.h.

◆ shaderManager

ShaderManager* VAPoR::GLManager::shaderManager

Definition at line 19 of file GLManager.h.


The documentation for this class was generated from the following file: