Hymn to Beauty
C++ 3D Engine
ResourceList::Resource Struct Reference

A resource. More...

#include <Resources.hpp>

Public Types

enum  Type {
  SCENE = 0 , MODEL , TEXTURE , SOUND ,
  SCRIPT , GLTF , INVALID
}
 The type of resource. More...
 

Public Member Functions

std::string GetName () const
 Get the name of the resource. More...
 

Public Attributes

std::string filename
 The filename. More...
 
enum ResourceList::Resource::Type type
 
std::string * scene
 Scene name. More...
 
Geometry::Modelmodel
 Model. More...
 
TextureAssettexture
 Texture. More...
 
ScriptFilescript
 Script. More...
 

Detailed Description

A resource.

Member Enumeration Documentation

◆ Type

The type of resource.

Enumerator
SCENE 
MODEL 
TEXTURE 
SOUND 
SCRIPT 
GLTF 
INVALID 

Member Function Documentation

◆ GetName()

string ResourceList::Resource::GetName ( ) const

Get the name of the resource.

Returns
The name of the resource.

Member Data Documentation

◆ filename

std::string ResourceList::Resource::filename

The filename.

◆ model

Geometry::Model* ResourceList::Resource::model

Model.

◆ scene

std::string* ResourceList::Resource::scene

Scene name.

◆ script

ScriptFile* ResourceList::Resource::script

Script.

◆ texture

TextureAsset* ResourceList::Resource::texture

Texture.

◆ type

enum ResourceList::Resource::Type ResourceList::Resource::type

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