ShitEngine
基于 C++20 与 SDL3 的轻量级 2D 游戏引擎
Toggle main menu visibility
载入中...
搜索中...
未找到
Core.h
浏览该文件的文档.
1
#pragma once
2
3
#include <cstdint>
4
5
#ifdef _WIN32
6
#ifdef SHIT_EXPORTS
7
// 如果正在构建引擎本身,导出符号
8
#define SHIT_API __declspec(dllexport)
9
#else
10
// 如果别人在使用引擎,导入符号
11
#define SHIT_API __declspec(dllimport)
12
#endif
13
#else
14
#define SHIT_API
15
#endif
16
17
#define BIT(x) (1 << x)
18
19
namespace
Shit
{
26
struct
Color
{
27
std::uint8_t
red
= 255;
28
std::uint8_t
green
= 255;
29
std::uint8_t
blue
= 255;
30
std::uint8_t
alpha
= 255;
31
};
32
}
Shit
定义
AudioPlayer.h:10
Shit::Color
RGBA 颜色(每通道 8 位)
定义
Core.h:26
Shit::Color::green
std::uint8_t green
定义
Core.h:28
Shit::Color::red
std::uint8_t red
定义
Core.h:27
Shit::Color::blue
std::uint8_t blue
定义
Core.h:29
Shit::Color::alpha
std::uint8_t alpha
定义
Core.h:30
include
ShitEngine
Core
Core.h
制作者
1.17.0