mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Add some initial widget functionality (prefs partly working)
This commit is contained in:
22
PortabilityLayer/SimpleImage.h
Normal file
22
PortabilityLayer/SimpleImage.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "GpPixelFormat.h"
|
||||
#include <stdint.h>
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
class SimpleImage final
|
||||
{
|
||||
public:
|
||||
void Destroy();
|
||||
void *GetData();
|
||||
const void *GetData() const;
|
||||
|
||||
static SimpleImage *Create(GpPixelFormat_t pixelFormat, size_t pitch, size_t dataSize);
|
||||
|
||||
private:
|
||||
GpPixelFormat_t m_pixelFormat;
|
||||
size_t m_pitch;
|
||||
void *m_data;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user