mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Began transforming of current API to represent XNA 4.0, which is cleaner. Dictionary<TKey, TValue> should now work (sort of-- need to implement resizing and enumerating) Currently hunting down GraphicsDevice initialization Up next: (hopefully successful) rendering of primitives
64 lines
1.4 KiB
C++
64 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/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_
|