orxDisplay_DrawCircle dosen't work

edited February 2012 in Help request
orxVECTOR dotPosition;
orxVector_Set( &dotPosition, 0, 0, 0 );
orxSTATUS status = orxDisplay_DrawCircle( &dotPosition, orxFLOAT(100), orx2RGBA(0xFF, 0x00, 0x00, 0xFF), orxTRUE);

This is the best I come up with so far and it returns success but there is no circle... :(

Comments

  • edited February 2012
    My only guess is that your draw call doesn't happen during the rendering phase.

    As previously mentioned here, you can listen to the render events in order to have your calls issued before any rendering or after everything has been rendered.
    If you need to do it as a certain "depth", you can listen to the orxRENDER_EVENT_OBJECT_START event, issue your draw calls from the event handler and return orxSTATUS_FAILURE to prevent orx from doing any rendering for that specific object.

    Also note that the primitive are drawn in screen space, (0, 0) being the top left corner and (ScreenWidth, ScreenHeight) being the bottom right corner. If you need to transform a world coordinate into a space one, you can use orxRender_GetScreenPosition() to that effect.
  • edited February 2012
    There is a bug related to DrawCircle so I will open another thread for it...
Sign In or Register to comment.