title: Calling Objective-C method from C++ member function?
body: <p>I have a class (<code>EAGLView</code>) which calls a member function of a <code>C++</code> class without problems. Now, the problem is that I need to call in that <code>C++</code> class a <code>objective-C</code> <code>function</code> <code>[context renderbufferStorage:GL_RENDERBUFFER fromDrawable:(CAEAGLLayer*)self.layer];</code> which I cannot do in <code>C++</code> syntax.</p>
  
  <p>I could wrap this <code>Objective-C</code> call to the same <code>Objective-C</code> class which in the first place called the C++ class, but then I need to somehow call that method from <code>C++</code>, and I cannot figure out how to do it.</p>
  
  <p>I tried to give a pointer to <code>EAGLView</code> object to the C++ member function and include the "<code>EAGLView.h</code>" in my <code>C++</code> class header but I got 3999 errors.. </p>
  
  <p>So.. how should I do this? An example would be nice.. I only found pure <code>C</code> examples of doing this.</p>