Nebula
Loading...
Searching...
No Matches
textureloader.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
13//------------------------------------------------------------------------------
15#include "gliml.h"
16
17namespace CoreGraphics
18{
20{
22public:
26 virtual ~TextureLoader();
27
28private:
29
31 Resources::ResourceUnknownId InitializeResource(const Ids::Id32 entry, const Util::StringAtom& tag, const Ptr<IO::Stream>& stream, bool immediate = false) override;
33 uint StreamResource(const Resources::ResourceId entry, IndexT frameIndex, uint requestedBits) override;
35 void Unload(const Resources::ResourceId id) override;
36
38 uint LodMask(const Ids::Id32 entry, float lod, bool stream) const override;
39};
40
41} // namespace CoreGraphics
Definition textureloader.h:20
uint StreamResource(const Resources::ResourceId entry, IndexT frameIndex, uint requestedBits) override
Stream texture.
Definition textureloader.cc:280
Resources::ResourceUnknownId InitializeResource(const Ids::Id32 entry, const Util::StringAtom &tag, const Ptr< IO::Stream > &stream, bool immediate=false) override
load texture
Definition textureloader.cc:54
uint LodMask(const Ids::Id32 entry, float lod, bool stream) const override
Create load mask based on LOD.
Definition textureloader.cc:351
virtual ~TextureLoader()
destructor
Definition textureloader.cc:45
TextureLoader()
constructor
Definition textureloader.cc:33
void Unload(const Resources::ResourceId id) override
unload texture
Definition textureloader.cc:338
__DeclareClass(TextureLoader)
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Definition resourceloader.h:58
Util::FixedArray< uint > requestedBits
Definition resourceloader.h:244
A StringAtom.
Definition stringatom.h:22
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
uint32_t Id32
Definition id.h:138
Definition resourceid.h:37
unsigned int uint
Definition types.h:31
int IndexT
Definition types.h:48