Skip to main content

Dev Update

nCine Dev Update 3

·3 mins
A lot of work has been carried out during the last three and a half months. First of all I have added some macros to allow asserts in the code, think about checks like this: ASSERT_MSG_X(index < size_, "Index %u is out of bounds (size: %u)", index, size_); The macro also invokes a breakpoint if a debugger is connected, allowing to inspect the context around the failure. It was a long needed feature that I finally had the time to implement. 😄

nCine Dev Update 2

During those three months I have been working on two big features. The first one has been the support of SDL2 GameController mapping format. Initially my plan was to build a layer on top of my joystick input functions and leave the mapping code outside, as helper functions in a file distributed along the source of my tests and only linked by them. Later on I decided to refactor everything and bring the code inside the engine, in an effort to make it easier for an application to transparently use it.

nCine Dev Update 1

During June and July 2017 I have been working as usual, in my spare time, on the project. 😉 The first big June addition has been the automatic screen culling of sprites, a very important feature needed in order to support games extending on multiple screens. The culling works on sprites of any kind (regular ones, particles, text nodes) and regardless of their scaling or rotation parameters. If those sprites are completely outside of the screen they will just not be rendered, saving draw calls from being issued.