Programming Log 2022 #1: Starfield

Starfield running on 3 platforms Changelog: Support for Linux platform in the toolchainusing cmake, CodeBlocks with Unix Makefiles, on Ubuntu VMSupport for Android platform in the toolchainusing (only) Visual Studio 2022 with mobile development tools for C++ and cmakesimple starfield app using software rendering After months of relative inactivity, I am back working on the…

Coding update: I’m terrorized by my own unit-tests

I stopped working on the code for many weeks because I had other things to on my mind, but also because the work I planned was not super exciting. I want to trust my "basic" libraries, math, core and image. They contain relatively simple code that will be the building blocks of the rest of…

Coding update: 2D Text Rendering

Making things a lot simpler I've reworked the code for bitmap fonts that I had before. What I had previously was working but in the end was very complicated for no reason. The new font library has the following (limited) features: request any TrueType font installed on the system, with some options (size, italic, bold,…

Coding update – lighting and code removal

Slow progress is still progress These are the things I worked on since last article: Implemented the Lighting tutorials of LearnOpenGL - result visible hereAdded GLSL file types to code documentation (and added shader files to tutorial documentation)A LOT of code simplificationeffort to remove all needlessly complex structures and data typesremove all macros except dbuffer…

Coding update – tools, improvements and (re)Learn OpenGL

It's been a while since my last post, I was on holidays and also some of the things below kept me quite busy. Here is a non exhaustive list of what I've worked on: cmake scripts: I've finally managed to make targets dependent on files that are not source, so if that text or image…

Coding update: new libraries, graphics and input

I'm still coding my way back to where I was before I decided to switch to C instead of C++. I updated the documentation with the new libs (I have to write hundreds of comments though...sigh...). Graphics The graphics library is a wrapper for OpenGL. A lot of functions are not doing much more than…

C Code joy: the image library

I have transferred my C++ image library to C. Fortunately that wasn't too hard, and I've been able to make many improvements along the way. After the porting to C it's cleaner, way more modular, I love it. Features supported image formats:bitmap (.BMP)JPEGPNGGIF (some cases not handled like interlaced data)supported pixel formatsindexed images 1 to…