Browse Source

added wantedFPS shortcut

ncannasse 9 năm trước cách đây
mục cha
commit
61424e8267
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      hxd/App.hx

+ 5 - 0
hxd/App.hx

@@ -6,6 +6,8 @@ class App {
 	public var s3d : h3d.scene.Scene;
 	public var s2d : h2d.Scene;
 
+	public var wantedFPS(get, set) : Float;
+
 	public function new(?engine) {
 		if( engine != null ) {
 			this.engine = engine;
@@ -20,6 +22,9 @@ class App {
 		}
 	}
 
+	function get_wantedFPS() return hxd.Timer.wantedFPS;
+	function set_wantedFPS(fps) return hxd.Timer.wantedFPS = fps;
+
 	function onResize() {
 	}