Urho3D
Public Member Functions | Protected Attributes
Urho3D::GPUObject Class Reference

Base class for GPU resources. More...

#include <D3D9GPUObject.h>

Inheritance diagram for Urho3D::GPUObject:
Urho3D::IndexBuffer Urho3D::ShaderVariation Urho3D::Texture Urho3D::VertexBuffer Urho3D::Texture2D Urho3D::TextureCube

List of all members.

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.
GraphicsGetGraphics () 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< Graphicsgraphics_
 Graphics subsystem.
void * object_
 Direct3D object.
bool dataLost_
 Data lost flag.
bool dataPending_
 Data pending flag.

Detailed Description

Base class for GPU resources.


The documentation for this class was generated from the following files: