📄 overlay.java
字号:
package com.brackeen.javagamebook.graphics3D;
import java.awt.Graphics2D;
import com.brackeen.javagamebook.math3D.ViewWindow;
/**
An overlay drawn over a game scene.
*/
public interface Overlay {
/**
Updates this overlay with the specified amount of
elapsed time since the last update.
*/
public void update(long elapsedTime);
/**
Draws an overlay onto a frame. The ViewWindow specifies
the bounds of the view window (usually, the entire
screen). The screen bounds can be retrieved by calling
g.getDeviceConfiguration().getBounds();
*/
public void draw(Graphics2D g, ViewWindow viewWindow);
/**
Returns true if this overlay is enabled (should be drawn).
*/
public boolean isEnabled();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -