Git Product home page Git Product logo

stgl's Introduction

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.

stgl's People

Contributors

aaptel avatar k0gamsx avatar sapphire-arches avatar colona avatar frign avatar medgar123 avatar electronicru avatar garbeam avatar ericpruitt avatar hiltjo avatar schachmat avatar suiginsoft avatar michaelforney avatar blackbit42 avatar esjeon avatar mvdan avatar radare avatar osandov avatar pilona avatar v4hn avatar agonrex avatar wengxt avatar mihailzenkov avatar jceb avatar brandoninvergo avatar amade avatar nullplan avatar drm00 avatar rafaelgg avatar rianhunter avatar

Stargazers

Volodymyr Boiko avatar Álvaro Torralba avatar Ahmad avatar Devine Lu Linvega avatar Eli Heuer avatar Srinivas Kaza avatar Justin Restivo avatar  avatar Erik Haugrud avatar Antares avatar Emmanuel Lepage Vallée avatar Joey Pabalinas (jp) avatar James Forcier avatar Adrian Pistol avatar Carson Harper avatar ym555 avatar Michael McMahon avatar Nils Uliczka avatar Given Morris avatar Antenore Gatta avatar  avatar Amirul Menjeni avatar  avatar  avatar Emanuel Landeholm avatar Fuan avatar Steven Oud avatar

Watchers

 avatar Carson Harper avatar  avatar

Forkers

acidburn0zzz

stgl's Issues

Hello, I cant build; non-trivial designated initializers not supported

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]

Fails to run on arch linux

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```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.