diff --git a/include/gx2/tessellation.h b/include/gx2/tessellation.h new file mode 100644 index 00000000..458a1e6b --- /dev/null +++ b/include/gx2/tessellation.h @@ -0,0 +1,31 @@ +#pragma once +#include +#include +#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 + +/** @} */ diff --git a/rpl/libgx2/exports.h b/rpl/libgx2/exports.h index 5c8e6bcb..af82bf9b 100644 --- a/rpl/libgx2/exports.h +++ b/rpl/libgx2/exports.h @@ -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);