Remove the use of Properties from Objective C code to allow binary compatibility on OS X < 10.5
This commit is contained in:
parent
cfe74c2013
commit
c9cac6406b
|
@ -55,8 +55,12 @@
|
||||||
BOOL canDraw;
|
BOOL canDraw;
|
||||||
}
|
}
|
||||||
|
|
||||||
@property (nonatomic) MacOSXPeerInfo *peer_info;
|
- (MacOSXPeerInfo*) peer_info;
|
||||||
@property (nonatomic) GLuint textureID;
|
- (GLuint) textureID;
|
||||||
|
|
||||||
|
- (void) setPeer_info: (MacOSXPeerInfo*)input;
|
||||||
|
- (void) setTextureID: (GLuint)input;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,8 +122,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXCanvasPeerInfo_nInitHandle
|
||||||
// rotates a red square when asked to draw
|
// rotates a red square when asked to draw
|
||||||
@implementation PBufferGLLayer
|
@implementation PBufferGLLayer
|
||||||
|
|
||||||
@synthesize peer_info;
|
//@synthesize peer_info;
|
||||||
@synthesize textureID;
|
//@synthesize textureID;
|
||||||
|
|
||||||
// override to draw custom GL content
|
// override to draw custom GL content
|
||||||
-(void)drawInCGLContext:(CGLContextObj)glContext
|
-(void)drawInCGLContext:(CGLContextObj)glContext
|
||||||
|
@ -191,4 +195,20 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXCanvasPeerInfo_nInitHandle
|
||||||
return peer_info->canDrawGL ? YES : NO;
|
return peer_info->canDrawGL ? YES : NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (MacOSXPeerInfo*) peer_info {
|
||||||
|
return peer_info;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (GLuint) textureID {
|
||||||
|
return textureID;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) setPeer_info: (MacOSXPeerInfo*)input {
|
||||||
|
peer_info = input;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) setTextureID: (GLuint)input {
|
||||||
|
textureID = input;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
Loading…
Reference in New Issue