axmol/extensions/Effekseer/EffekseerRendererLLGI/EffekseerRendererLLGI.Devic...

36 lines
721 B
C++

#ifndef __EFFEKSEERRENDERER_LLGI_DEVICEOBJECT_H__
#define __EFFEKSEERRENDERER_LLGI_DEVICEOBJECT_H__
#include "EffekseerRendererLLGI.RendererImplemented.h"
namespace EffekseerRendererLLGI
{
class DeviceObject
{
private:
Backend::GraphicsDevice* graphicsDevice_ = nullptr;
//! whether does this instance inc and dec the reference count of renderer
bool hasRefCount_ = false;
public:
DeviceObject(Backend::GraphicsDevice* graphicsDevice, bool hasRefCount);
virtual ~DeviceObject();
public:
Backend::GraphicsDevice* GetGraphicsDevice() const;
virtual void OnLostDevice()
{
}
virtual void OnResetDevice()
{
}
};
} // namespace EffekseerRendererLLGI
#endif // __EFFEKSEERRENDERER_LLGI_DEVICEOBJECT_H__