From a55a271f64ecd0b24e8434f3b86a5996c134a394 Mon Sep 17 00:00:00 2001 From: tobigun Date: Tue, 19 Feb 2008 09:41:46 +0000 Subject: A C-Wrapper to make the ProjectM C++-Headers usable in Delphi. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@861 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/lib/projectM/1.0/cwrapper/projectM.h | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Game/Code/lib/projectM/1.0/cwrapper/projectM.h (limited to 'Game/Code/lib/projectM/1.0/cwrapper/projectM.h') diff --git a/Game/Code/lib/projectM/1.0/cwrapper/projectM.h b/Game/Code/lib/projectM/1.0/cwrapper/projectM.h new file mode 100644 index 00000000..a64f2666 --- /dev/null +++ b/Game/Code/lib/projectM/1.0/cwrapper/projectM.h @@ -0,0 +1,27 @@ +#ifndef __PROJECTM_CWRAPPER_H__ +#define __PROJECTM_CWRAPPER_H__ + +#include "projectM.hpp" + +extern "C" { + DLLEXPORT projectM* projectM_create1(char* config_file); + DLLEXPORT projectM* projectM_create2(int gx, int gy, int fps, int texsize, + int width, int height, char* preset_url, char* title_fonturl, char* title_menuurl); + + DLLEXPORT void projectM_resetGL(projectM* pm, int width, int height); + DLLEXPORT void projectM_setTitle(projectM* pm, char* title); + DLLEXPORT void projectM_renderFrame(projectM* pm); + DLLEXPORT unsigned projectM_initRenderToTexture(projectM* pm); + DLLEXPORT void projectM_key_handler(projectM* pm, projectMEvent event, + projectMKeycode keycode, projectMModifier modifier); + + DLLEXPORT void projectM_free(projectM* pm); + + DLLEXPORT void PCM_addPCMfloat(projectM* pm, float *PCMdata, int samples); + DLLEXPORT void PCM_addPCM16(projectM* pm, short [2][512]); + DLLEXPORT void PCM_addPCM16Data(projectM* pm, const short* pcm_data, short samples); + DLLEXPORT void PCM_addPCM8(projectM* pm, unsigned char [2][1024]); + DLLEXPORT void PCM_addPCM8_512(projectM* pm, const unsigned char [2][512]); +} + +#endif \ No newline at end of file -- cgit v1.2.3