libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
gfxbridge.h
Go to the documentation of this file.
1#pragma once
2
3#include "stdint.h"
5#include "ship/Api.h"
6
7#ifdef __cplusplus
8#include <memory>
9namespace Fast {
10class Fast3dWindow;
11}
12void GfxSetFast3dWindow(std::shared_ptr<Fast::Fast3dWindow> window);
13std::shared_ptr<Fast::Fast3dWindow> GfxGetFast3dWindow();
14extern "C" {
15#endif
16
23API_EXPORT void GfxSetNativeDimensions(uint32_t width, uint32_t height);
24
33API_EXPORT void GfxGetPixelDepthPrepare(float x, float y);
34
44API_EXPORT uint16_t GfxGetPixelDepth(float x, float y);
45
46#ifdef __cplusplus
47}
48#endif
API export/import macros for cross-platform shared library symbol visibility.
#define API_EXPORT
Marks a symbol for export from (or import into) a shared library.
Definition Api.h:32
std::shared_ptr< Fast::Fast3dWindow > GfxGetFast3dWindow()
API_EXPORT uint16_t GfxGetPixelDepth(float x, float y)
Returns the pixel depth at screen coordinate (x, y).
API_EXPORT void GfxSetNativeDimensions(uint32_t width, uint32_t height)
Sets the native (un-scaled) rendering resolution used by the graphics backend.
API_EXPORT void GfxGetPixelDepthPrepare(float x, float y)
Prepares the graphics backend to sample the pixel depth at screen coordinate (x, y).
void GfxSetFast3dWindow(std::shared_ptr< Fast::Fast3dWindow > window)
Definition gfx_direct3d_common.h:19