mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Cleanup.
This commit is contained in:
parent
ab3fc19230
commit
a17be960c6
2 changed files with 8 additions and 7 deletions
|
@ -43,7 +43,7 @@ namespace entry
|
|||
m_mte.m_argc = 1;
|
||||
m_mte.m_argv = const_cast<char**>(argv);
|
||||
|
||||
m_eventQueue.postSizeEvent(720, 1024);
|
||||
m_eventQueue.postSizeEvent(768, 1024);
|
||||
|
||||
m_thread.init(MainThreadEntry::threadFunc, &m_mte);
|
||||
}
|
||||
|
@ -94,14 +94,14 @@ namespace entry
|
|||
|
||||
using namespace entry;
|
||||
|
||||
@interface EAGLView : UIView
|
||||
@interface View : UIView
|
||||
{
|
||||
CADisplayLink* m_displayLink;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation EAGLView
|
||||
@implementation View
|
||||
|
||||
+ (Class)layerClass
|
||||
{
|
||||
|
@ -128,6 +128,7 @@ using namespace entry;
|
|||
if (nil == m_displayLink)
|
||||
{
|
||||
m_displayLink = [self.window.screen displayLinkWithTarget:self selector:@selector(renderFrame)];
|
||||
[m_displayLink setFrameInterval:1];
|
||||
[m_displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
|
||||
}
|
||||
}
|
||||
|
@ -151,11 +152,11 @@ using namespace entry;
|
|||
@interface AppDelegate : UIResponder<UIApplicationDelegate>
|
||||
{
|
||||
UIWindow* m_window;
|
||||
EAGLView* m_view;
|
||||
View* m_view;
|
||||
}
|
||||
|
||||
@property (nonatomic, retain) UIWindow* m_window;
|
||||
@property (nonatomic, retain) EAGLView* m_view;
|
||||
@property (nonatomic, retain) View* m_view;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -168,7 +169,7 @@ using namespace entry;
|
|||
{
|
||||
CGRect rect = [ [UIScreen mainScreen] bounds];
|
||||
m_window = [ [UIWindow alloc] initWithFrame: rect];
|
||||
m_view = [ [EAGLView alloc] initWithFrame: rect];
|
||||
m_view = [ [View alloc] initWithFrame: rect];
|
||||
|
||||
[m_window addSubview: m_view];
|
||||
[m_window makeKeyAndVisible];
|
||||
|
|
|
@ -122,7 +122,7 @@ namespace bgfx
|
|||
{ "GL_OES_texture_float_linear", false, true },
|
||||
{ "GL_OES_texture_half_float", false, true },
|
||||
{ "GL_OES_texture_half_float_linear", false, true },
|
||||
{ "GL_OES_vertex_array_object", false, true },
|
||||
{ "GL_OES_vertex_array_object", false, !BX_PLATFORM_IOS },
|
||||
{ "GL_OES_vertex_half_float", false, true },
|
||||
{ "GL_OES_vertex_type_10_10_10_2", false, true },
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue