|
Rehti MMORPG
1.0.0
Rehti MMORPG is a free and open source MMORPG game.
|
#include "rapidjson/document.h"#include <iostream>#include <string>#include <vector>#include "../../Config.hpp"#include "RehtiUtils.hpp"#include "TextureReader.hpp"#include "../stb/stb_image.h"
Macros | |
| #define | STB_IMAGE_IMPLEMENTATION |
Functions | |
| std::map< std::string, ImageData > | loadObjectTextures (const GameObjects &gameObjects) |
| Reads all the object's textures + character textures into a map (key=filename, value=ImageData) More... | |
| std::map< std::string, ImageData > | loadCharacterTextures (const GameCharacters &gameCharacters) |
| Reads all the character's textures into a map (key=filename, value=ImageData) More... | |
| std::map< std::string, ImageData > | loadItemTextures (const GameItems &gameItems) |
| Reads all the item object textures and item icons into a map (key=filename, value=ImageData) More... | |
| std::map< int, ImageData > | loadMapTextures () |
| Reads all different the map texture files. More... | |
| std::vector< std::vector< int > > | loadMapTexturePositions () |
| Loads map texture positions. E.g. which tile contains which texture. More... | |
| ImageData | createAreaBlendMap (const std::vector< std::vector< int >> &mapTexturePositionMatrix, int rowOffset, int columnOffset) |
| Creates a blend map for one area. Blend map shows which texture is used on each tile. More... | |
| ImageData | loadDefaultTexture () |
| Loads default texture into memory. More... | |
| #define STB_IMAGE_IMPLEMENTATION |
| ImageData createAreaBlendMap | ( | const std::vector< std::vector< int >> & | mapTexturePositionMatrix, |
| int | rowOffset, | ||
| int | columnOffset | ||
| ) |
Creates a blend map for one area. Blend map shows which texture is used on each tile.
| mapTexturePositionMatrix | Matrix of texture positions with the corresponding texture id |
| rowOffset | Areas row offset in the mapTexturePositionMatrix |
| columnOffset | Areas column offset in the mapTexturePositionMatrix |

| std::map<std::string, ImageData> loadCharacterTextures | ( | const GameCharacters & | gameCharacters | ) |
Reads all the character's textures into a map (key=filename, value=ImageData)
| gameCharacters | GameCharacters |

| ImageData loadDefaultTexture | ( | ) |
Loads default texture into memory.

| std::vector<std::vector<int> > loadMapTexturePositions | ( | ) |
Loads map texture positions. E.g. which tile contains which texture.


| std::map<int, ImageData> loadMapTextures | ( | ) |
| std::map<std::string, ImageData> loadObjectTextures | ( | const GameObjects & | gameObjects | ) |
Reads all the object's textures + character textures into a map (key=filename, value=ImageData)
| gameObjects | GameObjects |
