Blamite Game Engine - blam!  00285.12.18.20.1411.blamite
The core library for the Blamite Game Engine.
BlamRendering::OpenGL Namespace Reference

Namespace containing functions exclusive to OpenGL. More...

Functions

BLAM void LoadShaders ()
 
BLAM void LoadShaderPrograms ()
 
BLAM void CompileShaders ()
 
BLAM void CleanupShaders ()
 
BLAM void CleanupShaderPrograms ()
 
BLAM void LinkAllShaderPrograms ()
 
BLAM void LinkShaderProgram (std::string id)
 
BLAM BlamGLSLShaderGetShader (std::string id)
 
BLAM BlamGLSLShaderProgramGetShaderProgram (std::string id)
 
BLAM BlamResult Initialize ()
 Initializes OpenGL. More...
 
BLAM void RenderLoop ()
 Renders a frame to the application window. More...
 
BLAM void Shutdown ()
 Shuts down OpenGL. More...
 
BLAM SDL_GLContext * GetGLContext ()
 Retrieves the current OpenGL context. More...
 

Detailed Description

Namespace containing functions exclusive to OpenGL.

Function Documentation

◆ CleanupShaderPrograms()

void BlamRendering::OpenGL::CleanupShaderPrograms ( )

◆ CleanupShaders()

void BlamRendering::OpenGL::CleanupShaders ( )

◆ CompileShaders()

void BlamRendering::OpenGL::CompileShaders ( )

◆ GetGLContext()

SDL_GLContext * BlamRendering::OpenGL::GetGLContext ( )

Retrieves the current OpenGL context.

Returns
Pointer to the current OpenGL context.

◆ GetShader()

BlamGLSLShader * BlamRendering::OpenGL::GetShader ( std::string  id)

◆ GetShaderProgram()

BlamGLSLShaderProgram * BlamRendering::OpenGL::GetShaderProgram ( std::string  id)

◆ Initialize()

BlamResult BlamRendering::OpenGL::Initialize ( )

Initializes OpenGL.

Returns
#BlamResult::OK if init was successful, otherwise will return a negative BlamResult.

◆ LinkAllShaderPrograms()

void BlamRendering::OpenGL::LinkAllShaderPrograms ( )

◆ LinkShaderProgram()

void BlamRendering::OpenGL::LinkShaderProgram ( std::string  id)

◆ LoadShaderPrograms()

void BlamRendering::OpenGL::LoadShaderPrograms ( )

◆ LoadShaders()

void BlamRendering::OpenGL::LoadShaders ( )

◆ RenderLoop()

void BlamRendering::OpenGL::RenderLoop ( )

Renders a frame to the application window.

◆ Shutdown()

void BlamRendering::OpenGL::Shutdown ( )

Shuts down OpenGL.