Tag Archives: C++

Order of parameter evaluation, some pitfalls

Introduction In the C++ world, it’s a good idea to create multiple build configurations for your projects to try out different compilers. Especially when your project is open-source, you never know which compiler (version) people will use in the build … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

Assigning OpenCL parameters by name

In this article, I’ll explain to you a few ways of implementing “smart” parameter assignment to OpenCL kernels. I’ll not explain in detail what OpenCL is, just enough to give you the problem context. OpenCL is a framework for implementing … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Game development in sge/C++: Part IV (statechart)

Introduction Welcome back to the fourth “episode” of our journey to create a top down shooter game. Note that there were some minor changes to sge and I’ve updated the repository and the blog code. It’s nothing really noteworthy for … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Game development in sge/C++: Part III (input, signals)

Introduction In the last article we’ve seen how to draw objects on the screen. Now let’s do something completely different. Let’s take our spaceship and move it around using the keyboard. It’s a fairly simple task but, again, I feel … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 1 Comment

Game development in sge/C++: Part II (sprites)

Introduction Note: There’s a git repository at https://github.com/Phillemann/sgetutorial which includes limited installation instructions for the tutorial files as well as sge, fcppt and so on. Enjoy! In the last tutorial, we set up a little framework to build our game … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Game development in sge/C++: Part I (window creation)

Introduction This is part 1 of the series I called “Game development in sge/C++”. There are two reasons for this tutorial: There’s no real documentation for the game engine sge and no tutorial which shows how to use sge’s components … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Code snippet: easy lexicographical ordering

The C++ standard library provides the std::lexicographical_compare function which takes two iterator ranges and returns a boolean, indicating which of the ranges is smaller. But what if we have a data structure like this: for which we want to write … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment