mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-24 13:39:11 +00:00
Fixed formatting
This commit is contained in:
parent
6e4ace310c
commit
5a8be8e4c2
1 changed files with 7 additions and 3 deletions
|
@ -251,12 +251,16 @@
|
|||
* ## Coordinate System
|
||||
*
|
||||
* The GPU API uses a left-handed coordinate system, following the convention
|
||||
* of D3D12 and Metal. Specifically: - **Normalized Device Coordinates:** The
|
||||
* of D3D12 and Metal. Specifically:
|
||||
*
|
||||
* - **Normalized Device Coordinates:** The
|
||||
* lower-left corner has an x,y coordinate of `(-1.0, -1.0)`. The upper-right
|
||||
* corner is `(1.0, 1.0)`. Z values range from `[0.0, 1.0]` where 0 is the
|
||||
* near plane. - **Viewport Coordinates:** The top-left corner has an x,y
|
||||
* near plane.
|
||||
* - **Viewport Coordinates:** The top-left corner has an x,y
|
||||
* coordinate of `(0, 0)` and extends to the bottom-right corner at
|
||||
* `(viewportWidth, viewportHeight)`. +Y is down. - **Texture Coordinates:**
|
||||
* `(viewportWidth, viewportHeight)`. +Y is down.
|
||||
* - **Texture Coordinates:**
|
||||
* The top-left corner has an x,y coordinate of `(0, 0)` and extends to the
|
||||
* bottom-right corner at `(1.0, 1.0)`. +Y is down.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue