From 1bdc0dafb98f01f93d12a882ea4ff62e4a1bfedc Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Sun, 26 Aug 2012 14:46:47 -0400 Subject: [PATCH] Add skeleton for image loading class --- IO/ImageFile.cpp | 28 ++++++++++++++++++++++++++++ IO/ImageFile.h | 22 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 IO/ImageFile.cpp create mode 100644 IO/ImageFile.h diff --git a/IO/ImageFile.cpp b/IO/ImageFile.cpp new file mode 100644 index 0000000..e60625d --- /dev/null +++ b/IO/ImageFile.cpp @@ -0,0 +1,28 @@ +#include "ImageFile.h" + +#ifdef _MSC_VER +ImageFile::ImageFile(const char *filename) { +} + +ImageFile::~ImageFile() { +} + +void ImageFile::GetPixels() const { + +} + +#else +#include + +ImageFile::ImageFile(const char *filename) { +} + +ImageFile::~ImageFile() { +} + +void ImageFile::GetPixels() const { + +} + +#endif + diff --git a/IO/ImageFile.h b/IO/ImageFile.h new file mode 100644 index 0000000..a510389 --- /dev/null +++ b/IO/ImageFile.h @@ -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_