Drawing simple 2D primitives with ease? (2 posts)

  • Profile picture of noncom noncom2p said 3 months, 3 weeks ago:

    Is it possible to draw simple 2D figures like line, rectangle or ellipse right to the screen, like in Processing, by doing something as simple as

    stroke(255, 0, 0);
    line(10, 20, 100, 200);

    ? By saying ‘right to the screen’ I mean that it is just enough to give these two instructions and the red line appears.. and there is no need to handle it with the rootNode or something like that.. just a plain 2D that simply directly alters pixels on the resulting image that is shown on the screen?

  • Profile picture of noncom noncom2p said 3 months, 3 weeks ago:

    Nevermind, thanks! I have found the way. Still adapring to the scene node system.