#include <BasicFramework.h>
Inheritance diagram for Lamp::BasicFramework:

Public Member Functions | |
| BasicFramework (const String &name) | |
| コンストラクタ | |
| virtual | ~BasicFramework () |
| デストラクタ | |
| virtual bool | confirmGraphicsDevice (const D3DCapacity &deviceCapability, u_int vertexProcessingType, D3DFORMAT adapterFormat, D3DFORMAT backBufferFormat) |
| グラフィックスデバイスの確認 | |
| virtual bool | initializeGraphicsDeviceObjects () |
| デバイスオブジェクトの初期化 | |
| virtual void | deleteGraphicsDeviceObjects () |
| デバイスオブジェクトの削除 | |
| virtual bool | restoreGraphicsDeviceObjects () |
| デバイスオブジェクトのリストア | |
| virtual void | invalidateGraphicsDeviceObjects () |
| デバイスオブジェクトの無効化 | |
Protected Member Functions | |
| virtual void | mainLoop () |
| メインループ | |
| virtual void | drawInformation () |
| 情報描画 | |
| virtual void | drawInformationString (const String &message, Color4c color=Color4c::white, bool alignRight=false, bool alignBottom=false) |
| 情報文字列描画 | |
| virtual String | getFPSString () const |
| FPS文字列の取得. | |
| virtual void | frameworkRun () |
| フレームワーク実行 | |
| virtual void | frameworkDrawInformation () |
| フレームワーク情報表示 | |
Protected Attributes | |
| RECT | informationDrawRect_ |
| 情報描画矩形 | |
| ID3DXFont * | font_ |
| フォント | |
| D3DXFONT_DESC | fontDescription_ |
| フォント記述 | |
| FPSMeasurement * | drawFPSMeasurement_ |
| 描画FPS計測 | |
| float | drawFPS_ |
| 描画FPS | |
| FPSMeasurement * | gameFPSMeasurement_ |
| ゲームFPS計測 | |
| float | gameFPS_ |
| ゲームFPS | |
シンプルフレームワークにID3DXによるフォント描画とFPS計測と グラフィックスデバイス選択を追加したフレームワーク。
Definition at line 46 of file BasicFramework.h.
|
|
コンストラクタ
Definition at line 42 of file BasicFramework.cpp. References drawFPS_, drawFPSMeasurement_, font_, fontDescription_, gameFPS_, gameFPSMeasurement_, NULL, and StdStrcpy. |
|
||||||||||||||||||||
|
グラフィックスデバイスの確認 デバイスの能力を確認して、使用するならtrue、使用しないならfalseを返す。
Implements Lamp::ConfirmGraphicsDevice. Definition at line 77 of file BasicFramework.h. |
|
|
デバイスオブジェクトの削除 デバイスオブジェクトの削除はdeleteDeviceObjectsをオーバライドする Implements Lamp::GraphicsDeviceObjectHolder. Definition at line 184 of file BasicFramework.cpp. References font_, and SafeRelease. |
|
||||||||||||||||||||
|
情報文字列描画
Definition at line 141 of file BasicFramework.cpp. References font_, Lamp::Color4c::getARGB(), Lamp::String::getBytes(), informationDrawRect_, NULL, and u_int. Referenced by drawInformation(). |
|
|
FPS文字列の取得.
Definition at line 162 of file BasicFramework.cpp. References drawFPS_, Lamp::String::format(), and gameFPS_. Referenced by drawInformation(). |
|
|
デバイスオブジェクトの初期化 デバイスオブジェクトの初期化はinitializeDeviceObjectsをオーバライドする
Implements Lamp::GraphicsDeviceObjectHolder. Definition at line 171 of file BasicFramework.cpp. References DirectXFailed, ErrorOut, font_, fontDescription_, and SafeRelease. |
|
|
デバイスオブジェクトの無効化 デバイスオブジェクトの無効化はinvalidateDeviceObjectsをオーバライドする Implements Lamp::GraphicsDeviceObjectHolder. Definition at line 204 of file BasicFramework.cpp. |
|
|
デバイスオブジェクトのリストア デバイスオブジェクトのリストアはrestoreDeviceObjectsをオーバライドする このメソッド内ででデバイスステートを変更すると、デフォルトステートとなり、 レンダラセットアップ時にそのステートが復元されます。
Implements Lamp::GraphicsDeviceObjectHolder. Definition at line 190 of file BasicFramework.cpp. References DirectXFailed, ErrorOut, font_, NULL, and SafeRelease. |
1.3.2