-
Notifications
You must be signed in to change notification settings - Fork 0
Window Functions
void automataWindowInit()
Initializes the window module.
void automataWindowCreate(int width, int height, const char *title)
Create the window.
width
: the window width.
height
: the window height.
title
: the window title.
note
: the width
and height
cannot be lower than 0 or higher than the monitor resolution. title
cannot be NULL
.
void automataWindowClose()
Closes the created window.
void automataWindowTerminate()
Terminate the window module.
int automataWindowIsAlive()
Returns if the window is alive.
void automataWindowUpdate()
Updates the window.
void automataWindowSwapBuffers()
Swap the window buffers.
int automataWindowGetWidth()
Returns the window width.
int automataWindowGetHeight()
Returns the window height.
AutomataWindowMode automataWindowGetMode()
Returns the window mode.
void automataWindowSetTitle(const char *title)
Set the window title.
title
: the window title.
note
: title
cannot be NULL
.
void automataWindowSetSize(int width, int height)
Set the window size.
width
: set the window width.
height
: set the window height.
note
: the width
and height
cannot be lower than 0 or higher than the monitor resolution.
void automataWindowSetMode(AutomataWindowMode mode)
Set the window mode.
mode
: the window mode.
GLFWwindow *automataWindowGetWindow()
Returns the GLFWwindow.
void automataWindowSetIcon(int width, int height, unsigned char *pixels)
Set the window icon.
width
: the image width.
height
: the image height.
pixels
: the image pixels.
note
: width
and height
cannot be lower than 0. pixels
cannot be NULL
.
void automataWindowRemoveIcon()
Removes the window icon.