OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions | Variables
ImageLoader.cpp File Reference
#include "ImageLoader.h"
#include <unordered_set>
#include <string_view>
#include <memory>
#include "Engine/Graphics/Renderer/Renderer.h"
#include "Engine/Graphics/Sprites.h"
#include "Engine/Graphics/Texture_MM7.h"
#include "Engine/LodTextureCache.h"
#include "Engine/LodSpriteCache.h"
#include "Engine/Graphics/PaletteManager.h"
#include "Library/Image/ImageFunctions.h"
#include "Library/Image/Pcx.h"
#include "Library/Logger/Logger.h"

Functions

static Palette MakePaletteAlpha (const Palette &palette)
 
static Palette MakePaletteColorKey (const Palette &palette, Color key)
 
static Color ProcessTransparentPixel (const GrayscaleImage &image, const Palette &palette, size_t x, size_t y)
 

Variables

static const std::unordered_set< std::string_view > transparentTextures
 

Function Documentation

◆ MakePaletteAlpha()

static Palette MakePaletteAlpha ( const Palette palette)
static

◆ MakePaletteColorKey()

static Palette MakePaletteColorKey ( const Palette palette,
Color  key 
)
static

◆ ProcessTransparentPixel()

static Color ProcessTransparentPixel ( const GrayscaleImage image,
const Palette palette,
size_t  x,
size_t  y 
)
static

Variable Documentation

◆ transparentTextures

const std::unordered_set<std::string_view> transparentTextures
static
Initial value:
= {
"hwtrdre",
"hwtrdrne",
"hwtrdrs",
"hwtrdrsw",
"hwtrdrxne",
"hwtrdrxse",
"hwtrdrn",
"hwtrdrnw",
"hwtrdrse",
"hwtrdrw",
"hwtrdrxnw",
"hwtrdrxsw"
}