2

I get an OpenGL view by

+ (Class) layerClass
{
    return [CAEAGLLayer class];
}

and I want to add sublayer to it by

CAEAGLLayer *eaglLayer2 = [[CAEAGLLayer alloc] init];
[self.layer addSubLayer:eaglLayer2];

The purpose to think this is that I want to draw different thing on different layer so that I can remove something by simply call removeSubLayer:enter code here.

Is it available?

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
Joe Jia
  • 109
  • 1
  • 3

0 Answers0