Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TGL UI

Tgl ui is a project aimed to add usefull debuging and graphics interfaces to terminal gl.

Why does this exist

People (not many people) probubly wonder why this exists. The reason it exists is becaus everyone uses the terminal for quick debugging. But becaus terminal gl runs in the terminal, that is not an option. The main priority of tgl ui is to bring that functionality back along with adding cool Uis in later on.

How to get started

(Assuming you have experiance with terminal gl), let us start with creating a window:

struct window* my_debug_window = create_window("my_debug window", 30, 10);

now you have a simple debug window, but how do you use it? First, you need to print text to it and then render it:

printf_win(my_debug_window, 0xe0, "this can work just like printf, here is a number: %d\n", 100);
render_window(my_debug_window, 3, 3);

Just remember to include the library before you include the terminal gl backend as well as to update the screen with the update command. Once you have done that, you should be good to go :))

About

A debugging ui library for terminal GL

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages