May 12, 2024 · 1 min read · I started working on the button but couldn't do much today because I was quite busy. I always try to squeeze in as much programming time as possible. Button Structure struct StartButton { int x; int y; float width; float height; }; G...
Join discussion
May 12, 2024 · 1 min read · I worked on creating the ball. SDL alone can't generate circles. I used the solution from this post to draw it. Ball structure struct Ball { float x; float y; float radius; }; Generate Ball void GenerateBall(struct Ball ball, SDL_Rendere...
Join discussion
May 10, 2024 · 2 min read · One more session working on the text box. I think it is ready. I created a new TTF_Font variable named textboxFont and changed the position of the interiorTextBox . TTF_Font *textboxFont; textboxFont = TTF_OpenFont(fontResource.location, 50); TTF_Se...
Join discussion
May 10, 2024 · 2 min read · I kept working on the text box. When clicked, it lets the user enter only digits; letters are not accepted, and the value cannot exceed three digits. After exiting edit mode, the cursor is disabled, and the value is displayed. The only thing left is ...
Join discussion
May 8, 2024 · 2 min read · I worked on the application's text box, creating two new structures to manage the interior and exterior areas of the box. The exterior is a simple static rectangle with colored borders. The interior will expand or contract depending on the number of ...
Join discussion
May 6, 2024 · 1 min read · After a lot of work, I managed to completely refactor the codebase. I am very happy with the result. The code has been divided into multiple source files and can now be scaled or edited very easily. I received two replies on my post about my constexp...
Join discussion
May 2, 2024 · 2 min read · This session was all about creating a Mac executable file and move the resources inside it. I updated the CMakeLists.txt file to create a MacOS bundle file during the build process and copy the app's resources into the container. add_subdirectory("${...
Join discussion
May 1, 2024 · 1 min read · Combined the Resource struct and the FindResource function to generate a path to the font file. To create the path, I switched from using getBundlePath to getExecutablePath because I am not making a .app executable. char* FindResource(char *fileLocat...
Join discussion