Urho3D
|
Base class for GPU resources. More...
#include <D3D9GPUObject.h>
Public Member Functions | |
GPUObject (Graphics *graphics) | |
Construct with graphics subsystem pointer. | |
virtual | ~GPUObject () |
Destruct. Remove from the graphics subsystem. | |
virtual void | OnDeviceLost () |
Release default pool resources. | |
virtual void | OnDeviceReset () |
Recreate default pool resources. | |
virtual void | Release () |
Unconditionally release the GPU resource. | |
void | ClearDataLost () |
Clear the data lost flag. | |
Graphics * | GetGraphics () const |
Return the graphics subsystem. | |
void * | GetGPUObject () const |
Return Direct3D object. | |
bool | IsDataLost () const |
Return whether data is lost due to device loss. | |
bool | HasPendingData () const |
Return whether has pending data assigned while device was lost. |
Protected Attributes | |
WeakPtr< Graphics > | graphics_ |
Graphics subsystem. | |
void * | object_ |
Direct3D object. | |
bool | dataLost_ |
Data lost flag. | |
bool | dataPending_ |
Data pending flag. |
Base class for GPU resources.