openMSX
Public Member Functions | Public Attributes | List of all members
gl::Context Struct Reference

#include <GLContext.hh>

Collaboration diagram for gl::Context:
Collaboration graph
[legend]

Public Member Functions

 Context ()
 Initialize global openGL state.
 
 ~Context ()
 
openmsx::GLScalergetFallbackScaler ()
 
void setupMvpMatrix (gl::vec2 logicalSize)
 

Public Attributes

ShaderProgram progTex
 
GLint unifTexColor
 
GLint unifTexMvp
 
ShaderProgram progFill
 
GLint unifFillMvp
 
mat4 pixelMvp
 

Detailed Description

Definition at line 13 of file GLContext.hh.

Constructor & Destructor Documentation

◆ Context()

gl::Context::Context ( )

◆ ~Context()

gl::Context::~Context ( )
default

Member Function Documentation

◆ getFallbackScaler()

openmsx::GLScaler & gl::Context::getFallbackScaler ( )

Definition at line 41 of file GLContext.cc.

◆ setupMvpMatrix()

void gl::Context::setupMvpMatrix ( gl::vec2  logicalSize)

Definition at line 49 of file GLContext.cc.

References gl::ortho(), and pixelMvp.

Member Data Documentation

◆ pixelMvp

mat4 gl::Context::pixelMvp

Definition at line 45 of file GLContext.hh.

Referenced by setupMvpMatrix().

◆ progFill

ShaderProgram gl::Context::progFill

Definition at line 39 of file GLContext.hh.

Referenced by Context().

◆ progTex

ShaderProgram gl::Context::progTex

Definition at line 29 of file GLContext.hh.

Referenced by Context().

◆ unifFillMvp

GLint gl::Context::unifFillMvp

Definition at line 40 of file GLContext.hh.

Referenced by Context().

◆ unifTexColor

GLint gl::Context::unifTexColor

Definition at line 30 of file GLContext.hh.

Referenced by Context().

◆ unifTexMvp

GLint gl::Context::unifTexMvp

Definition at line 31 of file GLContext.hh.

Referenced by Context().


The documentation for this struct was generated from the following files: