Much much better
This commit is contained in:
22
src/engine/platform.h
Normal file
22
src/engine/platform.h
Normal file
@@ -0,0 +1,22 @@
|
||||
// Copyright (c) 2021 Dominic Msters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#pragma once
|
||||
#include <malloc.h>
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
* Contains information about the running platform. Essentially this is just
|
||||
* some context as to what is running the game engine itself. It's mostly for
|
||||
* metadata purposes but there may be some technical information required for
|
||||
* the engine.
|
||||
*/
|
||||
typedef struct {
|
||||
/** Internal name of the platform */
|
||||
char *name;
|
||||
|
||||
/** Dimensions of the screen (in pixels) */
|
||||
uint32_t screenWidth, screenHeight;
|
||||
} platform_t;
|
Reference in New Issue
Block a user