Simulant  21.12-194
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
platform.h
1 #pragma once
2 
3 #include "../../platform.h"
4 
5 namespace smlt {
6 
7 class DreamcastPlatform : public Platform {
8 public:
9  std::string name() const override {
10  return "dreamcast";
11  }
12 
13  Resolution native_resolution() const override {
14  Resolution native;
15  native.width = 640;
16  native.height = 480;
17  native.refresh_rate = 60;
18  return native;
19  }
20 
21  uint64_t available_ram_in_bytes() const override;
22  uint64_t total_ram_in_bytes() const override;
23 
24  uint64_t available_vram_in_bytes() const override;
25 
26  uint64_t process_ram_usage_in_bytes(ProcessID process_id) const override;
27 };
28 
29 }
smlt
Definition: animation.cpp:25
smlt::Platform
Definition: platform.h:18
smlt::DreamcastPlatform
Definition: platform.h:7
smlt::Resolution
Definition: platform.h:10