wut/include/gx2/clear.h

73 lines
1.6 KiB
C
Raw Normal View History

2016-01-08 17:38:38 +01:00
#pragma once
#include <wut.h>
#include "enum.h"
2016-01-08 17:38:38 +01:00
/**
* \defgroup gx2_clear Clear
* \ingroup gx2
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef struct GX2ColorBuffer GX2ColorBuffer;
typedef struct GX2DepthBuffer GX2DepthBuffer;
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
/** @} */