D3d_set_projection_perspective - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}}

Notation

Description

Sets the use of a 3D perspective projection for subsequent draw calls. The purpose of it is to use a regular perspective projection set with d3d_set_projection but uses parameters similar to d3d_set_projection_ortho. Using a perspective projection means that objects get smaller the farther from the camera they are.

Parameters

  • x (x, y) are used to define the upper-left corner of the projection using a 2D screen coordinate
  • y
  • w width of the projection
  • h height of the projection
  • angle angle of the projection, used for rotation

Return Values

No values are returned from the function.

Example Call

d3d_set_projection_perspective();