#include "tile.h"
#include <algorithm>
#include <ICameraSceneNode.h>
#include <IrrCompileConfig.h>
#include "util/string.h"
#include "util/container.h"
#include "util/thread.h"
#include "filesys.h"
#include "settings.h"
#include "mesh.h"
#include "gamedef.h"
#include "util/strfnd.h"
#include "imagefilters.h"
#include "guiscalingfilter.h"
#include "renderingengine.h"
Classes | |
struct | TextureInfo |
class | SourceImageCache |
class | TextureSource |
Functions | |
static bool | replace_ext (std::string &path, const char *ext) |
std::string | getImagePath (std::string path) |
std::string | getTexturePath (const std::string &filename, bool *is_base_pack) |
void | clearTextureNameCache () |
IWritableTextureSource * | createTextureSource () |
static void | blit_with_alpha (video::IImage *src, video::IImage *dst, v2s32 src_pos, v2s32 dst_pos, v2u32 size) |
static void | blit_with_alpha_overlay (video::IImage *src, video::IImage *dst, v2s32 src_pos, v2s32 dst_pos, v2u32 size) |
static void | apply_colorize (video::IImage *dst, v2u32 dst_pos, v2u32 size, const video::SColor &color, int ratio, bool keep_alpha) |
static void | apply_multiplication (video::IImage *dst, v2u32 dst_pos, v2u32 size, const video::SColor &color) |
static void | apply_mask (video::IImage *mask, video::IImage *dst, v2s32 mask_pos, v2s32 dst_pos, v2u32 size) |
static void | draw_crack (video::IImage *crack, video::IImage *dst, bool use_overlay, s32 frame_count, s32 progression, video::IVideoDriver *driver, u8 tiles=1) |
void | brighten (video::IImage *image) |
u32 | parseImageTransform (const std::string &s) |
core::dimension2d< u32 > | imageTransformDimension (u32 transform, core::dimension2d< u32 > dim) |
void | imageTransform (u32 transform, video::IImage *src, video::IImage *dst) |
static void | applyShadeFactor (video::SColor &color, u32 factor) |
static video::IImage * | createInventoryCubeImage (video::IImage *top, video::IImage *left, video::IImage *right) |
static std::string | unescape_string (const std::string &str, const char esc='\\') |
static video::SColor | blitPixel (const video::SColor &src_c, const video::SColor &dst_c, u32 ratio) |
video::IImage * | create_crack_image (video::IImage *crack, s32 frame_index, core::dimension2d< u32 > size, u8 tiles, video::IVideoDriver *driver) |
std::vector< std::string > | getTextureDirs () |
Variables | |
MutexedMap< std::string, std::string > | g_texturename_to_path_cache |
|
inlinestatic |
|
static |
References blitPixel().
Referenced by draw_crack(), TextureSource::generateImage(), and TextureSource::generateImagePart().
|
static |
References blitPixel().
Referenced by draw_crack().
|
inlinestatic |
Referenced by blit_with_alpha(), and blit_with_alpha_overlay().
void brighten | ( | video::IImage * | image | ) |
void clearTextureNameCache | ( | ) |
References g_texturename_to_path_cache.
Referenced by Game::extendedResourceCleanup().
video::IImage* create_crack_image | ( | video::IImage * | crack, |
s32 | frame_index, | ||
core::dimension2d< u32 > | size, | ||
u8 | tiles, | ||
video::IVideoDriver * | driver | ||
) |
|
static |
References applyShadeFactor(), RenderingEngine::get_video_driver(), npot2(), and sanity_check.
Referenced by TextureSource::generateImagePart().
IWritableTextureSource* createTextureSource | ( | ) |
|
static |
References blit_with_alpha(), blit_with_alpha_overlay(), and create_crack_image().
Referenced by TextureSource::generateImagePart().
std::string getImagePath | ( | std::string | path | ) |
References fs::PathExists(), removeStringEnd(), and replace_ext().
Referenced by findSubgame(), and getTexturePath().
std::vector<std::string> getTextureDirs | ( | ) |
References g_settings, Settings::get(), and fs::GetRecursiveDirs().
Referenced by Client::afterContentReceived(), and getTexturePath().
std::string getTexturePath | ( | const std::string & | filename, |
bool * | is_base_pack | ||
) |
References DIR_DELIM, g_texturename_to_path_cache, getImagePath(), getTextureDirs(), and porting::path_share.
Referenced by SourceImageCache::getOrLoad(), SourceImageCache::insert(), and TextureSource::isKnownSourceImage().
void imageTransform | ( | u32 | transform, |
video::IImage * | src, | ||
video::IImage * | dst | ||
) |
References imageTransformDimension().
Referenced by TextureSource::generateImagePart().
core::dimension2d< u32 > imageTransformDimension | ( | u32 | transform, |
core::dimension2d< u32 > | dim | ||
) |
Referenced by TextureSource::generateImagePart(), and imageTransform().
u32 parseImageTransform | ( | const std::string & | s | ) |
References lowercase().
Referenced by TextureSource::generateImagePart().
|
static |
|
static |
MutexedMap<std::string, std::string> g_texturename_to_path_cache |
Referenced by clearTextureNameCache(), and getTexturePath().