As a beginner(in GdxLib+Android), i found that for rendering particular screen, we can render that using both ways then when to use specific ones? & What is the best option for Updating the smaller part/region of the screen?
Asked
Active
Viewed 5,769 times
1 Answers
5
per documentation ShapeRenderer
isn't efficient and shouldn't be used intensively.
Renders points, lines, rectangles, filled rectangles and boxes. This class is not meant to be used for performance sensitive applications but more oriented towards debugging.
That being said, I asked for opinions on its real impact here, but since I've got no answer yet, I decided to give a try. It's working nice so far but if you can use a texture, I'd say to go with that. (I'm not using a texture because I'm writing a small library and don't want to include non code).
code
spriteBatch.begin(); spriteBatch.draw(texture, x,y,x,y); spriteBatch.end();code
but i failed to get change the rect. – vintesh Feb 21 '13 at 16:04draw()
method? perhaps if you shared you code it would be easier to help. – petervaz Feb 21 '13 at 16:41drawArrowsAt()
, which isn't being called fromdraw()
. I recomend you edit your question and add exactly the behavior you are intending and what is stopping you. – petervaz Feb 21 '13 at 19:31drawArrowAt
i want to move the arrow in particular direction & in that i am not able to render/animate the arrow. That's where i got stuck. & "Thanks for all your help" – vintesh Feb 22 '13 at 04:48