You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
948 B
36 lines
948 B
//////////////////////////////////////////////////////////////////// |
|
// ImageDDS.h |
|
// |
|
// Copyright 2007 cDc@seacave |
|
// Distributed under the Boost Software License, Version 1.0 |
|
// (See http://www.boost.org/LICENSE_1_0.txt) |
|
|
|
#ifndef __SEACAVE_IMAGEDDS_H__ |
|
#define __SEACAVE_IMAGEDDS_H__ |
|
|
|
|
|
// I N C L U D E S ///////////////////////////////////////////////// |
|
|
|
#include "Image.h" |
|
|
|
|
|
namespace SEACAVE { |
|
|
|
// S T R U C T S /////////////////////////////////////////////////// |
|
|
|
class IO_API CImageDDS : public CImage |
|
{ |
|
public: |
|
CImageDDS(); |
|
virtual ~CImageDDS(); |
|
|
|
HRESULT ReadHeader(); |
|
HRESULT ReadData(void*, PIXELFORMAT, Size nStride, Size lineWidth); |
|
HRESULT WriteHeader(PIXELFORMAT, Size width, Size height, BYTE numLevels); |
|
HRESULT WriteData(void*, PIXELFORMAT, Size nStride, Size lineWidth); |
|
}; // class CImageDDS |
|
/*----------------------------------------------------------------*/ |
|
|
|
} // namespace SEACAVE |
|
|
|
#endif // __SEACAVE_IMAGEDDS_H__
|
|
|