sapphire-arches / stgl Goto Github PK
View Code? Open in Web Editor NEWA very hacked up version of Suckless's ST with an OpenGL renderer
License: MIT License
A very hacked up version of Suckless's ST with an OpenGL renderer
License: MIT License
stgl - (ex) simple terminal (OpenGL edition!) --------------------------------------------- stgl is a terminal emulator for X which sucks more than the original st, but it's got neat fire effects!. Configuration ------------- See config.h for font configuration, and the header of rendering.cpp for feel factor configuration. Requirements ------------ In order to build stgl you need the Xlib header files and a libGL implementation. You'll also need GLM. In order to run stlgl you will need a reasonably modern graphics card with OpenGL 4.5 support. Installation ------------ Edit config.mk to match your local setup (st is installed into the /usr/local namespace by default). Afterwards enter the following command to build and install st (if necessary as root): make clean install Running st ---------- If you did not install st with make clean install, you must compile the st terminfo entry with the following command: tic -sx st.info See the man page for additional details. Credits ------- Based on Aurélien APTEL <aurelien dot aptel at gmail dot com> bt source code.
I tried building on an arch linux
> archangel@The_Black_Knight:git/Terminals/stgl opengl ✔ 3h6m
> ▶ make
> st build options:
> CFLAGS = -I/usr/X11R6/include -isystem ./include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DVERSION="0.7" -D_XOPEN_SOURCE=600 -O
> CXXFLAGS=
> LDFLAGS = -L/usr/X11R6/lib -lm -lrt -lX11 -lutil -lXft -ldl -lfontconfig -lfreetype -lGL -lfreetype
> CC = c99
> c99 -I/usr/X11R6/include -isystem ./include `pkg-config --cflags fontconfig` `pkg-config --cflags gl` `pkg-config --cflags freetype2` -DVERSION=\"0.7\" -D_XOPEN_SOURCE=600 -O -c st.c -o st.o
> c99 -I/usr/X11R6/include -isystem ./include `pkg-config --cflags fontconfig` `pkg-config --cflags gl` `pkg-config --cflags freetype2` -DVERSION=\"0.7\" -D_XOPEN_SOURCE=600 -O -c x.c -o x.o
> c99 -I/usr/X11R6/include -isystem ./include `pkg-config --cflags fontconfig` `pkg-config --cflags gl` `pkg-config --cflags freetype2` -DVERSION=\"0.7\" -D_XOPEN_SOURCE=600 -O -c src/glad.c -o src/glad.o
> c99 -I/usr/X11R6/include -isystem ./include `pkg-config --cflags fontconfig` `pkg-config --cflags gl` `pkg-config --cflags freetype2` -DVERSION=\"0.7\" -D_XOPEN_SOURCE=600 -O -c src/glad_glx.c -o src/glad_glx.o
> g++ -I/usr/X11R6/include -isystem ./include `pkg-config --cflags fontconfig` `pkg-config --cflags gl` `pkg-config --cflags freetype2` -DVERSION=\"0.7\" -D_XOPEN_SOURCE=600 -std=c++17 -c rendering.cpp -o rendering.o
> rendering.cpp: In instantiation of ‘void ParticleSystem<Updatefunc>::add_particle(float, float, float, float, float, const color&) [with UpdateFunc = std::function<void(particle&, float)>]’:
> rendering.cpp:1069:115: required from here
> rendering.cpp:540:12: sorry, unimplemented: non-trivial designated initializers not supported
> particle np = {
> ^~
> rendering.cpp:540:12: sorry, unimplemented: non-trivial designated initializers not supported
> make: *** [Makefile:24: rendering.o] Error 1
>
> archangel@The_Black_Knight:git/Terminals/stgl opengl ✔ 3h7m ⍉
> ▶ pacman -Ss gcc | ack install
> core/gcc 7.2.0-3 (base-devel) [installed]
> core/gcc-libs 7.2.0-3 (base) [installed]
> community/gcc6 6.4.1-4 [installed]
> community/gcc6-libs 6.4.1-4 [installed]
> multilib/lib32-gcc-libs 7.2.0-3 [installed]
Hello, since this terminal is opengl rendered. could support for ttf fonts be added?
Running this on my arch linux machine (Linux 1.13.12) fails with error I can't interpret.
st version:
0.7
Terminal resized to 24 80
X Error of failed request: GLXBadFBConfig
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 34 ()
Serial number of failed request: 97
Current serial number in output stream: 96```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.