CG_Labs  2021.2
Functions | Variables
anonymous_namespace{WindowManager.cpp} Namespace Reference

Functions

void ErrorCallback (int error, char const *description)
 
void KeyCallback (GLFWwindow *window, int key, int scancode, int action, int mods)
 
void MouseCallback (GLFWwindow *window, int button, int action, int mods)
 
void CursorCallback (GLFWwindow *window, double x, double y)
 
void FramebufferSizeCallback (GLFWwindow *window, int width, int height)
 

Variables

const int default_opengl_major_version = 4
 
const int default_opengl_minor_version = 1
 
const int default_glsl_version = default_opengl_major_version * 100 + default_opengl_minor_version * 10
 

Function Documentation

◆ CursorCallback()

void anonymous_namespace{WindowManager.cpp}::CursorCallback ( GLFWwindow *  window,
double  x,
double  y 
)

◆ ErrorCallback()

void anonymous_namespace{WindowManager.cpp}::ErrorCallback ( int  error,
char const *  description 
)

◆ FramebufferSizeCallback()

void anonymous_namespace{WindowManager.cpp}::FramebufferSizeCallback ( GLFWwindow *  window,
int  width,
int  height 
)

◆ KeyCallback()

void anonymous_namespace{WindowManager.cpp}::KeyCallback ( GLFWwindow *  window,
int  key,
int  scancode,
int  action,
int  mods 
)

◆ MouseCallback()

void anonymous_namespace{WindowManager.cpp}::MouseCallback ( GLFWwindow *  window,
int  button,
int  action,
int  mods 
)

Variable Documentation

◆ default_glsl_version

const int anonymous_namespace{WindowManager.cpp}::default_glsl_version = default_opengl_major_version * 100 + default_opengl_minor_version * 10

◆ default_opengl_major_version

const int anonymous_namespace{WindowManager.cpp}::default_opengl_major_version = 4

◆ default_opengl_minor_version

const int anonymous_namespace{WindowManager.cpp}::default_opengl_minor_version = 1