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 PSPPlatform : public Platform {
8 public:
9  std::string name() const override {
10  return "psp";
11  }
12 
13  Resolution native_resolution() const override {
14  Resolution native;
15  native.width = 480;
16  native.height = 272;
17  native.refresh_rate = 60; // FIXME?
18  return native;
19  }
20 
21  uint64_t available_ram_in_bytes() const override {
22  return MEMORY_VALUE_UNAVAILABLE;
23  }
24 
25  uint64_t total_ram_in_bytes() const override {
26  return MEMORY_VALUE_UNAVAILABLE;
27  }
28 
29  uint64_t available_vram_in_bytes() const override {
30  return MEMORY_VALUE_UNAVAILABLE;
31  }
32 
33  uint64_t process_ram_usage_in_bytes(ProcessID) const override {
34  return MEMORY_VALUE_UNAVAILABLE;
35  }
36 };
37 
38 
39 }
smlt::PSPPlatform
Definition: platform.h:7
smlt
Definition: animation.cpp:25
smlt::Platform
Definition: platform.h:18
smlt::Resolution
Definition: platform.h:10