Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "raylib"
-
Some days I feel like I really know what I am doing and today was not one of these days...
Working on a game engine using Vala and now using Raylib in the backend for rendering and input.
Wrote a VAPI for Raylib and when I was doing the 'Rectangle' struct... I made it's members integers when they are floats...
So this whole time; when using a camera everything would jitter like crazy.... because I was taking the transform which is all floats... rounding it then casting to an int only for the int to be cast into a float again....
Lo and behold; changing the members to floats and removing the rounding and casting makes everything silky smooth...
I have been debugging every bit of my current render loop trying to work this out when it was 100% unrelated.... I hate myself sometimes1 -
Dont you just love spending like 2 hours playing around with a library and doing some math, on real pen and paper, only to find out the library had a function for what you need already there and available
:)3 -
For anyone interested in Digital Signal Processing, I wrote a little tool in C[1] that implements the FFT algorithm and takes audio samples to visualise the spectrum using raylib.
I might later add low pass and high pass filters.
[1]: https://github.com/mirimmad/FFTViz8 -
Trying to port my raylib game (written in Golang) to C to compile to web. When I add raylib to /usr/ it somehow fucked up the Go game and now I cannot run the original game.3
-
Trying (having) to develop game by Golang. Pick Raylib as library to go. Got stuck by cgo with goroutine somehow.
Deadline is coming...