wut/include/gx2/swap.h

49 lines
766 B
C
Raw Normal View History

2016-01-08 17:38:38 +01:00
#pragma once
#include <wut.h>
/**
* \defgroup gx2_swap Swap
* \ingroup gx2
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef enum GX2ScanTarget
{
GX2_SCAN_TARGET_TV = 1,
GX2_SCAN_TARGET_DRC = 4,
} GX2ScanTarget;
typedef struct GX2ColorBuffer GX2ColorBuffer;
typedef struct GX2Texture GX2Texture;
void
GX2CopyColorBufferToScanBuffer(GX2ColorBuffer *buffer,
GX2ScanTarget scanTarget);
void
GX2SwapScanBuffers();
BOOL
GX2GetLastFrame(GX2ScanTarget scanTarget,
GX2Texture *texture);
BOOL
GX2GetLastFrameGamma(GX2ScanTarget scanTarget,
float *gammaOut);
uint32_t
GX2GetSwapInterval();
void
GX2SetSwapInterval(uint32_t interval);
#ifdef __cplusplus
}
#endif
/** @} */