Kanzi Graphics Engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
KzuResource Struct Reference

Represents the base class for all resources. More...

#include <kzu_resource.h>

Data Fields

struct KzuResourceClassresourceClass
 Class of the resource. More...
 
struct KzuResourceManagerresourceManager
 The resource manager where the resource is registered. More...
 
kzMutableString name
 Name of the resource. More...
 
struct KzuResourceLoaderloader
 Loader for the resource. More...
 
kzUint referenceCount
 Number of references for the resource. More...
 
enum KzuResourceLoadingStrategy loadingStrategy
 Resource loading strategy controls when the resource is loaded and unloaded. More...
 
enum KzuResourceLoadState loadState
 Has the resource been loaded yet. More...
 

Detailed Description

Represents the base class for all resources.

This base class contains information related to the type of the resource and the loading status of the resource data. The actual resource data is specific to the sub-classes.

See Also
KzuGPUResource for implementations of this class.

Field Documentation

struct KzuResourceClass* KzuResource::resourceClass

Class of the resource.

struct KzuResourceManager* KzuResource::resourceManager

The resource manager where the resource is registered.

kzMutableString KzuResource::name

Name of the resource.

struct KzuResourceLoader* KzuResource::loader

Loader for the resource.

kzUint KzuResource::referenceCount

Number of references for the resource.

Increased in Acquire&AcquireExisting, decreased in Release.

enum KzuResourceLoadingStrategy KzuResource::loadingStrategy

Resource loading strategy controls when the resource is loaded and unloaded.

enum KzuResourceLoadState KzuResource::loadState

Has the resource been loaded yet.


The documentation for this struct was generated from the following file: