Using C efficiently in a game

BlitzMax Forums/BlitzMax Beginners Area/Using C efficiently in a game

dothedru22(Posted 2006) [#1]
I think its great that you can use C with blitzmax programs but im trying to find a use for it. It would be really nice if i could use some of blitz max's command set in c and vise versa but i cant really do anything between c and blitzmax. what are ya'll using it for?(besides building modules and stuff)


TartanTangerine (was Indiepath)(Posted 2006) [#2]
direct import of libraries


LeisureSuitLurie(Posted 2006) [#3]
Before the GUI mod came out, I used it to add a higher resolution timer and to change the window title (on Mac.)


siread(Posted 2006) [#4]
Can someone point me in the direction of a tutorial for creating a libraries and using it in BMAX?


Dreamora(Posted 2006) [#5]
Import "someclibrary you found on the net.c"

Will import it.
You then need to declare all functions of the C file you want to use within an extern "C" block for later usage.

BRL module sources are a good source to see how the whole thing is working.


For creating libraries you do not need C, you can write whole modules in BM directly :-)