#include <GraphicsDevice.h>
Public Member Functions | |
void | setClipCursor (bool clipFlag) |
カーソルクリップの設定 | |
bool | getClipCursor () |
カーソルクリップの取得 | |
void | clear (Color4c color=Color4c(0, 0, 0, 0), float zValue=1.0f, u_int stencilValue=0) |
クリア | |
bool | presentation () |
プレゼンテーション | |
void | toggleFullscreen () |
フルスクリーンモードとウィンドウモードを切り替える | |
void | forceWindowed () |
強制的にウィンドウモードにする | |
bool | rebuild () |
デバイスを再構築します | |
Static Public Member Functions | |
GraphicsDevice * | getInstance () |
インスタンス取得 | |
Protected Member Functions | |
GraphicsDevice () | |
コンストラクタ | |
virtual | ~GraphicsDevice () |
デストラクタ | |
void | initializeWindowHandle (HWND windowHandle) |
ウィンドウハンドルの初期化 | |
bool | initialize () |
初期化 | |
bool | reset () |
リセット | |
void | clipCursor () |
カーソルのクリップ | |
void | cleanup () |
後始末 | |
Direct3DDevice * | getDirect3DDevice () |
Direct3Dデバイスの取得. | |
LRESULT | windowProcedure (HWND windowHandle, u_int message, WPARAM wParam, LPARAM lParam) |
ウィンドウプロシージャ | |
void | adjustWindowForChange () |
ウィンドウの調整 | |
void | handlePossibleSizeChange () |
ウィンドウサイズ変更 | |
Friends | |
class | LampGraphics |
Definition at line 36 of file GraphicsDevice.h.
|
クリア
Definition at line 64 of file GraphicsDevice.cpp. References Lamp::Color4c::getARGB(), Lamp::GraphicsDeviceSettings::getDepthStencilEnabled(), NULL, and u_int. Referenced by handlePossibleSizeChange(). |
|
カーソルクリップの取得
Definition at line 62 of file GraphicsDevice.h. |
|
Direct3Dデバイスの取得.
Definition at line 144 of file GraphicsDevice.h. References Direct3DDevice. Referenced by Lamp::LampGraphics::deviceReset(). |
|
インスタンス取得
Definition at line 44 of file GraphicsDevice.h. |
|
初期化
Definition at line 164 of file GraphicsDevice.cpp. References adjustWindowForChange(), AssertMessage, Lamp::GraphicsDeviceSettings::buildPresentationParameters(), cleanup(), clipCursor(), Direct3D, DirectXSucceeded, Lamp::GraphicsDeviceInformation::getAdapterOrdinal(), Lamp::VertexProcessingType::getCreateFlag(), Lamp::GraphicsDeviceSettings::getDeviceInformation(), Lamp::GraphicsDeviceInformation::getDeviceType(), Lamp::GraphicsDeviceSettings::getVertexProcessingType(), and u_int. Referenced by Lamp::LampGraphics::initializeDevice(), and rebuild(). |
|
ウィンドウハンドルの初期化
Definition at line 153 of file GraphicsDevice.cpp. Referenced by Lamp::LampGraphics::initializeDevice(). |
|
プレゼンテーション
Definition at line 72 of file GraphicsDevice.cpp. References Lamp::GraphicsDeviceSettings::buildPresentationParameters(), DirectXFailed, ErrorOut, Lamp::GraphicsDeviceSettings::isWindowed(), NULL, and reset(). |
|
デバイスを再構築します
Definition at line 147 of file GraphicsDevice.cpp. References cleanup(), and initialize(). Referenced by forceWindowed(), and toggleFullscreen(). |
|
リセット
Definition at line 216 of file GraphicsDevice.cpp. References clipCursor(). Referenced by handlePossibleSizeChange(), presentation(), and toggleFullscreen(). |
|
カーソルクリップの設定
Definition at line 56 of file GraphicsDevice.h. |
|
ウィンドウプロシージャ
Definition at line 256 of file GraphicsDevice.cpp. References handlePossibleSizeChange(), Lamp::GraphicsDeviceSettings::isWindowed(), and NULL. Referenced by Lamp::LampGraphics::windowProcedure(). |