Cogs.Core
ITextureLoader.h
1#pragma once
2
3#include "IResourceLoader.h"
4
5#include "Rendering/DataFormat.h"
6#include "Rendering/SamplerState.h"
7#include "Rendering/TextureData.h"
8
9#include "ResourceLoadInfo.h"
10
11namespace Cogs
12{
13 namespace Core
14 {
16 {
17 TextureLoadInfo() = default;
18
19 ResourceDimensions target = ResourceDimensions::Unknown;
20 TextureFormat format = TextureFormat::R8G8B8A8_UNORM_SRGB;
22 int width = 0;
23 int height = 0;
24 int depth = 0;
25 int layers = 0;
26 int stride = 0;
27 int8_t flip = 0;
28 bool mipMaps = true;
29 bool preloading = false;
30 bool getColorSpaceFromLoadInfo = false;
31 };
32
36 }
37}
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
AddressMode
Addressing modes to use when sampling textures.
Definition: SamplerState.h:15
@ Wrap
Texture coordinates automatically wrap around to [0, 1] range.
Definition: SamplerState.h:19