Add skeleton for image loading class

This commit is contained in:
Pavel Krajcevski 2012-08-26 14:46:47 -04:00
parent fd2ba216a3
commit 1bdc0dafb9
2 changed files with 50 additions and 0 deletions

28
IO/ImageFile.cpp Normal file
View 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
View 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_