Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/imbuf/intern/dds/Image.h')
-rw-r--r--source/blender/imbuf/intern/dds/Image.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/imbuf/intern/dds/Image.h b/source/blender/imbuf/intern/dds/Image.h
index 658f01deaec..bb74a9d5d15 100644
--- a/source/blender/imbuf/intern/dds/Image.h
+++ b/source/blender/imbuf/intern/dds/Image.h
@@ -44,45 +44,45 @@
class Image
{
public:
-
- enum Format
+
+ enum Format
{
Format_RGB,
Format_ARGB,
};
-
+
Image();
~Image();
-
+
void allocate(uint w, uint h);
#if 0
bool load(const char *name);
-
+
void wrap(void *data, uint w, uint h);
void unwrap();
#endif
-
+
uint width() const;
uint height() const;
-
+
const Color32 * scanline(uint h) const;
Color32 * scanline(uint h);
-
+
const Color32 * pixels() const;
Color32 * pixels();
-
+
const Color32 & pixel(uint idx) const;
Color32 & pixel(uint idx);
-
+
const Color32 & pixel(uint x, uint y) const;
Color32 & pixel(uint x, uint y);
-
+
Format format() const;
void setFormat(Format f);
-
+
private:
void free();
-
+
private:
uint m_width;
uint m_height;