Skip to content

Window Examples

Merijn Hendriks edited this page Mar 22, 2019 · 2 revisions
#include <stdlib.h>
#include <automata\automata_window.h>

int main() {
	/* intialize application */
	automataWindowInit();
	automataWindowCreate(1280, 720, "Automata Framework");

	/* application loop */
	while (automataWindowIsAlive()) {
		automataWindowUpdate();
		automataWindowSwapBuffers();
	}

	/* terminate application */
	automataWindowTerminate();
	return EXIT_SUCCESS;
}

Creates a simple window with a resolution of 1280x720 and "Automata Framework" as title.

Clone this wiki locally