All Questions
4
questions
11
votes
1
answer
13k
views
How does Matrix.postScale( sx, sy, px, py) work?
First read Taig's question
Taig said:
When calling Matrix.postScale( sx, sy, px, py ); the matrix gets
scaled and also translated (depending on the given point x, y). That
predestines this ...
1
vote
0
answers
829
views
2D rotation openGL es 2.0
I am trying to make a game and I need my startship(triangle) to be rotated around its own center. (It should looks like you just put a paper triangle on a table and rotating it)
The coords of my ...
0
votes
1
answer
163
views
Adding a rotated rectangle to a path without allocating memory
If I try to allocate any memory during onDraw in my View-derived class in my Android app, Eclipse/lint gives me warnings that I shouldn't be allocating memory during the execution of onDraw. so I'm ...
2
votes
1
answer
2k
views
2D Quads : Translation with OpenGL ES 2.0 on Android
I have a simple 2D engine that renders 2D textured quads, and right now I can scale the quad or rotate it, but when I try to translate it I have a strange distortion (the quad is squashed in the half ...