mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 16:39:01 +02:00
Patch from PolitikerNEU for RGB / RGBA files
This commit is contained in:
@@ -754,6 +754,14 @@ void Pixmap3D::init(int d, int components){
|
||||
pixels= NULL;
|
||||
}
|
||||
|
||||
void Pixmap3D::init(int components){
|
||||
this->w= -1;
|
||||
this->h= -1;
|
||||
this->d= -1;
|
||||
this->components= components;
|
||||
pixels= NULL;
|
||||
}
|
||||
|
||||
Pixmap3D::~Pixmap3D(){
|
||||
delete [] pixels;
|
||||
}
|
||||
@@ -821,6 +829,12 @@ void PixmapCube::init(int w, int h, int components){
|
||||
}
|
||||
}
|
||||
|
||||
void PixmapCube::init(int components){
|
||||
for(int i=0; i<6; ++i){
|
||||
faces[i].init(components);
|
||||
}
|
||||
}
|
||||
|
||||
//load & save
|
||||
void PixmapCube::loadFace(const string &path, int face){
|
||||
faces[face].load(path);
|
||||
|
Reference in New Issue
Block a user