-
Notifications
You must be signed in to change notification settings - Fork 0
/
Assets.cpp
35 lines (30 loc) · 941 Bytes
/
Assets.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//////////////////////////////////////////////////////////////////////////
// Filename : Assets.cpp
//
// Author : Ramon Johannessen (RJ)
//
// Purpose : To define the CAssets class. Will load all assets used
// within the game and hold the IDs. A singleton.
//////////////////////////////////////////////////////////////////////////
#include "Assets.h"
#include "CSGD_TextureManager.h"
#include "CSGD_Direct3D.h"
CAssets* CAssets::GetInstance()
{
static CAssets instance;
return &instance;
}
CAssets::CAssets()
{
m_pTM = CSGD_TextureManager::GetInstance();
LoadAssets();
}
CAssets::~CAssets()
{
}
void CAssets::LoadAssets()
{
//aBMgroundTilesID = m_pTM->LoadTexture("groundTiles.bmp", D3DCOLOR_XRGB(255,255,255));
//aBMtreeTilesID = m_pTM->LoadTexture("trees.bmp", D3DCOLOR_XRGB(255,255,255));
aBMcursorID = m_pTM->LoadTexture("Resources/Images/VG_Cursor.png", D3DCOLOR_XRGB(0,0,0));
}