Entries tagged "CPP"
09 mar 2014
Once again I am starting to integrate Lua in to the next generation of my engine. It's never a completely smooth process. Exactly where to draw the line between C++ and Lua logic is never immedietly clear.
16 dec 2013
I've been playing with building an App using qmake as the build system. I started with a simple QT App built using the wizard in QTCreator and tweaking it.
12 nov 2012
When coding with multiple threads it can get pretty tricky using system resources. Many can only be used in the main thread. The main thread is the thread that the OS creates to run your code and your first look at it is the main() entry point.
Many UI systems/compontents like Cocoa and QT can only be safely accessed when the code is running in the main thread. In general you should construct your code so that it's clear what is running in the main thread so the code should never need to ask. The simplest was to do this is to use a Thread Pool pattern but it's not always possible to write generic code that can be called from all threads....
27 oct 2012
This is more of a reminder to myself about confusing linker errors that can appear in XCode when you are working on large projects with many dependencies.
Everything compiles just fine but when it comes to linking you get errors like this....
27 feb 2012
I'm making some changes to the codebase that drives Max Astro before making my next game. The biggest change is that the engine is going to be controlled by Lua. Lua will run the main logic loop and lua will be the configuration language.
14 jun 2010
What Is Stripification?
Stripification is the process of turning lists of triangles in an arbitrary order into as many lists of triangles that contain adjacent edges. There is a great explanation of a triangle strip of wikipedia.
12 apr 2010
In OpenGL ES 2.0 glAlphaFunc isn't available, you have to implement it in a fragment shader. There isn't a lot of reference out there for this (not that I could find anyway) so I thought I'd write this up.
20 mar 2010
Bullet is an open source collision and physics simulation library written by Erwin Coumans who I believe worked or maybe still does work at SCEA (Sony Computer Entertainment America). Bullet provides a C++ API to a very robust Collision, Rigid Body and Soft body...