CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
EmscriptenPlatform.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "EmscriptenRunLoop.hpp"
11
13
14namespace CeresEngine {
15
17 public:
18 struct Pimpl;
19 friend struct Pimpl;
20
21 private:
24
25 public:
28
31
32 public: // Main RunLoop
34 void run() final;
35
37 void stop() final;
38
39 public:
45
46 public:
48 };
49
50} // namespace CeresEngine
An object that manages the execution of tasks serially or concurrently on your app's main thread or o...
Definition DispatchQueue.hpp:36
Definition EmscriptenPlatform.hpp:16
UPtr< Pimpl > m
Hidden implementation class for the platform.
Definition EmscriptenPlatform.hpp:23
UPtr< DispatchQueue > createDispatchQueue(DispatchQueueType type, StringView name="") override
Creates a new queue to which you can submit blocks.
void stop() final
Requests the application to stop running.
friend struct Pimpl
Definition EmscriptenPlatform.hpp:19
void run() final
Starts running the main application run loop.
EmscriptenPlatform(Engine &engine)
Creates a new Emscripten platform instance.
UPtr< PlatformWindow > createWindow(const PlatformWindowDescriptor &descriptor) override
Creates a new platform window.
~EmscriptenPlatform() noexcept override
Creates a new Emscripten platform instance.
Definition Engine.hpp:38
A platform implementation for POSIX-based systems.
Definition POSIXPlatform.hpp:15
Definition PlatformWindow.hpp:44
Definition Application.hpp:19
std::unique_ptr< T, Deleter > UPtr
UPtr is a smart pointer that owns and manages another object through a pointer and disposes of that o...
Definition SmartPtr.hpp:28
DispatchQueueType
Specifies the type of the queue.
Definition DispatchQueue.hpp:17
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
A structure that describes how to create a new window.
Definition PlatformWindow.hpp:24