d3d_set_projection_perspective(x,y,w,h,angle)
Jump to navigation
Jump to search
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
Parameter | Data Type | Description |
---|---|---|
x | double | x coordinate of the vector used to define the upper-left corner of the projection |
y | double | y coordinate |
w | double | width of the projection |
h | double | height of the projection |
angle | double | angle of the projection, used for rotation |
Return Values
void: This function does not return anything.
Example Call
// demonstrates setting the projection to perspective
d3d_set_projection_perspective(0, 0, room_width, room_height, 0);