6#include "Foundation/Reflection/Name.h"
57 AutoReload = int(ResourceLoadFlags::AutoReload),
123 AutoReload = int(ResourceLoadFlags::AutoReload),
176 AutoReload = int(ResourceLoadFlags::AutoReload),
199 void registerResourceFlagTypes();
203template<>
inline Cogs::StringView getName<Cogs::Core::ResourceLoadFlags>() {
return "ResourceLoadFlags"; }
204template<>
inline Cogs::StringView getName<Cogs::Core::TextureLoadFlags>() {
return "TextureLoadFlags"; }
205template<>
inline Cogs::StringView getName<Cogs::Core::ModelLoadFlags>() {
return "ModelLoadFlags"; }
206template<>
inline Cogs::StringView getName<Cogs::Core::AssetLoadFlags>() {
return "AssetLoadFlags"; }
Provides a weakly referenced view over the contents of a string.
ModelLoadFlags
Model loading flags. May be combined with resource loading flags.
@ NeedsTangents
The importer should generate tangent data if not present.
@ CustomExtensionFlag
Custom flag that can be used by an extension loader.
@ SkipMaterials
Tell the loader it may skip creating material instances during loading.
@ NoFlipTexcoords
Do not flip texture coordinates.
ResourceLoadFlags
Flags for describing how to load a resource.
@ ResourceSpecificFlag
DO NOT USE. Intenal: First available flag for resource specific flags.
@ None
No flags specified,.
@ NoDefaultName
No default name.
@ DoNotStoreSource
Don't store the source.
@ ForceUnique
Force unique resource load when source resolves to existing resource.
@ ForceSynchronous
Force loading the resource synchronously.
@ DoNotCache
Do not cache this resource for later retrieval.
TextureLoadFlags
Texture loading flags. May be combined with resource load flags.
@ LinearColorSpace
For textures with RGBA format without color space information, mark the data as being in linear color...
@ ColorSpaceFromLoadInfo
by default we want to retrieve colorspace info from the texture data, not from the format specified i...
@ First
DO NOT USE. Intenal: First available flag for resource specific flags.
@ NoDelete
Do not assume ownership of external texture so it won't be deleted by cogs.
@ Flip
Flip the texture data vertically before it is passed to the rendering backend.
@ NoMipMaps
Do not generate mipmaps.
AssetLoadFlags
Asset and Scene loading flags. May be combined with resource loading flags.
@ NoDefault
Don't load the default scene. Highly recommended as not setting this flag cause extra scene parse.
@ ClearScene
Clear the scene before loading the asset. NOT allowed for Bridge: loadAsset and loadAssetFromString.
Contains all Cogs related functionality.