CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
TextureImporter.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
11
14
15namespace CeresEngine {
16
18 bool flipY = true;
19 bool hdr = false;
20
21 public: // Reflection
24 template<typename Processor> static constexpr void reflect(Processor&& RTTI) {
27 }
28 };
29
32 class TextureImporter : public TResourceImporter<Texture, TextureImportOptions> {
33 public:
34 using TResourceImporter<Texture, TextureImportOptions>::TResourceImporter;
35 };
36
37} // namespace CeresEngine
38
#define CE_REFLECT_HASH(T)
Definition Hash.hpp:89
#define CE_REFL_DATA(N)
Definition Macros.hpp:541
Creates a new resource importer.
Definition ResourceImporter.hpp:248
A texture that can be imported into the renderer.
Definition Texture.hpp:89
A base class for a TextureImporter that takes Input and (optionally) Inputs as base resources and cre...
Definition TextureImporter.hpp:32
Definition Application.hpp:19
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
A structure that contains import options that describes how a resource should be imported.
Definition ResourceImportOptions.hpp:16
Definition TextureImporter.hpp:17
bool flipY
Definition TextureImporter.hpp:18
static constexpr void reflect(Processor &&RTTI)
Executes the given processor for every field of the struct.
Definition TextureImporter.hpp:24
bool hdr
Definition TextureImporter.hpp:19