yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
ios_host.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
#include "absl/status/status.h"
6
#include "
app/application.h
"
7
8
namespace
yaze
{
9
namespace
ios {
10
11
struct
IOSHostConfig
{
12
AppConfig
app_config
;
13
bool
auto_start
=
true
;
14
};
15
16
class
IOSHost
{
17
public
:
18
IOSHost
() =
default
;
19
~IOSHost
();
20
21
absl::Status
Initialize
(
const
IOSHostConfig
& config);
22
void
Tick
();
23
void
Shutdown
();
24
25
void
SetMetalView
(
void
* view);
26
void
*
GetMetalView
()
const
;
27
28
private
:
29
IOSHostConfig
config_
{};
30
void
*
metal_view_
=
nullptr
;
31
bool
initialized_
=
false
;
32
};
33
34
}
// namespace ios
35
}
// namespace yaze
application.h
yaze::ios::IOSHost
Definition
ios_host.h:16
yaze::ios::IOSHost::Shutdown
void Shutdown()
Definition
ios_host.mm:44
yaze::ios::IOSHost::metal_view_
void * metal_view_
Definition
ios_host.h:30
yaze::ios::IOSHost::Initialize
absl::Status Initialize(const IOSHostConfig &config)
Definition
ios_host.mm:20
yaze::ios::IOSHost::Tick
void Tick()
Definition
ios_host.mm:37
yaze::ios::IOSHost::SetMetalView
void SetMetalView(void *view)
Definition
ios_host.mm:52
yaze::ios::IOSHost::config_
IOSHostConfig config_
Definition
ios_host.h:29
yaze::ios::IOSHost::GetMetalView
void * GetMetalView() const
Definition
ios_host.mm:57
yaze::ios::IOSHost::~IOSHost
~IOSHost()
Definition
ios_host.mm:16
yaze::ios::IOSHost::IOSHost
IOSHost()=default
yaze::ios::IOSHost::initialized_
bool initialized_
Definition
ios_host.h:31
yaze
Definition
patch_export_usage.cc:8
yaze::AppConfig
Configuration options for the application startup.
Definition
application.h:24
yaze::ios::IOSHostConfig
Definition
ios_host.h:11
yaze::ios::IOSHostConfig::app_config
AppConfig app_config
Definition
ios_host.h:12
yaze::ios::IOSHostConfig::auto_start
bool auto_start
Definition
ios_host.h:13
src
app
platform
ios
ios_host.h
Generated by
1.10.0