libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
windowbridge.h File Reference
#include "stdint.h"
#include "ship/Api.h"
#include <memory>
Include dependency graph for windowbridge.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Ship
 Core namespace for the libultraship engine framework.
 

Functions

void WindowSetWindowComponent (std::shared_ptr< Ship::Window > window)
 
std::shared_ptr< Ship::WindowWindowGetWindowComponent ()
 
API_EXPORT bool WindowIsRunning ()
 Returns true if the application window is running (has not been closed).
 
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.
 
API_EXPORT float WindowGetAspectRatio ()
 Returns the current aspect ratio of the game window (width / height).
 
API_EXPORT int32_t WindowGetPosX ()
 Returns the X position of the game window's top-left corner in screen coordinates.
 
API_EXPORT int32_t WindowGetPosY ()
 Returns the Y position of the game window's top-left corner in screen coordinates.
 
API_EXPORT bool WindowIsFullscreen ()
 Returns true if the game window is currently in fullscreen mode.
 

Function Documentation

◆ WindowGetAspectRatio()

API_EXPORT float WindowGetAspectRatio ( )

Returns the current aspect ratio of the game window (width / height).

◆ WindowGetHeight()

API_EXPORT uint32_t WindowGetHeight ( )

Returns the current height of the game window in pixels.

◆ WindowGetPosX()

API_EXPORT int32_t WindowGetPosX ( )

Returns the X position of the game window's top-left corner in screen coordinates.

◆ WindowGetPosY()

API_EXPORT int32_t WindowGetPosY ( )

Returns the Y position of the game window's top-left corner in screen coordinates.

◆ WindowGetWidth()

API_EXPORT uint32_t WindowGetWidth ( )

Returns the current width of the game window in pixels.

◆ WindowGetWindowComponent()

std::shared_ptr< Ship::Window > WindowGetWindowComponent ( )

◆ WindowIsFullscreen()

API_EXPORT bool WindowIsFullscreen ( )

Returns true if the game window is currently in fullscreen mode.

◆ WindowIsRunning()

API_EXPORT bool WindowIsRunning ( )

Returns true if the application window is running (has not been closed).

◆ WindowSetWindowComponent()

void WindowSetWindowComponent ( std::shared_ptr< Ship::Window window)