device create and destroy

pull/8/head
cosmonaut 2020-12-16 15:33:09 -08:00
parent 1d152a61bf
commit 491c49d8ad
1 changed files with 16 additions and 0 deletions

View File

@ -25,6 +25,7 @@
*/
#include <stddef.h>
#include <FNA3D.h>
#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.