openMSX
|
#include <GLContext.hh>
Public Member Functions | |
Context () | |
Initialize global openGL state. | |
~Context () | |
openmsx::GLScaler & | getFallbackScaler () |
void | setupMvpMatrix (gl::vec2 logicalSize) |
Public Attributes | |
ShaderProgram | progTex |
GLint | unifTexColor |
GLint | unifTexMvp |
ShaderProgram | progFill |
GLint | unifFillMvp |
mat4 | pixelMvp |
Definition at line 13 of file GLContext.hh.
gl::Context::Context | ( | ) |
Initialize global openGL state.
Definition at line 12 of file GLContext.cc.
References gl::ShaderProgram::activate(), gl::ShaderProgram::allocate(), gl::ShaderProgram::attach(), gl::ShaderProgram::bindAttribLocation(), gl::ShaderProgram::getUniformLocation(), gl::ShaderProgram::link(), progFill, progTex, unifFillMvp, unifTexColor, and unifTexMvp.
|
default |
openmsx::GLScaler & gl::Context::getFallbackScaler | ( | ) |
Definition at line 41 of file GLContext.cc.
void gl::Context::setupMvpMatrix | ( | gl::vec2 | logicalSize | ) |
Definition at line 49 of file GLContext.cc.
References gl::ortho(), and pixelMvp.
mat4 gl::Context::pixelMvp |
Definition at line 45 of file GLContext.hh.
Referenced by setupMvpMatrix().
ShaderProgram gl::Context::progFill |
Definition at line 39 of file GLContext.hh.
Referenced by Context().
ShaderProgram gl::Context::progTex |
Definition at line 29 of file GLContext.hh.
Referenced by Context().
GLint gl::Context::unifFillMvp |
Definition at line 40 of file GLContext.hh.
Referenced by Context().
GLint gl::Context::unifTexColor |
Definition at line 30 of file GLContext.hh.
Referenced by Context().
GLint gl::Context::unifTexMvp |
Definition at line 31 of file GLContext.hh.
Referenced by Context().