GSDP:GAM100/CProcessing/CP Settings EllipseMode()

From Inside
Jump to: navigation, search

CP_Settings_EllipseMode()

Description

Lets you set the way ellipses and circles will be drawn. Check CP_POSITION_MODE for options on which modes you can set. Defaults to CP_POSITION_CENTER.

Example

void update() 
{
    // set the background color to gray
    CP_Settings_Background(CP_Color_Create(200, 200, 200, 255));

    // set the rectangle drawing mode to CENTER
    CP_Settings_EllipseMode(CP_POSITION_CENTER);

    // draw a rectangle at the center of the screen, half the size of the screen
    CP_Graphics_DrawRect(CP_System_GetWindowWidth() / 2.0f, CP_System_GetWindowHeight() / 2.0f,
                         CP_System_GetWindowWidth() / 2.0f, CP_System_GetWindowHeight() / 2.0f);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>