Blamite Game Engine - blam!  00263.10.17.20.0001.blamite
The core library for the Blamite Game Engine.
res.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Windows.h>
4 #include <string>
5 
6 #ifndef BLAM
7 #define BLAM
8 #endif
9 
10 namespace Blam
11 {
12  namespace Utils
13  {
17  namespace Res
18  {
22  struct Resource
23  {
24  int id;
26  DWORD size;
27  };
28 
37  BLAM std::string GetTextResource(int res_id, const char* res_type);
38 
46  BLAM std::string GetHTMLResource(int res_id);
47 
58  BLAM HRESULT GetResource(int res_id, const char* res_type, Resource* res);
59  }
60  }
61 }
Blam
Namespace surrounding all major engine components.
Definition: blam_api.h:17
Blam::Utils::Res::GetResource
BLAM HRESULT GetResource(int res_id, const char *res_type, Resource *res)
Retrieves the specified resource as a Resource structure, containing access to the raw binary data.
Definition: res.cpp:81
Blam::Utils::Res::Resource
Structure to bundle together resource data.
Definition: res.h:22
Blam::Utils::Res::Resource::resource_pointer
void * resource_pointer
Address of the resource data.
Definition: res.h:25
BLAM
#define BLAM
Definition: res.h:7
Blam::Utils::Res::GetTextResource
BLAM std::string GetTextResource(int res_id, const char *res_type)
Retrieves the specified resource as a text resource.
Definition: res.cpp:7
Blam::Utils::Res::Resource::id
int id
The ID of the resource.
Definition: res.h:24
Blam::Utils::Res::GetHTMLResource
BLAM std::string GetHTMLResource(int res_id)
Retrieves the specified resource as an HTML resource.
Definition: res.cpp:44
Blam::Utils::Res::Resource::size
DWORD size
Size of the resource data.
Definition: res.h:26