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;
|
||||
}
|
||||
|
||||
@property (nonatomic) MacOSXPeerInfo *peer_info;
|
||||
@property (nonatomic) GLuint textureID;
|
||||
- (MacOSXPeerInfo*) peer_info;
|
||||
- (GLuint) textureID;
|
||||
|
||||
- (void) setPeer_info: (MacOSXPeerInfo*)input;
|
||||
- (void) setTextureID: (GLuint)input;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
@ -118,8 +122,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXCanvasPeerInfo_nInitHandle
|
|||
// rotates a red square when asked to draw
|
||||
@implementation PBufferGLLayer
|
||||
|
||||
@synthesize peer_info;
|
||||
@synthesize textureID;
|
||||
//@synthesize peer_info;
|
||||
//@synthesize textureID;
|
||||
|
||||
// override to draw custom GL content
|
||||
-(void)drawInCGLContext:(CGLContextObj)glContext
|
||||
|
@ -191,4 +195,20 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_MacOSXCanvasPeerInfo_nInitHandle
|
|||
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
|
Loading…
Reference in New Issue