SDXFrameWork  0.04
SDXFrameWork
 全て クラス ネームスペース 関数 変数 ページ
Wait.h
1 #pragma once
2 #include <Multimedia/SDX.h>
3 
4 namespace SDX
5 {
7 class Wait
9 {
10 private:
11  Wait();
12  ~Wait();
13 public:
15  static bool Timer(int 停止ミリ秒)
16  {
17  #ifdef DXLIB
18  return !DxLib::WaitTimer(停止ミリ秒);
19  #elif defined(SDL)
20  return false;
21  #endif
22  }
23 
25  static bool VSync(int 信号回数)
26  {
27  #ifdef DXLIB
28  return !DxLib::WaitVSync(信号回数);
29  #elif defined(SDL)
30  return false;
31  #endif
32  }
33 
35  static bool PushKey()
36  {
37  #ifdef DXLIB
38  return !DxLib::WaitKey();
39  #elif defined(SDL)
40  return false;
41  #endif
42  }
43 };
44 }
static bool PushKey()
キーを入力を待つ.
Definition: Wait.h:35
static bool Timer(int 停止ミリ秒)
指定ミリ秒実行を停止.
Definition: Wait.h:15
static bool VSync(int 信号回数)
垂直同期信号を指定回数待つ.
Definition: Wait.h:25