forked from 0ad/0ad
Ykkrosh
f6de818ea8
* CMeshManager: Changed to check for .pmd and .dae files and convert and cache as appropriate. * CModelDef: Fixed misinterpreted doc comments in. * lib: * Fixed init/shutdown sequences to support multiple VFS-using tests correctly. * Fixed most reported memory leaks from the new leak-reporting test system. * Fixed error when trying to dump debug data about fonts after unloading them. * Added sphere dae/pmd data for tests. * Added output buffering to DAE->PMD converter. * Added precompiled COLLADA converter DLLs. * Removed old redundant conversion script. This was SVN commit r4709.
36 lines
686 B
C
36 lines
686 B
C
#ifndef COLLADA_DLL_H__
|
|
#define COLLADA_DLL_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
# ifdef COLLADA_DLL
|
|
# define EXPORT extern __declspec(dllexport)
|
|
# else
|
|
# define EXPORT extern __declspec(dllimport)
|
|
# endif
|
|
#else
|
|
# define EXPORT extern
|
|
#endif
|
|
|
|
#define LOG_INFO 0
|
|
#define LOG_WARNING 1
|
|
#define LOG_ERROR 2
|
|
|
|
typedef void (*LogFn) (int severity, const char* text);
|
|
typedef void (*OutputFn) (void* cb_data, const char* data, unsigned int length);
|
|
|
|
#define COLLADA_CONVERTER_VERSION 1
|
|
|
|
EXPORT void set_logger(LogFn logger);
|
|
EXPORT int convert_dae_to_pmd(const char* dae, OutputFn pmd_writer, void* cb_data);
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
#endif /* COLLADA_DLL_H__ */
|