1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/RenderTarget.h
Halofreak1990 ec0c1820dd Fixed TextureCollection issues caused by circular dependencies.
Added RenderTarget and RenderTarget2D classes to the XFX::Graphics namespace
Added Internal StorageDeviceAsyncResult class to the XFX::Storage namespace to aid in the implementation of the Guide.
Added Guide::BeginShowMessageBox and Guide::EndShowMessageBox methods
Began fixing comments to properly show up in IntelliSense
2011-06-09 12:57:16 +00:00

63 lines
1.4 KiB
C++

/********************************************************
* RenderTarget.h *
* *
* XFX RenderTarget definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _XFX_GRAPHICS_RENDERTARGET_
#define _XFX_GRAPHICS_RENDERTARGET_
#include <System/Interfaces.h>
#include <System/Types.h>
#include "Enums.h"
using namespace System;
namespace XFX
{
namespace Graphics
{
class RenderTarget : public IDisposable, virtual Object
{
private:
bool isContentLost;
bool isDisposed;
protected:
GraphicsDevice* graphicsDevice;
SurfaceFormat_t format;
int width;
int height;
int multiSampleQuality;
MultiSampleType_t multiSampleType;
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();
MultiSampleType_t getMultiSampleType();
char* Name;
Object* Tag;
int Width();
EventHandler ContentLost;
EventHandler Disposing;
virtual ~RenderTarget();
void Dispose();
};
}
}
#endif //_XFX_GRAPHICS_RENDERTARGET_