aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxgoff <antipotroast@gmail.com>2012-08-02 12:17:16 -0500
committerxgoff <antipotroast@gmail.com>2012-08-02 12:17:16 -0500
commitd3aac1eb52dbf33240a1a8c929d95269c6a8f746 (patch)
tree5670afefa2d8f3f32d15076a382d057cfc65b8ee
parent9fd03f0c7b2f4295f8a06a14847f205865b3f577 (diff)
downloadlove2d-fakecanvas-d3aac1eb52dbf33240a1a8c929d95269c6a8f746.tar.gz
love2d-fakecanvas-d3aac1eb52dbf33240a1a8c929d95269c6a8f746.tar.bz2
love2d-fakecanvas-d3aac1eb52dbf33240a1a8c929d95269c6a8f746.tar.xz
love2d-fakecanvas-d3aac1eb52dbf33240a1a8c929d95269c6a8f746.zip
it looks like love doesn't do anything special with translate et al; they will still affect the canvas even if they are called before it has been set
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 1344511..87749b7 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,7 @@ not to mention:
TODOs and/or untested:
* consecutive `setCanvas()` calls with a canvas argument, eg:
+
```lua
love.graphics.setCanvas(canvas1)
-- drawing here
@@ -30,7 +31,6 @@ love.graphics.setCanvas(canvas3)
-- drawing here
```
the background gets saved when `setCanvas()` is called with an argument, but it doesn't get restored until it's called without an argument. currently only one state is saved so it's possible the above code would trash the background. this isn't a problem if you only ever use `renderTo()` because that automatically handles the `setCanvas()` calls
-* `love.graphics.translate()`, `love.graphics.rotate()`, `love.graphics.scale()`, and `love.graphics.shear()` are not handled
* will changing modes during canvas drawing destroy the contents?
beware: i have done only minimal testing of this library so it's possible there are cases where it doesn't work correctly or at all, or that the entire idea is ultimately unworkable!