// -*- c++ -*- #pragma once #ifndef __RAYS_IMAGE_H__ #define __RAYS_IMAGE_H__ #include #include namespace Rays { class Bitmap; class Texture; class Image { public: Image (); Image ( int width, int height, const ColorSpace& cs = RGBA, bool alphatexture = false); Image (const Bitmap& bitmap, bool alphatexture = false); ~Image (); int width () const; int height () const; const ColorSpace& color_space () const; bool alpha_texture () const; Bitmap& bitmap (); const Bitmap& bitmap () const; Texture& texture (); const Texture& texture () const; operator bool () const; bool operator ! () const; struct Data; Impl self; };// Image bool load_image (Image* image, const char* path, bool alphatexture = false); }// Rays #endif//EOH