mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
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
63 lines
1.4 KiB
C++
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_
|