java.lang.Object
org.overrun.swgl.core.Application
- 所有已实现的接口:
AutoCloseable,Runnable,Mouse.Callback
- 直接已知子类:
GlfwApplication
A swgl application.
- 从以下版本开始:
- 0.1.0
- 作者:
- squid233
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidonCursorPos(double x, double y, double xd, double yd) Called on cursor pos changed.voidonResize(int width, int height) Called on resizing.voidCalled at the last of the application.voidpostRun()Called after running.voidInitialize anything here, but after showing window.voidprepare()Prepare starting argument here, likeGlobalConfigs.voidpreStart()Prepare starting argument here after initializing GLFW.abstract voidrun()Update and render anything afterticking.abstract voidstart()voidtick()Update physical things per ticks.voidupdate()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.CallbackCalled 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.
-