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.