Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
assetprototypedefs.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2023 Conquer Space
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <hjson.h>
20
21#include <map>
22#include <string>
23#include <vector>
24
25#include "engine/asset/asset.h"
28
29namespace cqsp::asset {
31 public:
32 unsigned char* data;
33 int width;
34 int height;
36
38
40};
41
43 public:
44 std::vector<unsigned char*> data;
45 int width;
46 int height;
48
50
52};
53
55 public:
56 std::string data;
57 int type;
58 Hjson::Value hints;
59
61};
62
64 public:
65 std::vector<uint8_t> fontBuffer;
66 int size;
67
69};
70} // namespace cqsp::asset
Definition: assetprototype.h:37
Definition: assetprototypedefs.h:42
asset::TextureLoadingOptions options
Definition: assetprototypedefs.h:49
std::vector< unsigned char * > data
Definition: assetprototypedefs.h:44
int GetPrototypeType()
Definition: assetprototypedefs.h:51
int components
Definition: assetprototypedefs.h:47
int width
Definition: assetprototypedefs.h:45
int height
Definition: assetprototypedefs.h:46
Definition: assetprototypedefs.h:63
std::vector< uint8_t > fontBuffer
Definition: assetprototypedefs.h:65
int size
Definition: assetprototypedefs.h:66
int GetPrototypeType()
Definition: assetprototypedefs.h:68
Definition: assetprototypedefs.h:30
int width
Definition: assetprototypedefs.h:33
int height
Definition: assetprototypedefs.h:34
unsigned char * data
Definition: assetprototypedefs.h:32
asset::TextureLoadingOptions options
Definition: assetprototypedefs.h:37
int components
Definition: assetprototypedefs.h:35
int GetPrototypeType()
Definition: assetprototypedefs.h:39
Definition: assetprototypedefs.h:54
int GetPrototypeType()
Definition: assetprototypedefs.h:60
std::string data
Definition: assetprototypedefs.h:56
int type
Definition: assetprototypedefs.h:57
Hjson::Value hints
Definition: assetprototypedefs.h:58
Definition: asset.h:30
@ FONT
Font prototype.
Definition: assetprototype.h:28
@ SHADER
shader prototype
Definition: assetprototype.h:27
@ TEXTURE
texture prototype
Definition: assetprototype.h:26
@ CUBEMAP
cubemap prototype
Definition: assetprototype.h:29
Definition: texture.h:26