libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
windowbridge.h
Go to the documentation of this file.
1#pragma once
2
3#include "stdint.h"
4#include "ship/Api.h"
5
6#ifdef __cplusplus
7#include <memory>
8namespace Ship {
9class Window;
10}
11void WindowSetWindowComponent(std::shared_ptr<Ship::Window> window);
12std::shared_ptr<Ship::Window> WindowGetWindowComponent();
13extern "C" {
14#endif
15
18
21
24
27
30
33
36
37#ifdef __cplusplus
38};
39#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
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
API_EXPORT bool WindowIsFullscreen()
Returns true if the game window is currently in fullscreen mode.
void WindowSetWindowComponent(std::shared_ptr< Ship::Window > window)
API_EXPORT float WindowGetAspectRatio()
Returns the current aspect ratio of the game window (width / height).
API_EXPORT int32_t WindowGetPosY()
Returns the Y position of the game window's top-left corner in screen coordinates.
API_EXPORT bool WindowIsRunning()
Returns true if the application window is running (has not been closed).
API_EXPORT int32_t WindowGetPosX()
Returns the X position of the game window's top-left corner in screen coordinates.
API_EXPORT uint32_t WindowGetWidth()
Returns the current width of the game window in pixels.
API_EXPORT uint32_t WindowGetHeight()
Returns the current height of the game window in pixels.
std::shared_ptr< Ship::Window > WindowGetWindowComponent()