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>
|
|
|
|
|
|
|
|
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);
|
|
|
|
irr::video::IImage* getResizedImage(const std::string& path,
|
|
|
|
irr::core::dimension2d<irr::u32>* orig_size = NULL);
|
|
|
|
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
|