mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 21:51:53 +01:00
78 lines
1.7 KiB
C
78 lines
1.7 KiB
C
|
#pragma once
|
||
|
#include <wut.h>
|
||
|
|
||
|
/**
|
||
|
* \defgroup gx2_clear Clear
|
||
|
* \ingroup gx2
|
||
|
* @{
|
||
|
*/
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
typedef struct GX2ColorBuffer GX2ColorBuffer;
|
||
|
typedef struct GX2DepthBuffer GX2DepthBuffer;
|
||
|
|
||
|
typedef enum GX2ClearFlags
|
||
|
{
|
||
|
GX2_CLEAR_FLAGS_DEPTH = 1,
|
||
|
GX2_CLEAR_FLAGS_STENCIL = 2,
|
||
|
} GX2ClearFlags;
|
||
|
|
||
|
void
|
||
|
GX2ClearColor(GX2ColorBuffer *colorBuffer,
|
||
|
float red,
|
||
|
float green,
|
||
|
float blue,
|
||
|
float alpha);
|
||
|
|
||
|
void
|
||
|
GX2ClearDepthStencil(GX2DepthBuffer *depthBuffer,
|
||
|
GX2ClearFlags clearMode);
|
||
|
|
||
|
void
|
||
|
GX2ClearDepthStencilEx(GX2DepthBuffer *depthBuffer,
|
||
|
float depth,
|
||
|
uint8_t stencil,
|
||
|
GX2ClearFlags clearMode);
|
||
|
|
||
|
void
|
||
|
GX2ClearBuffers(GX2ColorBuffer *colorBuffer,
|
||
|
GX2DepthBuffer *depthBuffer,
|
||
|
float red,
|
||
|
float green,
|
||
|
float blue,
|
||
|
float alpha,
|
||
|
GX2ClearFlags clearMode);
|
||
|
|
||
|
void
|
||
|
GX2ClearBuffersEx(GX2ColorBuffer *colorBuffer,
|
||
|
GX2DepthBuffer *depthBuffer,
|
||
|
float red,
|
||
|
float green,
|
||
|
float blue,
|
||
|
float alpha,
|
||
|
float depth,
|
||
|
uint8_t stencil,
|
||
|
GX2ClearFlags clearMode);
|
||
|
|
||
|
void
|
||
|
GX2SetClearDepth(GX2DepthBuffer *depthBuffer,
|
||
|
float depth);
|
||
|
|
||
|
void
|
||
|
GX2SetClearStencil(GX2DepthBuffer *depthBuffer,
|
||
|
uint8_t stencil);
|
||
|
|
||
|
void
|
||
|
GX2SetClearDepthStencil(GX2DepthBuffer *depthBuffer,
|
||
|
float depth,
|
||
|
uint8_t stencil);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
/** @} */
|