1 #pragma once
3 #include "framebuffer.h"
4 #include "pixelformats.h"
6 namespace kms
7 {
9 class ExtFramebuffer : public Framebuffer
10 {
11 public:
12 ExtFramebuffer(Card& card, uint32_t width, uint32_t height, uint32_t depth, uint32_t bpp, uint32_t stride, uint32_t handle);
13 ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format,
14 uint32_t handles[4], uint32_t pitches[4], uint32_t offsets[4]);
15 virtual ~ExtFramebuffer();
17 private:
18 uint32_t m_pitch;
19 uint32_t m_bpp;
20 uint32_t m_depth;
21 };
22 }