-
Notifications
You must be signed in to change notification settings - Fork 0
Window Functions
Merijn Hendriks edited this page Mar 22, 2019
·
9 revisions
void automataWindowInit();Initializes the window module
void automataWindowCreate(unsigned int width, unsigned int height, const char *title);Create the window.
width: the window width
height: the window height
```title````: the window title
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.
unsigned int automataWindowGetWidth();Get the window width.
unsigned int automataWindowGetHeight();Get the window height.
AutomataWindowMode automataWindowGetMode();Get the window mode.
void automataWindowSetTitle(const char *title);Set the window title.
title: the window title.
void automataWindowSetSize(unsigned int width, unsigned int height);Set the window size.
width: set the window width.
height: set the window height.
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.
void automataWindowRemoveIcon()Removes the window icon.