Tracing OpenGL errors (1282)

The infamous 1282 error in OpenGL stands for GL_INVALID_OPERATION, and can be pretty annoying. A friend once described it as "GL_GENERIC_FUCK_YOU_ERROR" since it really doesn't tell you anything except that you are somehow using OpenGL wrong. The simple method of debugging this is to, line by line, place something like printf( "%d\n", glGetError() ); and then compile, rerun, and eventually [Read More]

Google SoC 2018. diary: Ep 5 - Cleaning up -- end of phase 1

A lot has changed since the last post. I realised that I had a ton of misconceptions about the workings of GNUstep. The code that I've written so far was messy, full of bugs, and sometimes just stupid and wrong. There are a couple of things that I've done this week. Firstly, I realised that I don't need my NSView-s to be compatible with NSOpenGLView - so I removed a [Read More]

Tying To Efficiently Mimic Object Oriented Programming In C

A couple of weeks back I gave myself the somewhat impossible task of writing a game/rendering engine in C. The "somewhat impossible" part relates to writing the engine in C. I actually think that writing rendering engines is awesome. There is so much computer science in those things, and it is overall much fun. So, while writing the damn thing in C, I encountered a serious problem. [Read More]