World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
HWLContainer.h
См. документацию.
1
#pragma once
2
3
#include <cstdint>
4
#include <cstdio>
5
#include <map>
6
7
#include "
Engine/Strings.h
"
8
9
class
HWLTexture
{
10
public
:
11
inline
HWLTexture
() {}
12
13
int
uBufferWidth
= 0;
14
int
uBufferHeight
= 0;
15
int
uAreaWidth
= 0;
16
int
uAreaHeigth
= 0;
17
unsigned
int
uWidth
= 0;
18
unsigned
int
uHeight
= 0;
19
int
uAreaX
= 0;
20
int
uAreaY
= 0;
21
uint16_t
*
pPixels
=
nullptr
;
22
};
23
24
class
Log
;
25
26
class
HWLContainer
{
27
public
:
28
HWLContainer
();
29
virtual
~HWLContainer
();
30
31
bool
Open
(
const
String
&pFilename);
32
33
HWLTexture
*
LoadTexture
(
const
String
&pName);
34
35
protected
:
36
FILE *
pFile
;
37
Log
*
log
;
38
std::map<String, size_t>
mNodes
;
39
};
uint16_t
unsigned __int16 uint16_t
Definition:
SDL_config.h:37
HWLTexture::uAreaWidth
int uAreaWidth
Definition:
HWLContainer.h:15
Log
Definition:
Log.h:3
HWLTexture
Definition:
HWLContainer.h:9
HWLContainer::LoadTexture
HWLTexture * LoadTexture(const String &pName)
Definition:
HWLContainer.cpp:88
HWLTexture::uBufferWidth
int uBufferWidth
Definition:
HWLContainer.h:13
HWLContainer::~HWLContainer
virtual ~HWLContainer()
Definition:
HWLContainer.cpp:22
HWLContainer::HWLContainer
HWLContainer()
Definition:
HWLContainer.cpp:17
HWLTexture::uHeight
unsigned int uHeight
Definition:
HWLContainer.h:18
HWLTexture::uBufferHeight
int uBufferHeight
Definition:
HWLContainer.h:14
HWLContainer::pFile
FILE * pFile
Definition:
HWLContainer.h:36
HWLTexture::uWidth
unsigned int uWidth
Definition:
HWLContainer.h:17
HWLContainer::Open
bool Open(const String &pFilename)
Definition:
HWLContainer.cpp:28
HWLTexture::pPixels
uint16_t * pPixels
Definition:
HWLContainer.h:21
HWLContainer::log
Log * log
Definition:
HWLContainer.h:37
HWLTexture::HWLTexture
HWLTexture()
Definition:
HWLContainer.h:11
HWLContainer::mNodes
std::map< String, size_t > mNodes
Definition:
HWLContainer.h:38
HWLContainer
Definition:
HWLContainer.h:26
HWLTexture::uAreaX
int uAreaX
Definition:
HWLContainer.h:19
HWLTexture::uAreaY
int uAreaY
Definition:
HWLContainer.h:20
String
std::string String
Definition:
Strings.h:10
Strings.h
HWLTexture::uAreaHeigth
int uAreaHeigth
Definition:
HWLContainer.h:16
Engine
Graphics
HWLContainer.h
Документация по World of Might and Magic. Последние изменения: Вт 7 Апр 2020 22:03:28. Создано системой
1.8.17