2005-01-20 15:45:26 +03:00
|
|
|
// RenderingBuffer.h
|
|
|
|
|
|
|
|
#ifndef RENDERING_BUFFER_H
|
|
|
|
#define RENDERING_BUFFER_H
|
|
|
|
|
|
|
|
#include <GraphicsDefs.h>
|
|
|
|
|
|
|
|
class RenderingBuffer {
|
|
|
|
public:
|
2005-04-20 13:27:15 +04:00
|
|
|
RenderingBuffer() {}
|
|
|
|
virtual ~RenderingBuffer() {}
|
2005-01-20 15:45:26 +03:00
|
|
|
|
|
|
|
virtual status_t InitCheck() const = 0;
|
|
|
|
|
|
|
|
virtual color_space ColorSpace() const = 0;
|
|
|
|
virtual void* Bits() const = 0;
|
|
|
|
virtual uint32 BytesPerRow() const = 0;
|
2005-04-20 13:27:15 +04:00
|
|
|
// the *count* of the pixels per line
|
2005-01-20 15:45:26 +03:00
|
|
|
virtual uint32 Width() const = 0;
|
2005-04-20 13:27:15 +04:00
|
|
|
// the *count* of lines
|
2005-01-20 15:45:26 +03:00
|
|
|
virtual uint32 Height() const = 0;
|
2005-04-20 13:27:15 +04:00
|
|
|
|
|
|
|
inline uint32 BitsLength() const
|
|
|
|
{ return Height() * BytesPerRow(); }
|
2005-01-20 15:45:26 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RENDERING_BUFFER_H
|