mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
38
iphone/Maps/Classes/iosOGLContextFactory.h
Normal file
38
iphone/Maps/Classes/iosOGLContextFactory.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
#import "iosOGLContext.h"
|
||||
|
||||
#include "drape/graphics_context_factory.hpp"
|
||||
#include "drape/drape_global.hpp"
|
||||
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
|
||||
class iosOGLContextFactory: public dp::GraphicsContextFactory
|
||||
{
|
||||
public:
|
||||
iosOGLContextFactory(CAEAGLLayer * layer, dp::ApiVersion apiVersion, bool presentAvailable);
|
||||
~iosOGLContextFactory();
|
||||
|
||||
dp::GraphicsContext * GetDrawContext() override;
|
||||
dp::GraphicsContext * GetResourcesUploadContext() override;
|
||||
|
||||
bool IsDrawContextCreated() const override;
|
||||
bool IsUploadContextCreated() const override;
|
||||
|
||||
void WaitForInitialization(dp::GraphicsContext * context) override;
|
||||
|
||||
void SetPresentAvailable(bool available) override;
|
||||
|
||||
private:
|
||||
CAEAGLLayer * m_layer;
|
||||
dp::ApiVersion m_apiVersion;
|
||||
iosOGLContext * m_drawContext;
|
||||
iosOGLContext * m_uploadContext;
|
||||
|
||||
bool m_isInitialized;
|
||||
size_t m_initializationCounter;
|
||||
bool m_presentAvailable;
|
||||
std::condition_variable m_initializationCondition;
|
||||
std::mutex m_initializationMutex;
|
||||
};
|
||||
Reference in New Issue
Block a user