2021-04-13 21:34:59 -04:00
|
|
|
#ifndef HEADER_GE_TEXTURE_HPP
|
|
|
|
#define HEADER_GE_TEXTURE_HPP
|
|
|
|
|
2021-04-17 00:44:25 -04:00
|
|
|
#include <functional>
|
2021-04-13 21:34:59 -04:00
|
|
|
#include <string>
|
|
|
|
#include <ITexture.h>
|
|
|
|
#include <IImage.h>
|
2022-04-17 22:46:23 -04:00
|
|
|
#include <IReadFile.h>
|
2021-04-13 21:34:59 -04:00
|
|
|
|
|
|
|
namespace GE
|
|
|
|
{
|
2021-04-17 03:32:33 -04:00
|
|
|
irr::video::ITexture* createFontTexture(const std::string& name,
|
|
|
|
unsigned size, bool single_channel);
|
2021-04-17 00:44:25 -04:00
|
|
|
irr::video::ITexture* createTexture(irr::video::IImage* img,
|
|
|
|
const std::string& name);
|
2022-08-12 01:07:53 -04:00
|
|
|
irr::core::dimension2d<irr::u32> getResizingTarget(
|
|
|
|
const irr::core::dimension2d<irr::u32>& orig_size,
|
|
|
|
const irr::core::dimension2d<irr::u32>& max_size);
|
2021-04-17 00:44:25 -04:00
|
|
|
irr::video::IImage* getResizedImage(const std::string& path,
|
2022-04-02 22:54:27 -04:00
|
|
|
const irr::core::dimension2d<irr::u32>& max_size,
|
2021-04-17 00:44:25 -04:00
|
|
|
irr::core::dimension2d<irr::u32>* orig_size = NULL);
|
2022-08-05 23:01:54 -04:00
|
|
|
irr::video::IImage* getResizedImageFullPath(const irr::io::path& fullpath,
|
|
|
|
const irr::core::dimension2d<irr::u32>& max_size,
|
2022-08-12 01:07:53 -04:00
|
|
|
irr::core::dimension2d<irr::u32>* orig_size = NULL,
|
|
|
|
const irr::core::dimension2d<irr::u32>* target_size = NULL);
|
2022-04-17 22:46:23 -04:00
|
|
|
irr::video::IImage* getResizedImage(irr::io::IReadFile* file,
|
|
|
|
const irr::core::dimension2d<irr::u32>& max_size,
|
2022-08-12 01:07:53 -04:00
|
|
|
irr::core::dimension2d<irr::u32>* orig_size = NULL,
|
|
|
|
const irr::core::dimension2d<irr::u32>* target_size = NULL);
|
2021-04-17 00:44:25 -04:00
|
|
|
irr::video::ITexture* createTexture(const std::string& path,
|
|
|
|
std::function<void(irr::video::IImage*)> image_mani = nullptr);
|
2021-04-13 21:34:59 -04:00
|
|
|
}; // GE
|
|
|
|
|
|
|
|
#endif
|