A downloadable GUI Library

RSGL

Riley's Simple GUI Library


RSGL is a simple-to-use modular, cross-platform software development and GUI library written in C.  It combines the freedom of lower-level GUI libraries with modern C techniques, offering both simplicity and convenience.

RSGL offers,

  •  A modular and flexible code base
  • A portable header-only library with lightweight internal dependencies
  • No external dependencies, save for system APIs
  • Support for multiple platforms, Linux, MacOS, BSD, Windows, etc
  • Basic drawing functionalities and structures (rect, circle, roundRect, etc)
  • Straightforward window management via RGFW
  • Dynamic GUI Widgets via a convenient styling system
  • Supports multiple font, image, and audio formats
  • OpenGL abstraction layer, RGL, which can also be used independently as a single-header library

RSGL Resources

RSGL is free and Open Source can be found here: The RSGL Github. More information about RSGL can be found on the RSGL README.


The RSGL diagram


Here is some basic RSGL example code,

#define RSGL_NO_AUDIO /* RSGL uses miniaudio.h, and I don't want to compile it if I'm not using it */ #define RSGL_IMPLEMENTATION 
#include "RSGL.h"  
int main() {
     RSGL_window* win = RSGL_createWindow("name", RSGL_RECT(0, 0, 500, 500), RSGL_CENTER);
     bool running = true;
     while (running) {
         while (RSGL_window_checkEvent(win)) {
             if (win->event.type == RSGL_quit) {
                 running = false;
                 break;
             }
        }
        
        RSGL_drawRect((RSGL_rect){200, 200, 200, 200}, RSGL_RGB(255, 0, 0));
        RSGL_window_clear(win, RSGL_RGB(255, 255, 255));
    }
    RSGL_window_close(win);
 }



Download

Download
RSGL.zip
External

Install instructions

More information about RSGL can be found here.

Leave a comment

Log in with itch.io to leave a comment.