Logo

dev-resources.site

for different kinds of informations.

RGFW | Singler-Header Lightweight framework for basic window and graphics context handling (like GLFW)

Published at
2/22/2024
Categories
glfw
singleheader
library
debloat
Author
colleagueriley
Categories
4 categories in total
glfw
open
singleheader
open
library
open
debloat
open
Author
14 person written this
colleagueriley
open
RGFW | Singler-Header Lightweight framework for basic window and graphics context handling (like GLFW)

github repo : https://github.com/ColleagueRiley/RGFW

RGFW is a single-header lightweight a multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs. It is written to be portable as possible and supports winapi, Xlib and cocoas for windowing apis. For graphics apis it supports, OpenGL legacy, modern OpenGL, Vulkan and DirectX. It let's you create a window with an graphics context (opengl, vulkan or directX) and manage the window and it's events only with a few function calls.

More information can be found on the RGFW repo, such as table provided in the header to show specific things RGFW supports and other information about RGFW compared to GLFW. Such as that RGFW uses far less RAM and space while having a few more features than GLFW. Documentation can be found in the header itself, RGFW.h.

Below is very basic example code

#define RGFW_IMPLEMENTATION
#include "RGFW.h"

int main() {
    RGFW_window* win = RGFW_createWindow("name", 500, 500, 500, 500, (u64)0);

    RGFW_window_setIcon(win, icon, 3, 3, 4);

    i8 running = 1;

    for (running) {
        while(RGFW_window_checkEvent(win)) {
            if (win->event.type == RGFW_quit) {
               running = 0;
               break;
            }
        }

       if (RGFW_isPressedI(win, RGFW_Escape))
            break;

        RGFW_window_swapBuffers(win);

        glClearColor(0xFF, 0XFF, 0xFF, 0xFF);
        glClear(GL_COLOR_BUFFER_BIT);
    }

    RGFW_window_close(win);
}
Enter fullscreen mode Exit fullscreen mode

github repo : https://github.com/ColleagueRiley/RGFW

library Article's
30 articles in total
Favicon
Why I won't use querySelector again.
Favicon
The Ultimate PHP QR Code Library
Favicon
React-toastify v11 - finally easy to customize
Favicon
Automating Arduino Library Deployment with GitHub Actions: Version Validation, Pull Requests, and Release Automation
Favicon
microlog 6: New feature – Log Topics
Favicon
New Release: microlog 5.1.0
Favicon
Best React UI Library: 5 Popular Choices
Favicon
THE DIFFERENT BETWEEN LIBRARY AND FRAMEWORK AND NOT USING BOTH WITH REAL LIFEΒ  ILLUSTRATIONS
Favicon
How to Convert PDF to Text in Python (Full Tutoiral)
Favicon
Library v/s Framework
Favicon
Export data from Django Admin to CSV
Favicon
Design a Multiple-Chart Plotting Library
Favicon
Teach you to design template class library to get K-line data of specified length
Favicon
Oxylabs Python SDK
Favicon
How to Convert HTML to PDF in Python (Full Tutorial)
Favicon
Struggling with Brand Icons in Web Development? Try Simple Icons!
Favicon
The development of CTA strategy and the standard class library of FMZ Quant platform
Favicon
Comparing Vue Component Documentation tools
Favicon
Why write a library?
Favicon
Introducing Bag 1.0: Immutable Values Objects for PHP
Favicon
Introducing EventSail: A Python Library for Event-driven Programming
Favicon
Introduction to NumPy
Favicon
Best Icon Libraries for a Dev in 2024
Favicon
Light Localization for PHP - Translations
Favicon
SciChart is the fastest JS Chart library available
Favicon
Java library for RuTracker
Favicon
Guided Tours Solution for Your Web Application
Favicon
Exportar tabla con JQuery
Favicon
RGFW | Singler-Header Lightweight framework for basic window and graphics context handling (like GLFW)
Favicon
An expression parser for MiniScript

Featured ones: