mirror of
https://github.com/mkwong98/HDNes.git
synced 2024-06-01 19:08:05 -04:00
22 lines
364 B
C++
22 lines
364 B
C++
#include "image.h"
|
|
#include "coreData.h"
|
|
|
|
image::image()
|
|
{
|
|
fileName = "";
|
|
}
|
|
|
|
image::~image()
|
|
{
|
|
}
|
|
|
|
void image::load(string path){
|
|
fileName = path;
|
|
reloadImg();
|
|
}
|
|
|
|
void image::reloadImg(){
|
|
imageData.LoadFile(wxString((coreData::cData->packPath + "\\" + fileName).c_str()));
|
|
if(!imageData.HasAlpha()) imageData.InitAlpha();
|
|
}
|