Code Monkey home page Code Monkey logo

termux-gui-c-bindings's People

Contributors

tareksander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

termux-gui-c-bindings's Issues

How to play audio?

I am now making a video player, but there is no struct like AddPcmRequest.

am timeout too short (Android 12 Teclast M40)

I've just been making my first test programs with the C API .

Initially installing via the dpkg archive I found the connection kept failing with errr = 6 (TGUI_ERR_EXCEPTION).

I rebuilt from latest github source and got the same issue.

After some brute force debugging with printfs I determined the exception was coming from the second timeout in Connection::Connection.

For some reason "termux-am" doesn't work on either of my android devices (Android 12 issue?) so it was falling through to "am" but am is slow to respond. 5 seconds is too short a timeout on my system after I upped the second timeout to 10 times the value (overkill :-) A crude connect and quit immediately test times at about 12 seconds.

I understand that termux-am, when working, is supposed to be faster, so maybe 5 secs is suitable there but I would suggest the timeout for "am" could be upped to 10s for more consistent results.

Could not connect to socket

when i try to run some example i get the error: Could not connect to socket.
And if i try to run an example that uses opengl i get: eglInitialize: 0x3001

Error

When i try to run buffer_gl.c, i get the error: No egl display

New tutorial

Please add a tutorial on how to detect touches in surfaceview

I still couldn't solve

I did not understand how to solve any of the problems, could you explain in more detail

How do I...

What is the lifecycle of a buffer and how do I change the buffer in case of screen orientation change(treating it like "windows has changed size, new buffer needed" on desktop)? tgui_create_image_view(), is this even the right type of view I need?

Basically I want to create bitmap gui that always occupies full screen and handles rotation.

https://gist.github.com/pachuco/4c769f1a55d1745fd38b76ea445ed3cc/fd91f9747c7694ef19c01ce1b9faaa8d103c0e83
This is my code so far. Feel free to poke at other deficiencies.

Cannot run exe due to missing abseil-cpp symbol

~/termuxgui $ gcc ./es2gears.c -o gears -lm -lEGL -lGLESv2 -ltermuxgui
~/termuxgui $ ./gears
CANNOT LINK EXECUTABLE "./gears": cannot locate symbol "_ZN4absl12lts_202301255MutexD1Ev" referenced by "/data/data/com.termux/files/usr/lib/libtermuxgui.so"...
~/termuxgui $

termux-gui-c is already the newest version (0.1.1).

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.