chrono::opengl::ChOpenGLEventCB Class Referenceabstract

Description

Interface of an object which can receive events.

#include <ChOpenGLWindow.h>

Public Member Functions

virtual bool CallbackKeyboard (GLFWwindow *window, int key, int scancode, int action, int mode)=0
 GLFW callback to handle keyboard events. More...
 
virtual bool CallbackMouseButton (GLFWwindow *window, int button, int action, int mods)=0
 GLFW callback to handle mouse button events. More...
 
virtual bool CallbackMousePos (GLFWwindow *window, double x, double y)=0
 GLFW callback to handle events generated by changes in mouse position. More...
 

Member Function Documentation

◆ CallbackKeyboard()

virtual bool chrono::opengl::ChOpenGLEventCB::CallbackKeyboard ( GLFWwindow *  window,
int  key,
int  scancode,
int  action,
int  mode 
)
pure virtual

GLFW callback to handle keyboard events.

Return 'true' if the event is completely done and no further processing is to occur.

◆ CallbackMouseButton()

virtual bool chrono::opengl::ChOpenGLEventCB::CallbackMouseButton ( GLFWwindow *  window,
int  button,
int  action,
int  mods 
)
pure virtual

GLFW callback to handle mouse button events.

Return 'true' if the event is completely done and no further processing is to occur.

◆ CallbackMousePos()

virtual bool chrono::opengl::ChOpenGLEventCB::CallbackMousePos ( GLFWwindow *  window,
double  x,
double  y 
)
pure virtual

GLFW callback to handle events generated by changes in mouse position.

Return 'true' if the event is completely done and no further processing is to occur.


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono_opengl/ChOpenGLWindow.h