master
ブランチ master
ShaderPlayground / include / util / types.hh
1.4 KB、49行 生 Blame 履歴
1/*
2# 076 Free License
3
4Copyright (c) テクニカル諏訪子
5
6Permission is hereby granted to any person obtaining a copy of the software
7C++ Utils (the "Software") to use, modify, merge, copy, publish, distribute,
8sublicense, and/or sell copies of the Software, subject to the following conditions:
9
10 1. **Origin Attribution**:
11 - You must not misrepresent the origin of the Software; you must not claim
12 you created the original Software.
13 2. **Notice Preservation**:
14 - This license and the above copyright notice must remain intact in all copies
15 of the source code.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
18INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
19PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
22OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23*/
24#ifndef TYPES_HH
25#define TYPES_HH
26
27#include <cstdint>
28#include <string>
29#include <vector>
30
31typedef uint8_t u8;
32typedef uint16_t u16;
33typedef uint32_t u32;
34typedef uint64_t u64;
35
36typedef int8_t i8;
37typedef int16_t i16;
38typedef int32_t i32;
39typedef int64_t i64;
40
41typedef float f32;
42typedef double f64;
43
44typedef const char * cstr;
45typedef void * any;
46
47using std::string;
48using std::vector;
49#endif // TYPES_HH