VITAlbum/include/textures.h
2020-07-11 16:54:53 -04:00

31 lines
926 B
C++

#ifndef _VITALBUM_TEXTURES_H_
#define _VITALBUM_TEXTURES_H_
#include <vitaGL.h>
#include <string>
typedef struct {
GLuint id = 0;
int width = 0;
int height = 0;
} Tex;
extern Tex folder_texture, file_texture, image_texture;
namespace Textures {
bool LoadImageFile(const std::string &path, Tex *texture);
bool LoadImageBMP(const std::string &path, Tex *texture);
bool LoadImageGIF(const std::string &path, Tex *texture, unsigned int *frames);
bool LoadImageICO(const std::string &path, Tex *texture);
bool LoadImageJPEG(const std::string &path, Tex *texture);
bool LoadImagePCX(const std::string &path, Tex *texture);
bool LoadImagePNG(const std::string &path, Tex *texture);
bool LoadImageTIFF(const std::string &path, Tex *texture);
bool LoadImageWEBP(const std::string &path, Tex *texture);
void Free(Tex *texture);
void Init(void);
void Exit(void);
}
#endif