I m与SGAREnvioroment合作,我有以下错误:
www.un.org/Depts/DGACM/index_spanish.htm [(超级或自发)......]
在这一法典中:
@interface SG3DOverlayView (Private)
- (id) initGLES;
- (void) drawView;
- (BOOL) createFramebuffer;
- (void) destroyFramebuffer;
- (void) clearTouches;
@end
@implementation SG3DOverlayView
+ (Class) layerClass
{
return [CAEAGLLayer class];
}
-(id) initWithFrame:(CGRect)frame
{
if(self = [super initWithFrame:frame]) {
self = [self initGLES];
}
return self;
}
-(id) initGLES
{
self.multipleTouchEnabled = YES;
self.exclusiveTouch = YES;
CAEAGLLayer *eaglLayer = (CAEAGLLayer*) self.layer;
eaglLayer.opaque = YES;
eaglLayer.drawableProperties = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:FALSE], kEAGLDrawablePropertyRetainedBacking,
kEAGLColorFormatRGBA8, kEAGLDrawablePropertyColorFormat,
nil];
context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES1];
if(!context || ![EAGLContext setCurrentContext:context] || ![self createFramebuffer]) {
[self release];
return nil;
}
self.backgroundColor = [UIColor clearColor];
mainSubview = [[UIView alloc] initWithFrame:self.frame];
mainSubview.backgroundColor = [UIColor clearColor];
animationInterval = 1.0;
pinchTimer = nil;
dragging = NO;
currentSphereRadius = 0.0;
[self clearTouches];
return self;
}
下面是“主人”:
if(!context || ![EAGLContext setCurrentContext:context] || ![self createFramebuffer]) {
但是,正如你所看到的那样,自定在<代码>-(id) initWithFrame:CGRect)frame和-(id) initGLES
是非公开的,因此总是从-(id) initWithFrame:CGRect)frame
上传来。
So, may I have to do something to fix it?