#include "stdint.h"
#include "fast/ucodehandlers.h"
#include "ship/Api.h"
#include <memory>
Go to the source code of this file.
◆ GfxGetFast3dWindow()
◆ GfxGetPixelDepth()
| API_EXPORT uint16_t GfxGetPixelDepth |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Returns the pixel depth at screen coordinate (x, y).
Must be called after GfxGetPixelDepthPrepare() for the same coordinates.
- Parameters
-
| x | Screen X coordinate in pixels. |
| y | Screen Y coordinate in pixels. |
- Returns
- Depth value in the range [0, 65535] (16-bit fixed-point).
◆ GfxGetPixelDepthPrepare()
| API_EXPORT void GfxGetPixelDepthPrepare |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Prepares the graphics backend to sample the pixel depth at screen coordinate (x, y).
Call this before GfxGetPixelDepth() to ensure the depth value is ready.
- Parameters
-
| x | Screen X coordinate in pixels. |
| y | Screen Y coordinate in pixels. |
◆ GfxSetFast3dWindow()
◆ GfxSetNativeDimensions()
| API_EXPORT void GfxSetNativeDimensions |
( |
uint32_t |
width, |
|
|
uint32_t |
height |
|
) |
| |
Sets the native (un-scaled) rendering resolution used by the graphics backend.
- Parameters
-
| width | Native framebuffer width in pixels. |
| height | Native framebuffer height in pixels. |