|
R2 Shaders
|
Viewport types and functions. More...

Go to the source code of this file.
Data Structures | |
| struct | R2_viewport_t |
| The type of viewports. More... | |
Functions | |
| vec2 | R2_viewportFragmentPositionToUV (const R2_viewport_t v, const vec2 f_pos) |
Viewport types and functions.
Definition in file R2Viewport.h.
| vec2 R2_viewportFragmentPositionToUV | ( | const R2_viewport_t | v, |
| const vec2 | f_pos | ||
| ) |
Transform the fragment coordinate f_pos to UV coordinates based on the given viewport v.
| v | The viewport |
| f_pos | The current fragment coordinate (in window coordinates) |
Definition at line 24 of file R2Viewport.h.
1.8.12