I'm not fully sure how to use Gosu's transform methods (C++) such as Gosu::scale() and all that. Any help?
Sorry. I forgot to mention in C++ Gosu.
The C++ methods
rotate etc. return a transformation matrix (
Gosu::Transform, actually an array of
double). You actually want to call
Graphics::pushTransform(const Transform&) to apply a transformation, then
Graphics::popTransform() when you're done with it.
You can also create arbitrary transformations like skew IIRC, but I'm not an expert on matrix maths.
As implied by the names push and pop, transformations stack, so don't forget to pop everything you push.
I did that and I received no results which is why I posed the question. I believed it looked like this:
I can go back and check tomorrow, but I'm pretty certain that's exactly what I did. Thanks though.
Your code is correct and I am using this in "production" (Terava), but it's been refactored recently. Let me know if you can reproduce this problem in a simple test setup.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill