#define RENDERTARGET_H_
#include "framebuffer.h"
-#include "texture2d.h"
namespace Msp {
namespace GL {
+class Texture;
+class Texture2D;
+
enum RenderOutput
{
RENDER_COLOR = 0|3,
class RenderTarget
{
private:
- union TargetBuffer
- {
- Texture2D *texture;
- Renderbuffer *buffer;
- };
-
unsigned width;
unsigned height;
unsigned samples;
RenderTargetFormat format;
- std::vector<TargetBuffer> buffers;
+ std::vector<Texture *> textures;
Framebuffer fbo;
public: