forked from organicmaps/organicmaps
[ios] Minor code style tuning
This commit is contained in:
parent
faf7e68a95
commit
0cb6298cd1
5 changed files with 12 additions and 49 deletions
|
@ -39,7 +39,6 @@
|
|||
|
||||
- (void) applicationDidFinishLaunching: (UIApplication *) application
|
||||
{
|
||||
LOG(LINFO, ("Application started finishing launching"));
|
||||
// Initialize Sloynik engine.
|
||||
// It takes long for the first time, so we do it while startup image is visible.
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
|
||||
|
@ -53,8 +52,6 @@
|
|||
// Add the tab bar controller's current view as a subview of the window
|
||||
[window addSubview:mapViewController.view];
|
||||
[window makeKeyAndVisible];
|
||||
|
||||
LOG(LINFO, ("Application did finished finishing launching"));
|
||||
}
|
||||
|
||||
- (GuideViewController *)guideViewController
|
||||
|
|
|
@ -1,20 +1,10 @@
|
|||
/*
|
||||
*
|
||||
* RenderBuffer.hpp
|
||||
* Maps
|
||||
*
|
||||
* Created by Siarhei Rachytski on 8/15/10.
|
||||
* Copyright 2010 OMIM. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RenderContext.hpp"
|
||||
#include "../../../std/shared_ptr.hpp"
|
||||
#include "../../../yg/render_target.hpp"
|
||||
|
||||
#import <QuartzCore/CAEAGLLayer.h>
|
||||
@class CAEAGLLayer;
|
||||
|
||||
namespace iphone
|
||||
{
|
||||
|
|
|
@ -1,19 +1,14 @@
|
|||
/*
|
||||
* RenderBuffer.mm
|
||||
* Maps
|
||||
*
|
||||
* Created by Siarhei Rachytski on 8/15/10.
|
||||
* Copyright 2010 OMIM. All rights reserved.
|
||||
*
|
||||
*/
|
||||
#import <QuartzCore/CAEAGLLayer.h>
|
||||
|
||||
#include "RenderBuffer.hpp"
|
||||
|
||||
#include "../../../yg/internal/opengl.hpp"
|
||||
#include "../../../yg/utils.hpp"
|
||||
|
||||
namespace iphone
|
||||
{
|
||||
RenderBuffer::RenderBuffer(shared_ptr<RenderContext> renderContext, CAEAGLLayer * layer) : m_renderContext(renderContext)
|
||||
RenderBuffer::RenderBuffer(shared_ptr<RenderContext> renderContext, CAEAGLLayer * layer)
|
||||
: m_renderContext(renderContext)
|
||||
{
|
||||
OGLCHECK(glGenRenderbuffersOES(1, &m_id));
|
||||
makeCurrent();
|
||||
|
|
|
@ -1,26 +1,17 @@
|
|||
/*
|
||||
* WindowHandle.hpp
|
||||
* Maps
|
||||
*
|
||||
* Created by Siarhei Rachytski on 8/15/10.
|
||||
* Copyright 2010 OMIM. All rights reserved.
|
||||
*
|
||||
*/
|
||||
#import "RenderContext.hpp"
|
||||
|
||||
#include "../../../map/window_handle.hpp"
|
||||
#include "../../../yg/screen.hpp"
|
||||
#include "RenderContext.hpp"
|
||||
#import "EAGLView.h"
|
||||
|
||||
@class EAGLView;
|
||||
|
||||
namespace iphone
|
||||
{
|
||||
class WindowHandle : public ::WindowHandle
|
||||
{
|
||||
private:
|
||||
EAGLView * m_view;
|
||||
public:
|
||||
WindowHandle(EAGLView * view);
|
||||
EAGLView * m_view;
|
||||
|
||||
void invalidateImpl();
|
||||
public:
|
||||
WindowHandle(EAGLView * view);
|
||||
virtual void invalidateImpl();
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
/*
|
||||
* WindowHandle.mm
|
||||
* Maps
|
||||
*
|
||||
* Created by Siarhei Rachytski on 8/15/10.
|
||||
* Copyright 2010 OMIM. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#import "WindowHandle.h"
|
||||
#import "EAGLView.h"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue