 |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Namespace surrounding all major engine components.
Definition: blam_api.h:18
BLAM BlamResource GetResource(std::string file_path)
Retrieves a resource.
Definition: engine_resources.cpp:88
BLAM bool LoadEngineResources()
Loads all required engine resources.
Definition: engine_resources.cpp:77
void * data_address
The address pointing to the start of the resource data.
Definition: engine_resources.h:48
BlamResourceType type
The type of the resource. Used to avoid resource mishandling.
Definition: engine_resources.h:44
Structure containing data for an engine resource.
Definition: engine_resources.h:42
BLAM BlamResource * GetResourcePointer(std::string file_path)
Retrieves a pointer to a resource.
Definition: engine_resources.cpp:94
@ Invalid
Indicates that the resource is invalid.
Definition: engine_resources.h:36
BLAM void ReleaseEngineResources()
Releases all engine resources.
Definition: engine_resources.cpp:83
int64_t data_size
The total size of the resource data.
Definition: engine_resources.h:49
std::string file_path
The path to the file this resource was originally loaded from.
Definition: engine_resources.h:45
#define BLAM
Definition: engine_resources.h:7
BLAM bool SaveResource(std::string file_path)
Saves a resource back to the disk.
Definition: engine_resources.cpp:99
@ ConfigResource
Indicates that the resource refers to a configuration file.
Definition: engine_resources.h:20
BlamResourceType
Enum defining all valid types of engine resources.
Definition: engine_resources.h:17
@ PngResource
Indicates that the resource refers to a PNG image.
Definition: engine_resources.h:21
@ XmlResource
Indicates that the resource refers to an XML file.
Definition: engine_resources.h:19
std::string id
An optional identifier used to retrieve the resource later.
Definition: engine_resources.h:46
@ RawResource
Indicates that the resource refers to a binary file.
Definition: engine_resources.h:28