Search code examples
iosxcodeopengl-esantialiasing

How do I use antialiasing programmatically in OpenGl ES Xcode?


So the title pretty much says it already, I use the OpenGl ES template in Xcode to create a game. I use triangles for my code.

So what I want is basically the same like here, just for iOS instead of Android.

Can anyone help me please?


Solution

  • While initializing the GLKView, call this to enable 4x MSAA, with view being your GLKView instance:

    [view setDrawableMultisample: GLKViewDrawableMultisample4X];