CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Win32Platform.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
11
13
14namespace CeresEngine {
15
20
22 class Win32Platform : public Platform {
23 public:
24 struct Pimpl;
25 friend struct Pimpl;
26
27 private:
30
31 public:
34
37
38 public:
40 void run() override;
41
43 void stop() override;
44
45 public:
51
52 public: // Queues
57
58 public: // FileSystem
61 };
62
63} // 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 Engine.hpp:38
Interface for accessing file systems.
Definition FileSystem.hpp:28
Definition Platform.hpp:20
Definition PlatformWindow.hpp:44
A platform implementation for win32.
Definition Win32Platform.hpp:22
void run() override
Starts running the main application run loop.
void stop() override
Requests the application to stop running.
friend struct Pimpl
Definition Win32Platform.hpp:25
UPtr< Pimpl > m
Hidden implementation class for the platform.
Definition Win32Platform.hpp:29
IFileSystem * getLocalFileSystem() const override
Gets the underlying platform local file system implementation.
UPtr< DispatchQueue > createDispatchQueue(DispatchQueueType type, StringView name="") override
Creates a new queue to which you can submit blocks.
UPtr< PlatformWindow > createWindow(const PlatformWindowDescriptor &descriptor) override
Creates a new platform window.
Win32Platform(Engine &engine)
Creates a new Win32 platform instance.
~Win32Platform() noexcept override
Creates a new Win32 platform instance.
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
Win32UserMessages
Definition Win32Platform.hpp:16
@ WM_USER_CALLBACK
Definition Win32Platform.hpp:17
@ WM_USER_STOP
Definition Win32Platform.hpp:18
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