Documentation

// window functions

KlombleWindow* klombleCreateWindow(int width, int height, const char* title); // Initalizes a window
void klombleClearBackground(KlombleWindow* window, Klomble::Color color); // Sets the colour of the background
void klombleCloseWindow(KlombleWindow* window); // Closes the given window
int klombleUpdate(KlombleWindow* window); // loops every frame
float klombleGetDeltaTime(); // returns the window's delta time

// rendering

void klombleDrawSquare(KlombleWindow* window, Klomble::Vec2 position, float size, float rotation, Klomble::Color color); // draws a square
void klombleDrawTriangle(KlombleWindow* window, Klomble::Vec2 position, float size, float rotation, Klomble::Color color); // draws a triangle

// helpers

Klomble::Vec2(float x, float y) // klomble namespace helper for vec 2
Klomble::Vec3(float x, float y, float z) // klomble namespace helper for vec 3
Klomble::Color(int red, int green, int blue) // klomble namespace helper for RGB
Klomble::Key::(Key from key data) // klomble namespace helper for key

// key data

// Letters: A-Z
// Numbers: Num0-Num9
// Actions: Space, Enter, Escape
// Arrows:  Left, Up, Right, Down

// key functions

bool klombleIsKeyDown(int key); // checks if key is down. Ex: bool klombleIsKeyDown(Klomble::Key::A);