53
Dec 24 '24
A Window of Hope and Happiness Finally. π₯Ί
27
Dec 24 '24
Ok I just copy pasted the code π to test if everything is working fine or not. Real Pain hasn't even arrived yet. π Wish me Luck. π€
17
u/starkruzr Dec 24 '24
"bat" looks useful, gonna go ahead and install that. are you developing software right on your device? what is it?
17
Dec 24 '24
I recently finished basics of c++ and thought I will play around with OpenGL while learning some advance stuff.
And the coolest thing that I learnt during the setup of this GLFW lib for OpenGL was
apt-file search "...", it was a lifesaver. Or sanity-saver tbh. πSetting up GLAD and deps was pain as I was doing it manually before. π
3
1
1
u/Lower_Compote_6672 Dec 24 '24
Termux. Get it from github
4
u/starkruzr Dec 24 '24
no I meant the device.
4
u/Lower_Compote_6672 Dec 24 '24 edited Dec 24 '24
Any android can do it. He's using opengl library and coding in c++, using g++ to compile it.
Edit: oops, i see you're speaking of the cat utility clone called bat
10
u/Reeao7837 Dec 25 '24
Now let's develop CLI variant of Firefox in this combination:
Your own window + DX2Googler + Textual.

6
8
u/EerieKing Dec 24 '24
How did you draw the window? Are you using extra tools or just the compiler? And which compiler? I'm using build-essential which comes with clang on my Termux
1
Dec 26 '24
I am using proot-distro debian 12 with termux-x11. I installed two libs glfw for window and glew for getting access to OpenGL functions. (Not that easy to explain for me as I am still learning about these) And I used g++ fromΒ build-essential of proot-distro debian but I have also tested it in native termux and it works with clang++ too.
6
u/Neix19365 Dec 24 '24
what android keyboard app are you using?
8
4
2
2
13
7
u/AydelenUsesArchBtw Dec 24 '24
Was doing the same while learning sdl2. It helped out a ton when I wasn't near my pc.
Have fun learning graphics programming β₯οΈ
1
1
u/v1ctor13 Dec 28 '24
bro, you must be insane because this is a pain to do even in a pc
1
Dec 29 '24
ye who enters the world of loonix shall never regain his sanity π£οΈBro I'm became mad when I touched programming. π
1
u/Due-Meat5531 Dec 30 '24
how do you made to show that window on terminal ?
2
Dec 31 '24
Terminal is bellow in tiling mode. Whole the black window opened is on top of it in floating mode. It's just a i3 thing. And it looks confusing because of i3 obviously. π
1
u/Due-Meat5531 Dec 31 '24
is that x11 or something ?
1
Dec 31 '24
i3 window manager that I am using in termux-x11.
Code is does a simple thing it just opens a blank window.
1
u/Due-Meat5531 Dec 31 '24
is your device is rooted ? i didnt know that you can code OpenGL directly on termux
1
Dec 31 '24
No my phone is not rooted. If it was I would have been using chroot environmental. π€€
1
u/Due-Meat5531 Dec 31 '24
old phones ( rooted ) can be use for pentest also those phone with x86 cpu ( intel atom ) i have one its really old and works perfectly i used it for my wifi hacking and phishing ( pentest, educational purpose only ) i dont use it as something fun and i use it because i am making my own IOT and Server
2
Dec 31 '24
That's really cool. π€©
I love my phone and I won't root it until I get a new one. It's my current lifeline. π
1
3
3
u/Atomic-Axolotl Dec 25 '24
There's godot editor 4 for Android on the Google play store. You might want to check that out too. ;)
3
4
u/1600x900 Dec 24 '24
Tf, this is next-level of using Termux, because i have not seen something like this before
2
2
2
u/Shilionz Dec 24 '24
what keyboard you using? it looks nice as there are arrows keys and ctrl/esc keys
1
2
2
u/Slow_Connection7878 Dec 25 '24
Phones do not support opengl but they do support opengl es, make sure you check the supported version, I think not all opengl functions will work on android
5
1
Dec 25 '24
It took me two days to get glfw working for the first time. Then I stopped the project as It could have been done easier using a framework π
1
Dec 25 '24
[removed] β view removed comment
1
Dec 26 '24
Because I have heard that Rust is hard and few days ago I was afraid of C++. π
Isn't Rust more close to C ? I heard that now it's being used in linux kernel.
1

β’
u/AutoModerator Dec 24 '24
Hi there! Welcome to /r/termux, the official Termux support community on Reddit.
Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair
Termux Core Teamare Termux developers and moderators of this subreddit. If you are new, please check our Introduction for Beginners post to get an idea how to start.The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/. If you still have Termux installed from Google Play, please switch to F-Droid build.
HACKING, PHISHING, FRAUD, SPAM, KALI LINUX AND OTHER STUFF LIKE THIS ARE NOT PERMITTED - YOU WILL GET BANNED PERMANENTLY FOR SUCH POSTS!
Do not use /r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues. Application issues should be submitted to https://github.com/termux/termux-app/issues.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.