RobLoach / raylib-cpp

C++ Object Oriented Wrapper for raylib
https://robloach.github.io/raylib-cpp/
zlib License
673 stars 87 forks source link

Add FileData and FileText #300

Closed furudbat closed 8 months ago

furudbat commented 8 months ago

Add Wrapper for Files management functions (LoadFileData, LoadFileText, ...)

RobLoach commented 8 months ago

Great idea! 😉

RobLoach commented 8 months ago

With these additions, we'll be able to overload the other file methods too. Mind if we get a couple tests in place for them? Just something simple.

furudbat commented 8 months ago

Should be working I moved them from my other Project :^) ... I also add some tests.

I would recommend using a test framework like Catch2 or google-test, like I did in my fork.

RobLoach commented 8 months ago

Was considering catch2 a while ago, but wanted to keep the syntax similar to raylib formatting. And just needed some simple assertions anyway 😉