mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-25 22:46:32 -04:00
172d06f38d
* template setup * get most colors working * add lantern, midna, and heart colors * fix PaneCache naming conflict * add UI colors * fix pane cache again * override colors for items on other models * recolor heart piece models * cleanup * add support for ordon sword recoloring * recolor epona's eyelids * move option descriptions * fix mod.json * constexpr descriptions * gx.h instead of dolphin/gx/GXstruct.h * fix default midna hair color * use TextureService instead of overwriting model file data on load * update descriptions * manual cleanup * fix includes * remove unneeded include and const qualifier * UI: Add Popover, ColorInput & more; mod cleanup * Make it a bundled mod --------- Co-authored-by: Luke Street <luke@street.dev>
22 lines
579 B
C++
22 lines
579 B
C++
#pragma once
|
|
|
|
/**
|
|
* File originally copied from console TPR with permission from isaac
|
|
* https://github.com/zsrtp/libtp_rel/blob/master/include/util/texture_utils.h
|
|
*/
|
|
|
|
#include "mod.hpp"
|
|
|
|
#include <gx.h>
|
|
|
|
#include <list>
|
|
#include <unordered_map>
|
|
|
|
uint32_t get_image_data_size(
|
|
uint32_t format, uint32_t width, uint32_t height, uint32_t mipmapCount);
|
|
|
|
void recolor_texture(
|
|
TextureReplacementData& replacementData, GXColor color, std::vector<u8>& newTextureDataOut);
|
|
|
|
std::unordered_map<ConfigVarHandle, std::list<TextureReplacementData>>& get_texture_replacements();
|