Pxit is a simple windowing library to make building software enjoyable again!
Inspired by a lot of other libraries (GLFW, OpenGL, SDL, Vulkan, imgui, raylib), Pxit was designed with focus on simplicity and ease of use for new and experienced programmers.
This library is a work in progress and has a lot of updates and testing left to do. There will be daily updates to this library and hopefully will become a mature API soon. Please stay tuned for new updates!
Below is an example on how to create a OpenGL window and clear the screen red.
#include <pxit/pxit.h>
void draw(Window window)
{
glClearColor(1, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
}
int main(void)
{
WindowCallbacks callbacks = {};
callbacks.OnWindowPaint = draw;
WindowCreateInfo create_info = {};
create_info.Top = 40;
create_info.Left = 40;
create_info.Width = 800;
create_info.Height = 600;
create_info.pTitle = "My Window";
create_info.pCallbacks = &callbacks;
CreateWindow(&create_info, NULL);
while (ReadWindowEvents())
{
// ...sea wolves are cool...
}
}