Using C efficiently in a game
BlitzMax Forums/BlitzMax Beginners Area/Using C efficiently in a game
| ||
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) |
| ||
direct import of libraries |
| ||
Before the GUI mod came out, I used it to add a higher resolution timer and to change the window title (on Mac.) |
| ||
Can someone point me in the direction of a tutorial for creating a libraries and using it in BMAX? |
| ||
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 :-) |