gx2: Add some tessellation functions.

This commit is contained in:
James Benton 2016-10-09 20:56:30 +01:00
parent 29d6e56963
commit b85e35dc7d
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,31 @@
#pragma once
#include <wut.h>
#include <coreinit/time.h>
#include "enum.h"
/**
* \defgroup gx2_tessellation Tessellation
* \ingroup gx2
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
void
GX2SetTessellation(GX2TessellationMode tessellationMode,
GX2PrimitiveMode primitiveMode,
GX2IndexType indexType);
void
GX2SetMinTessellationLevel(float min);
void
GX2SetMaxTessellationLevel(float max);
#ifdef __cplusplus
}
#endif
/** @} */

View File

@ -189,6 +189,11 @@ EXPORT(GX2GetLastFrameGamma);
EXPORT(GX2GetSwapInterval);
EXPORT(GX2SetSwapInterval);
// gx2/tessellation.h
EXPORT(GX2SetTessellation);
EXPORT(GX2SetMinTessellationLevel);
EXPORT(GX2SetMaxTessellationLevel);
// gx2/texture.h
EXPORT(GX2InitTextureRegs);
EXPORT(GX2SetPixelTexture);