C++/Max integration

BlitzMax Forums/BlitzMax Programming/C++/Max integration

Steve Elliott(Posted 2005) [#1]
I know C++ and BlitzMax can be used together in a limited way. But could you write a C++ program and just render using Max? If so how?


FlameDuck(Posted 2005) [#2]
What do you mean "Render using MAX"? Max renders using OpenGL/DirectX.


TartanTangerine (was Indiepath)(Posted 2005) [#3]
Don't see why not Steve, it's easy enough to get pointers to all the surfaces used for rendering, makes me wonder why you would want to do this.


Steve Elliott(Posted 2005) [#4]

wonder why you would want to do this.



tbh I have some efficient C++ code and would like to have Max take care of DirectX for now.


Leiden(Posted 2005) [#5]
You can do that, just create a bunch of Functions in your C++ code and then Import the C++ code into your BMX program and extern all the needed Functions.

You will also need to add this into your C++ code:

extern "C"
{
         // You Functions Go Here
}