Its fairly common to see libraries that are written in C++ but only offer a C API (some also offer C & C++ API’s). As someone who much prefers to code in C, I’ve sometimes needed to link my C application with a library that’s written in C++ (for example ODE). My initial solution was…
CRT scan line retro shader effect.
Knowing I would need a render texture to draw on, in order to make a screen effect I simply started with the RayLib letterbox example. Which is a little ironic as I soon discovered that the approach I’m using doesn’t scale well, I’ve ended up limiting the windowed mode and render texture to quarter HD…
Aiming at 3d moving targets
Looking at the previous posts algorithm I realized that as it was time and vector dependent it should be very easy to get it working in 3d, and indeed it was very easy! you can grab the code for it here….
Aiming at moving targets…
I ended up during my research finding quite a number of different articles on this problem, however in the main they boiled down to basically the same maths with variations. I have to be honest quadratic equations are a little beyond me, and unsurprisingly I wasn’t able to find a decent explanation of the (mathematical)…
Reference counting with C
For the purposes of this post, a very simple scenario is going to be considered. Given a Model structure that holds a pointer to a Mesh structure, the issue to be addressed is to whether or not there are references to a particular Mesh. Once all Models that reference a Mesh have been freed we…
Review – Elecrow 5″ LCD
While this product is intended to be used with a Raspberry Pi, I bought it specifically to use with my FPGA board, having a HDMI (DVI) port on such a tiny board, just inspires a mobile build! While there is a PI type connector on the board, you can simply use the LCD as a…
ULX3S – Z80 redux!
While originally waiting for my board to arrive I found and got a Z80 soft core working (in simulation) I was a little disappointed that tri-state logic seems to cause issues with yosys (I think that might be what was causing the logic “loops” later down the toolchain anyhow). Having recently gotten around to soldering…
ULX3S micro python local programming speeds
Well, you could knock me down with a feather, if you thought remote programming was blisteringly fast….. File name Time 1 Time 2 Time 3 Time 4 Time 5 Ave Time (ms) /blink.bit 518 518 548 521 522 525 /blink.bit.gz 1140 1140 1142 1141 1141 1141 /blinkc.bit 86 84 87 83 86 85 /blinkc.bit.gz 189…
ULX3S micro python remote programming speeds
It was pointed out to me that ecppack has a compress option and it has quite the impact on programming speeds, so I thought I’d do a simple test and try a few different compression combinations and see what impact they have (you never quite know with these things till you try) File name Size…
ULX3S (ECP5 FPGA) first look.
I’ve been wanting to try project Trellis out for a little while now, I was impressed with the open source toolchain for the ICE40, however the ECP5 has everyones favourite feature (MOAR!) it’s basically bigger and faster – what’s not too love. There is a slight issue with the current state of the toolchain, but…