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 LinuxPlatform : public Platform {
8 public:
9  std::string name() const override {
10  return "linux";
11  }
12 
13  Resolution native_resolution() const override;
14 
15  uint64_t available_ram_in_bytes() const override;
16  uint64_t total_ram_in_bytes() const override;
17  uint64_t available_vram_in_bytes() const override {
18  return MEMORY_VALUE_UNAVAILABLE;
19  }
20 
21  uint64_t process_ram_usage_in_bytes(ProcessID process_id) const override;
22 };
23 
24 }
smlt::LinuxPlatform
Definition: platform.h:7
smlt
Definition: animation.cpp:25
smlt::Platform
Definition: platform.h:18
smlt::Resolution
Definition: platform.h:10