From 2984c032ccef081c350f306c96e3c923126657c8 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 2 Oct 2015 21:27:55 +0300 Subject: Add ExtFramebuffer Add ExtFramebuffer for cases where the buffer have been allocated externally. --- libkms++/extframebuffer.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libkms++/extframebuffer.h (limited to 'libkms++/extframebuffer.h') diff --git a/libkms++/extframebuffer.h b/libkms++/extframebuffer.h new file mode 100644 index 0000000..cc0863a --- /dev/null +++ b/libkms++/extframebuffer.h @@ -0,0 +1,21 @@ +#pragma once + +#include "framebuffer.h" + +namespace kms +{ + +class ExtFramebuffer : public Framebuffer +{ +public: + ExtFramebuffer(Card& card, uint32_t width, uint32_t height, uint32_t depth, uint32_t bpp, uint32_t stride, uint32_t handle); + virtual ~ExtFramebuffer(); + + void print_short() const; + +private: + uint32_t m_pitch; + uint32_t m_bpp; + uint32_t m_depth; +}; +} -- cgit v1.2.3