Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

Simple graphics and I/O for C - and hello!! :)

xlucas

New Coder
Hello, everybody! I'm Lucas. This is my first post here. I signed up several days ago, but that day my connection was awful and couldn't post anything, so I'm here today to introduce myself and to make the question that led me to search for a C programming forum, which took me here 🙂

The thing is this. I love C language because it's widely used, very clear and not too high level. It's also easy to compile almost everywhere. The problem is this comes at a cost. C has always refused to incorporate things having to do with the interface into its standard, so on its own, it's only a file-managing, terminal-based language. When you want to have graphics or real-time input, you need to rely on 3rd-party libraries and there, you lose all the convenience of portability and simplicity I would've chosen C for.

I've seen that many people use libraries like SDL as a complement, but SDL is unnecessarily huge and it can't be statically linked... at least, not easily. Other libraries are not so large but still, bring too much in for somebody who just wants to display simple graphics and read a few keys. I would like something that I can carry with me, that I can distribute with my programs so users don't need to install it. I want my program to just run on a freshly installed OS and to just compile on a freshly installed GCC. Something that won't consume a hundred megabytes or more because some of my programs are just a small test. Basically, something that serves as a wrapper between C and X11 for Linux or GDI for Windows (I think it's called GDI). Something like that.

What would you guys recommend? Thanks!
 
Maybe try SFML (Simple and Fast Multimedia Library), Allegro, or Raylib.
I personally do not know much about this but that AI seems to. I copied and pasted your entire question to get that. X E.
 

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom