Fixed up the API: setCanvas (singular) now only takes one canvas, setCanvases must be used for multi-canvas rendering

--HG--
branch : MRTs
This commit is contained in:
Alex Szpakowski
2013-03-25 21:23:09 -03:00
parent 2ea065c68b
commit 6c5daab312
5 changed files with 74 additions and 11 deletions
+2 -1
View File
@@ -59,6 +59,7 @@ public:
* to allow drawing to multiple canvases at once.
**/
void startGrab(const std::vector<Canvas *> &canvases);
void startGrab();
void stopGrab();
void clear(const Color &c);
@@ -135,7 +136,7 @@ private:
std::vector<Canvas *> attachedCanvases;
void startGrab();
void setupGrab();
void drawv(const Matrix &t, const vertex *v) const;
static StringMap<TextureType, TYPE_MAX_ENUM>::Entry textureTypeEntries[];