gx2r: Add gx2r display list functions.

This commit is contained in:
James Benton 2016-10-09 20:57:33 +01:00
parent c70b7be365
commit bb3543b626
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,37 @@
#pragma once
#include <wut.h>
#include "resource.h"
/**
* \defgroup gx2r_displaylist Display List
* \ingroup gx2r
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef struct GX2RBuffer GX2RBuffer;
void
GX2RBeginDisplayListEx(GX2RBuffer *displayList,
uint32_t unknown,
GX2RResourceFlags flags);
uint32_t
GX2REndDisplayList(GX2RBuffer *displayList);
void
GX2RCallDisplayList(GX2RBuffer *displayList,
uint32_t size);
void
GX2RDirectCallDisplayList(GX2RBuffer *displayList,
uint32_t size);
#ifdef __cplusplus
}
#endif
/** @} */

View File

@ -214,3 +214,9 @@ EXPORT(GX2RSetVertexUniformBlock);
EXPORT(GX2RSetPixelUniformBlock);
EXPORT(GX2RSetGeometryUniformBlock);
// gx2r/displaylist.h
EXPORT(GX2RBeginDisplayListEx);
EXPORT(GX2REndDisplayList);
EXPORT(GX2RCallDisplayList);
EXPORT(GX2RDirectCallDisplayList);