Sunday, July 3, 2011

Mixing C or C++ function with Objective-C

As you can see in the screenshot that C++ methods (e.g. GLuint BuildShader(const char* source, GLenum shaderType) ) are written above @implementation in objective-C .m file.
I am not saying this is the only way but this is one of the ways I use to mix the C++ methods with my objective-C code.



No comments:

Post a Comment