45unsigned int CreateTexture(
unsigned char* data,
int width,
int height,
int components,
46 const TextureLoadingOptions& options);
48void CreateTexture(Texture& texture,
unsigned char* data,
int width,
int height,
int components,
49 const TextureLoadingOptions& options = TextureLoadingOptions());
51void LoadCubemapData(Texture& texture, std::vector<unsigned char*>& faces,
int width,
int height,
int components,
52 TextureLoadingOptions& options);
54bool SaveImage(
const char* path,
int width,
int height,
int components,
const unsigned char* data,
bool flip =
true);
The base class for assets.
Definition: asset.h:165
~Texture()
Definition: texture.cpp:109
Texture()
Definition: texture.cpp:107
unsigned int id
Definition: texture.h:36
int height
Definition: texture.h:35
int width
Definition: texture.h:34
AssetType GetAssetType() override
Definition: texture.h:42
int texture_type
Definition: texture.h:37
When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to ...
Definition: asset.h:29
unsigned int CreateTexture(unsigned char *data, int width, int height, int components, const TextureLoadingOptions &options)
Definition: texture.cpp:26
bool SaveImage(const char *path, int width, int height, int components, const unsigned char *data, bool flip=true)
Definition: texture.cpp:98
AssetType
Definition: asset.h:32
void LoadCubemapData(Texture &texture, std::vector< unsigned char * > &faces, int width, int height, int components, TextureLoadingOptions &options)
Definition: texture.cpp:64
@ TEXTURE
texture prototype
Definition: assetprototype.h:26
bool mag_filter
Definition: texture.h:29