X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fgui%2FRenderingContext.java;h=2603c1106913dce83fbbb8947b06e54e6a03f8eb;hp=afbe22d13a5cc449d52d584cf85370f845b204c6;hb=9dcd9d8a7d3bc16eb6fde3681cd32e02dc0707e9;hpb=4bb8945294848559aab76e248207781c6e097714 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/gui/RenderingContext.java b/src/main/java/eu/svjatoslav/sixth/e3d/gui/RenderingContext.java index afbe22d..2603c11 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/gui/RenderingContext.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/gui/RenderingContext.java @@ -9,7 +9,7 @@ package eu.svjatoslav.sixth.e3d.gui; -import eu.svjatoslav.sixth.e3d.gui.humaninput.MouseClick; +import eu.svjatoslav.sixth.e3d.gui.humaninput.MouseEvent; import eu.svjatoslav.sixth.e3d.gui.humaninput.MouseInteractionController; import java.awt.*; @@ -30,22 +30,15 @@ public class RenderingContext { final BufferedImage bufferedImage; public int frameNumber = 0; - /** - * Used to signal that actual rendering should be performed. It is useful to - * skip rendering when we only want to detect mouse clicks intersections - * without actually updating rendered frame. - */ - public boolean doRender = true; // TODO: make use of the variable - /** * Mouse click. During rendering we can detect which item user clicked on. */ - public MouseClick mouseClick; + public MouseEvent mouseEvent; /** * Item that user clicked on. */ - public MouseInteractionController clickedItem; + public MouseInteractionController objectUnderMouse; public RenderingContext(final int width, final int height) { this.width = width;