mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-25 15:58:56 +00:00
Add skeleton for image loading class
This commit is contained in:
parent
fd2ba216a3
commit
1bdc0dafb9
2 changed files with 50 additions and 0 deletions
28
IO/ImageFile.cpp
Normal file
28
IO/ImageFile.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "ImageFile.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
ImageFile::ImageFile(const char *filename) {
|
||||
}
|
||||
|
||||
ImageFile::~ImageFile() {
|
||||
}
|
||||
|
||||
void ImageFile::GetPixels() const {
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
#include <stdlib.h>
|
||||
|
||||
ImageFile::ImageFile(const char *filename) {
|
||||
}
|
||||
|
||||
ImageFile::~ImageFile() {
|
||||
}
|
||||
|
||||
void ImageFile::GetPixels() const {
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
22
IO/ImageFile.h
Normal file
22
IO/ImageFile.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifedef _IMAGE_FILE_H_
|
||||
#define _IMAGE_FILE_H_
|
||||
|
||||
class ImageFile {
|
||||
|
||||
public:
|
||||
|
||||
ImageFile(const char *filename);
|
||||
~ImageFile();
|
||||
|
||||
void GetWidth() const { return m_Width; }
|
||||
void GetHeight() const { return m_Height; }
|
||||
void GetPixels() const;
|
||||
|
||||
private:
|
||||
unsigned int m_Handle;
|
||||
unsigned int m_Width;
|
||||
unsigned int m_Height;
|
||||
};
|
||||
|
||||
|
||||
#endif // _IMAGE_FILE_H_
|
Loading…
Reference in a new issue