Cogs.Core
Source
Resources
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
11
namespace
Cogs
12
{
13
namespace
Core
14
{
15
struct
TextureLoadInfo
:
ResourceLoadInfoBase
16
{
17
TextureLoadInfo
() =
default
;
18
19
ResourceDimensions target = ResourceDimensions::Unknown;
20
TextureFormat format = TextureFormat::R8G8B8A8_UNORM_SRGB;
21
SamplerState::AddressMode
addressMode =
SamplerState::Wrap
;
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
getColorSpaceFromLoadInfo =
false
;
30
};
31
32
typedef
IResourceLoader<Texture, TextureLoadInfo>
ITextureLoader
;
33
typedef
IAsyncResourceLoader<Texture, TextureLoadInfo>
IAsyncTextureLoader
;
34
typedef
ILoadedResourceViewLoader<Texture, TextureLoadInfo>
ILoadedTextureLoader
;
35
}
36
}
Cogs::Core::IAsyncResourceLoader
Definition:
IResourceLoader.h:23
Cogs::Core::ILoadedResourceViewLoader
Definition:
IResourceLoader.h:38
Cogs::Core::IResourceLoader
Definition:
IResourceLoader.h:13
Cogs
Contains all Cogs related functionality.
Definition:
FieldSetter.h:23
Cogs::Core::ResourceLoadInfoBase
Definition:
ResourceLoadInfo.h:17
Cogs::Core::TextureLoadInfo
Definition:
ITextureLoader.h:16
Cogs::SamplerState::AddressMode
AddressMode
Addressing modes to use when sampling textures.
Definition:
SamplerState.h:15
Cogs::SamplerState::Wrap
@ Wrap
Texture coordinates automatically wrap around to [0, 1] range.
Definition:
SamplerState.h:19
Generated by
1.9.6