1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/RenderTarget.h
Tom Lint 52ef14a94b Transition from SVN to Git
Added implicit conversion to base types to all primary types (UInt32 et
al)
Added implicit conversion from System::String to const char*
2013-05-05 18:18:41 +02:00

64 lines
1.3 KiB
C++

/********************************************************
* RenderTarget.h *
* *
* XFX RenderTarget definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _XFX_GRAPHICS_RENDERTARGET_
#define _XFX_GRAPHICS_RENDERTARGET_
#include <System/Event.h>
#include <System/Interfaces.h>
#include "Enums.h"
using namespace System;
namespace XFX
{
namespace Graphics
{
class GraphicsDevice;
class RenderTarget : public IDisposable, public Object
{
private:
bool isContentLost;
bool isDisposed;
protected:
GraphicsDevice* graphicsDevice;
SurfaceFormat_t format;
int width;
int height;
int multiSampleQuality;
RenderTargetUsage_t renderTargetUsage;
int numLevels;
virtual void Dispose(bool disposing);
virtual void raise_ContentLost(Object* sender, EventArgs* e);
void raise_Disposing(Object* sender, EventArgs* e);
public:
SurfaceFormat_t getFormat();
GraphicsDevice* getGraphicsDevice();
int Height();
bool IsContentLost();
bool IsDisposed();
int MultiSampleQuality();
char* Name;
Object* Tag;
int Width();
EventHandler ContentLost;
EventHandler Disposing;
virtual ~RenderTarget();
void Dispose();
int GetType() const;
};
}
}
#endif //_XFX_GRAPHICS_RENDERTARGET_