Timeline for Use Stage's draw() method to invoke Actor's draw method in Libgdx
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 20, 2016 at 19:20 | comment | added | Joseph Wimer | Would you please edit it for me? It'll help everyone see what's wrong with it so we can help you figure out why it isn't working. | |
| Jun 20, 2016 at 15:41 | comment | added | user2582651 | No I didn't . But rest assured, i've followed what was mentioned in the wiki page. I still couldn't get it working. | |
| Jun 20, 2016 at 15:33 | comment | added | Joseph Wimer | Did you update your code in the question? It doesn't appear to have changed. If you want to use Stage to render the shapes, you should make Sprites for the rectangles/triangles/circles and use the Stage's batch to draw those. (Batches cannot draw basic shapes, only sprites or textures). | |
| Jun 20, 2016 at 11:13 | comment | added | user2582651 | I read the libgdx docs : github.com/libgdx/libgdx/wiki/Scene2d and changed my code ( Section for Drawing) . However, the rectangle is still not drawn. | |
| Jun 20, 2016 at 5:06 | comment | added | user2582651 | Adding a post again, since I couldn't edit my previous comment. I wish to use stage because I want to handle click events on these rectangles and scene2d makes my job easier relatively. Else I'd be handling click events for each of the shape objects. | |
| Jun 20, 2016 at 4:51 | comment | added | user2582651 | Thanks for the input. Yes, I am interested to know how stage handles drawing of basic shapes(Rectangles, circle) etc where shaperenderer is also involved. I couldn't find the solution, and I am still waiting. | |
| Jun 19, 2016 at 20:56 | history | answered | Joseph Wimer | CC BY-SA 3.0 |