GSDP:GAM100/CProcessing/CP Image Free()

From Inside
Jump to: navigation, search

CP_Image_Load()

Description

Free a CP_Image by giving the image that you want to free.

Parameters

CP_Image_Load(CP_Image image)

  • image- (CP_Image) The image that you want to free.

Example

CP_Image justinFace = NULL;

void init()
{
  justinFace = CP_Image_Load("./Assets/Justins_face.png");
}

void update()
{
  CP_Settings_Background(CP_Color_Create(255, 255, 255, 255));

  int width = CP_System_GetWindowWidth();
  int height = CP_System_GetWindowHeight();

  CP_Image_Draw(justinFace, width / 2, height / 2, width / 2, width / 2, 255);
}

void shutdown()
{
  CP_Image_Free(justinFace);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>