Ylva And Malin
Data Fields
ym_gfx_unix_window Struct Reference

For internal use only! More...

Collaboration diagram for ym_gfx_unix_window:
Collaboration graph

Data Fields

Display * display
 The X11 display connection. More...
 
Window win
 The X11 graphical window. More...
 
bool is_open
 Bool indicating if window is still open. More...
 
u8 pad [7]
 Simple explicit padding. More...
 
bool w
 
bool a
 
bool s
 
bool d
 
bool e
 
bool q
 
bool up
 
bool down
 
bool left
 
bool right
 
u16 width
 
u16 height
 

Detailed Description

For internal use only!

Unix specific window representation that
ym_gfx_window is casted over to when
working on unix.
See also
https://www.khronos.org/opengl/wiki/Programming_OpenGL_in_Linux:_GLX_and_Xlib https://stackoverflow.com/questions/19305982/xlib-closing-window-always-causes-fatal-io-error https://stackoverflow.com/questions/10792361/how-do-i-gracefully-exit-an-x11-event-loop

Field Documentation

bool ym_gfx_unix_window::a
bool ym_gfx_unix_window::d
ym_gfx_unix_window::display

The X11 display connection.

bool ym_gfx_unix_window::down
bool ym_gfx_unix_window::e
u16 ym_gfx_unix_window::height
ym_gfx_unix_window::is_open

Bool indicating if window is still open.

bool ym_gfx_unix_window::left
ym_gfx_unix_window::pad

Simple explicit padding.

bool ym_gfx_unix_window::q
bool ym_gfx_unix_window::right
bool ym_gfx_unix_window::s
bool ym_gfx_unix_window::up
bool ym_gfx_unix_window::w
Todo:
Remove this when getting sprite movement to work. Should have a better way of doing keyboard handling, this is just for hax.
u16 ym_gfx_unix_window::width
ym_gfx_unix_window::win

The X11 graphical window.


The documentation for this struct was generated from the following file: