* Small cleanups
* Declaring the structs doesn't work so well for the libbe_test target. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33452 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3bf4730590
commit
1fc35b4f46
@ -1,24 +1,26 @@
|
|||||||
#ifndef D_WINDOW_BUFFER_H
|
#ifndef D_WINDOW_BUFFER_H
|
||||||
#define D_WINDOW_BUFFER_H
|
#define D_WINDOW_BUFFER_H
|
||||||
|
|
||||||
|
|
||||||
#include "RenderingBuffer.h"
|
#include "RenderingBuffer.h"
|
||||||
|
|
||||||
struct direct_buffer_info;
|
#include <Accelerant.h>
|
||||||
struct frame_buffer_config;
|
#include <DirectWindow.h>
|
||||||
|
|
||||||
|
|
||||||
class DWindowBuffer : public RenderingBuffer {
|
class DWindowBuffer : public RenderingBuffer {
|
||||||
public:
|
public:
|
||||||
DWindowBuffer();
|
DWindowBuffer();
|
||||||
virtual ~DWindowBuffer();
|
virtual ~DWindowBuffer();
|
||||||
|
|
||||||
virtual status_t InitCheck() const;
|
virtual status_t InitCheck() const;
|
||||||
|
|
||||||
virtual color_space ColorSpace() const;
|
virtual color_space ColorSpace() const;
|
||||||
virtual void* Bits() const;
|
virtual void* Bits() const;
|
||||||
virtual uint32 BytesPerRow() const;
|
virtual uint32 BytesPerRow() const;
|
||||||
virtual uint32 Width() const;
|
virtual uint32 Width() const;
|
||||||
virtual uint32 Height() const;
|
virtual uint32 Height() const;
|
||||||
|
|
||||||
void SetTo(direct_buffer_info* info);
|
void SetTo(direct_buffer_info* info);
|
||||||
|
|
||||||
void SetTo(frame_buffer_config* config,
|
void SetTo(frame_buffer_config* config,
|
||||||
@ -28,8 +30,8 @@ class DWindowBuffer : public RenderingBuffer {
|
|||||||
|
|
||||||
BRegion& WindowClipping()
|
BRegion& WindowClipping()
|
||||||
{ return fWindowClipping; }
|
{ return fWindowClipping; }
|
||||||
private:
|
private:
|
||||||
uint8* fBits;
|
uint8* fBits;
|
||||||
uint32 fWidth;
|
uint32 fWidth;
|
||||||
uint32 fHeight;
|
uint32 fHeight;
|
||||||
uint32 fBytesPerRow;
|
uint32 fBytesPerRow;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user