aboutsummaryrefslogtreecommitdiff
path: root/Src/replicant/nx/win/nximage.h
blob: eab587f17fbdcf5fa4fa2778d401bcdf682dcb78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include "foundation/types.h"
#include "nxapi.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct nx_image
{
	size_t ref_count;
	uint32_t width;
	uint32_t height;
	size_t len;
	ARGB32 image[1];
} nx_image_s, *nx_image_t;

NX_API void NXImageSetHeap(HANDLE image_heap);
NX_API nx_image_t NXImageMalloc(uint32_t width, uint32_t height);
NX_API nx_image_t NXImageRetain(nx_image_t image);

#ifdef __cplusplus
}
#endif