JZY-254. Fixed PR comments

This commit is contained in:
valb3r 2022-05-01 14:37:22 +03:00
parent b8525162e5
commit 2735522113
3 changed files with 20 additions and 20 deletions

View File

@ -181,12 +181,12 @@ public class EmulGLCanvas extends GLCanvas implements IScreenCanvas, IMonitorabl
// --------------------------------------------
// GLUT register doRender as display callback
myUT.glutDisplayFunc(c -> doRender());
myUT.glutDisplayFunc(component -> doRender());
// --------------------------------------------
// GLUT register doReshape as resize callback
myUT.glutReshapeFunc((c, w, h) -> doReshape(w, h));
myUT.glutReshapeFunc((component, newWidth, newHeight) -> doReshape(newWidth, newHeight));
// --------------------------------------------
// Despite the below line being the jGL way to deal with mouse move,

View File

@ -13,15 +13,15 @@ import java.util.function.Consumer;
*/
public class GLUTLambdaCallbackListener implements GLUTListener {
private ReshapeCallback reshapeMethod;
private MouseCallback mouseMethod;
private MotionCallback motionMethod;
private KeyboardCallback keyMethod;
private KeyboardCallback keyUpMethod;
private KeyboardCallback specialKeyMethod;
private KeyboardCallback specialKeyUpMethod;
private Consumer<Component> displayMethod;
private Consumer<Component> idleMethod;
protected ReshapeCallback reshapeMethod;
protected MouseCallback mouseMethod;
protected MotionCallback motionMethod;
protected KeyboardCallback keyMethod;
protected KeyboardCallback keyUpMethod;
protected KeyboardCallback specialKeyMethod;
protected KeyboardCallback specialKeyUpMethod;
protected Consumer<Component> displayMethod;
protected Consumer<Component> idleMethod;
@Override
public void onMouse(Component target, int button, int state, int x, int y) {

View File

@ -9,15 +9,15 @@ import java.lang.reflect.Method;
*/
public class GLUTReflectiveCallbackListener implements GLUTListener {
private Method reshapeMethod;
private Method mouseMethod;
private Method motionMethod;
private Method keyMethod;
private Method keyUpMethod;
private Method specialKeyMethod;
private Method specialKeyUpMethod;
private Method displayMethod;
private Method idleMethod;
protected Method reshapeMethod;
protected Method mouseMethod;
protected Method motionMethod;
protected Method keyMethod;
protected Method keyUpMethod;
protected Method specialKeyMethod;
protected Method specialKeyUpMethod;
protected Method displayMethod;
protected Method idleMethod;
@Override
public void onMouse(Component target, int button, int state, int x, int y) {