aboutsummaryrefslogtreecommitdiff
path: root/test/01HelloWorld/main.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-28 22:13:53 +0800
committerchai <chaifix@163.com>2018-07-28 22:13:53 +0800
commit86a534762dc6dc1382724356fb0100db0865513a (patch)
tree418afff647308a647314adf1adf267c2a2ed26d9 /test/01HelloWorld/main.cpp
parentac7aaf2c1a412bb29568b547b0f1661db94702e2 (diff)
*update
Diffstat (limited to 'test/01HelloWorld/main.cpp')
-rw-r--r--test/01HelloWorld/main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/01HelloWorld/main.cpp b/test/01HelloWorld/main.cpp
index d187849..fa81918 100644
--- a/test/01HelloWorld/main.cpp
+++ b/test/01HelloWorld/main.cpp
@@ -11,7 +11,7 @@ void onEvent(jin::input::Event* e)
if (e->type == EventType::QUIT)
game->stop();
}
-static float dt = 0;
+
void onUpdate()
{
@@ -19,11 +19,7 @@ void onUpdate()
void onDraw()
{
- dt += 16;
- if (dt > 1000)
- {
- dt = 0;
- }
+
}
int main(int argc, char* argv[])