java.lang.Object
org.overrun.swgl.core.Application
- 所有已实现的接口:
AutoCloseable
,Runnable
,Mouse.Callback
- 直接已知子类:
GlfwApplication
A swgl application.
- 从以下版本开始:
- 0.1.0
- 作者:
- squid233
-
构造器概要
-
方法概要
修饰符和类型方法说明void
onCursorPos
(double x, double y, double xd, double yd) Called on cursor pos changed.void
onResize
(int width, int height) Called on resizing.void
Called at the last of the application.void
postRun()
Called after running.void
Initialize anything here, but after showing window.void
prepare()
Prepare starting argument here, likeGlobalConfigs
.void
preStart()
Prepare starting argument here after initializing GLFW.abstract void
run()
Update and render anything afterticking
.abstract void
start()
void
tick()
Update physical things per ticks.void
update()
Update anything per frames.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 java.lang.AutoCloseable
close
-
构造器详细资料
-
Application
public Application()
-
-
方法详细资料
-
prepare
public void prepare()Prepare starting argument here, likeGlobalConfigs
. -
preStart
public void preStart()Prepare starting argument here after initializing GLFW. -
start
public abstract void start() -
postStart
public void postStart() -
update
public void update()Update anything per frames. -
tick
public void tick()Update physical things per ticks. -
onResize
public void onResize(int width, int height) Called on resizing. You can update the viewport here.- 参数:
width
- The new width.height
- The new height.
-
onCursorPos
public void onCursorPos(double x, double y, double xd, double yd) 从接口复制的说明:Mouse.Callback
Called on cursor pos changed.- 指定者:
onCursorPos
在接口中Mouse.Callback
- 参数:
x
- The new pos x.y
- The new pos y.xd
- The delta pos x.yd
- The delta pos y.
-
run
public abstract void run()Update and render anything afterticking
. -
postRun
public void postRun()Called after running. -
postClose
public void postClose()Called at the last of the application.
-