GSDP:GAM100/CProcessing/CP Graphics DrawEllipseAdvanced()

From Inside
Jump to: navigation, search

CP_Graphics_DrawEllipseAdvanced()

Description

A specialized version of the CP_Graphics_DrawEllipse() function which allows you to specify a rotation (in degrees). The shape will rotate about the reference point specified by the CP_Settings_EllipseMode().

Parameters

CP_Graphics_DrawEllipseAdvanced(x, y, w, h, degrees)

  • x - (float) the horizontal position of the ellipse
  • y - (float) the vertical position of the ellipse
  • w - (float) the width (horizontal diameter) of the ellipse
  • h - (float) the height (vertical diameter) of the ellipse
  • degrees - (float) the rotation in degrees

Example

void update() 
{
    // draw a 100x50 ellipse rotated by 45 degrees at the mouse position
    CP_Graphics_DrawEllipseAdvanced(CP_Input_GetMouseX(), CP_Input_GetMouseY(), 100.0f, 50.0f, 45.0f);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>