From 491c49d8ad83dd156bf359d4bb1ca3876e734619 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 16 Dec 2020 15:33:09 -0800 Subject: [PATCH] device create and destroy --- include/Refresh.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/Refresh.h b/include/Refresh.h index c634a0a..263b8bb 100644 --- a/include/Refresh.h +++ b/include/Refresh.h @@ -25,6 +25,7 @@ */ #include +#include #ifndef REFRESH_H #define REFRESH_H @@ -580,6 +581,21 @@ REFRESHAPI uint32_t REFRESH_LinkedVersion(void); /* Functions */ +/* Device */ + +/* Create a rendering context for use on the calling thread. + * This creation method takes an existing FNA3D_Device + * to ease interoperability with existing FNA graphics code. + * + * fnaDevice: An allocated FNA3D_Device structure. + */ +REFRESHAPI REFRESH_Device* REFRESH_CreateDevice( + FNA3D_Device *fnaDevice +); + +/* Destroys a rendering context previously returned by REFRESH_CreateDevice. */ +REFRESHAPI void REFRESH_DestroyDevice(REFRESH_Device *device); + /* Drawing */ /* Clears the targets of the currently bound framebuffer.