|
Author |
Topic: vertex() doesn't like transform() (Read 224 times) |
|
skloopy
|
vertex() doesn't like transform()
« on: Nov 14th, 2003, 8:39am » |
|
vertex() calls inbetween beginShape() and endShape() don't seem to pay attention to the transform matrix.. Code:beginShape(LINE_STRIP); vertex(0,0); translate(100,20); vertex(0,0); translate(-50,30); vertex(0,0); endShape(); |
| It draws everything at the current transform when you call endShape. Is it a bug? Oops too much p5 is not good for you.. I just tried to submit this post with command-R
|
|
|
|
fry
|
Re: vertex() doesn't like transform()
« Reply #1 on: Nov 23rd, 2003, 11:47pm » |
|
you can't make transform calls inside a beginShape(), unfortunately.. this comes from opengl. but if that's not documented, it sounds like something that we should make a note of so that people arent' confused.
|
|
|
|
|