Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A library inspired by raylib to get working with OpenGL easily

License

NotificationsYou must be signed in to change notification settings

mrfunkdude/fgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Funky Graphics Library

a library inspired by raylib to get working with OpenGL easily

features

  • easy and simple to understand
  • create windows easily
  • keyboard and mouse input
  • shapes drawing such as pixels, triangles, lines and rectangles
  • easy sprite rendering and loading
  • easy text drawing and font loading

building and installing library

for now it's only available as a shared library and for Linux. I'll be working on cross-platform compatibility.

git clone https://github.com/mrfunkdude/fgl.gitcd fgl/srcchmod 700 install.shmake && sudo ./install

example application

this example will create a blank window with a text that says "hello fgl!"

#include "fgl.h"int main(){    fgl_open_window(1024, 600, "hello fgl");    fgl_font fnt = fgl_load_font("res/font.ttf");    while (!fgl_is_window_closed()) {        fgl_start_drawing();        fgl_set_background(FGL_WHITE);        fgl_draw_text(fnt, "hello fgl!", 10, 10, 30, FGL_DARKGRAY);        fgl_stop_drawing();    }    fgl_close_window();    return 0;}

once installed the library, run the following command

gcc your_source.c -lFGL -o your_binary


[8]ページ先頭

©2009-2025 Movatter.jp