i have tried to isolate some methods and OpenGL ES calls to some normal c++ classes. But they doesn’t work. The same code works when i use it in the Objective C class with the context. How can i solve this problem? I like to make a little wrapper class with the context and the view because i like to make the same code on Android.
Can someone explain how to isolate the whole methods and OpenGL calls?
thanks! It’s right i didn’t use an unsigned int. I use the gcc compiler under iOS and it doesn’t give me a warning. So i didn’t find the solution for a while ^^ and it takes a lot of time to figure it out.