/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/Foundation/Platform/PlatformDesc.h
38 строк
664 B
Jan Krassnigg
Further refactor of platform specific code (2) (#1416)
25 окт 2024, 17:01
Не верифицирован
25 окт 2024, 17:01
b3eeda7
Код
Авторство
О чём код?
#pragma once #include <Foundation/Basics.h> #include <Foundation/Utilities/EnumerableClass.h> class EZ_FOUNDATION_DLL ezPlatformDesc : public ezEnumerable<ezPlatformDesc> { EZ_DECLARE_ENUMERABLE_CLASS(ezPlatformDesc); public: ezPlatformDesc(const char* szName, const char* szType) { m_szName = szName; m_szType = szType; } const char* GetName() const { return m_szName; } const char* GetType() const { return m_szType; } static const ezPlatformDesc& GetThisPlatformDesc() { return *s_pThisPlatform; } private: static const ezPlatformDesc* s_pThisPlatform; const char* m_szName; const char* m_szType; };