openspades/Sources/Draw/GLQuadRenderer.h
2013-08-18 16:18:06 +09:00

34 lines
674 B
C++

//
// GLQuadRenderer.h
// OpenSpades
//
// Created by yvt on 7/22/13.
// Copyright (c) 2013 yvt.jp. All rights reserved.
//
#pragma once
#include "IGLDevice.h"
namespace spades {
namespace draw {
/** draws a quad for post filters.
* load program by yourself, and GLQuadRenderer does
* setting vertex attributes and drawing. */
class GLQuadRenderer {
IGLDevice *device;
IGLDevice::UInteger attrIndex;
public:
GLQuadRenderer(IGLDevice *);
~GLQuadRenderer();
/** specifies the index of an attribute that
* indicates the coordinate in [0, 1] */
void SetCoordAttributeIndex(IGLDevice::UInteger);
void Draw();
};
}
}