Corrected getContext accessor method

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4066
This commit is contained in:
kearwood
2012-08-16 17:26:15 +00:00
parent 29e2181c7e
commit aef37169cb
2 changed files with 2 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ typedef enum KREngineParameterType {KRENGINE_PARAMETER_INT, KRENGINE_PARAMETER_F
KRCamera m_camera;
}
@property(nonatomic, readonly) KRContext *context;
@property(nonatomic, readonly, assign) KRContext context;
@property(nonatomic, retain) NSString *debug_text;
- (id)initForWidth: (GLuint)width Height: (GLuint)height;

View File

@@ -49,13 +49,9 @@ using namespace std;
@implementation KREngine
@synthesize debug_text = _debug_text;
@synthesize context = m_context;
double const PI = 3.141592653589793f;
-(KRContext *)getContext
{
return &m_context;
}
- (id)initForWidth: (GLuint)width Height: (GLuint)height
{
if ((self = [super init])) {