"Mep_c.h"ファイル
#ifndef MEP_C_H
#define MEP_C_H
#include "windows.h"
//プラグインは、これら全ての関数を(利用する,しないにかかかわらず)
//定義する必要があります
typedef int (WINAPI *ME_INITFUNCTION)();
typedef int (WINAPI *ME_SETUPFUNCTION)(int,int,void*);
typedef int (WINAPI *ME_RESETFUNCTION)();
typedef int (WINAPI *ME_REMOVEFUNCTION)(int);
typedef int (WINAPI *ME_FRAMEFUNCTION)(int,int,void*);
typedef int (WINAPI *ME_DONEFUNCTION)();
typedef int (WINAPI *ME_TYPEFUNCTION)();
typedef int (WINAPI *ME_EDITFUNCTION)(int,void*);
typedef int (WINAPI *ME_SETPFUNCTION)(int,char*,void*);
typedef int (WINAPI *ME_GETPFUNCTION)(int,char*);
typedef int (WINAPI *ME_DESCFUNCTION)(char*);
#define ME_INITFUNCTIONNAME "mePlugInit"
#define ME_SETUPFUNCTIONNAME "mePlugSetup"
#define ME_RESETFUNCTIONNAME "mePlugReset"
#define ME_FRAMEFUNCTIONNAME "mePlugFrame"
#define ME_DONEFUNCTIONNAME "mePlugDone"
#define ME_TYPEFUNCTIONNAME "mePlugType"
#define ME_EDITFUNCTIONNAME "mePlugEdit"
#define ME_SETPFUNCTIONNAME "mePlugSetP"
#define ME_GETPFUNCTIONNAME "mePlugGetP"
#define ME_REMOVEFUNCTIONNAME "mePlugRemove"
#define ME_DESCFUNCTIONNAME "mePlugDesc"
#define MEPLUGIN_ANIMATION 1
#define MEPLUGIN_MORPH 2
#define MENEXT_START 0
#define MENEXT_NEXT 1
typedef struct
{
void* (*ObjectInfo) (int);
DWORD (*ObjectList) (int*);
DWORD (*CameraList) (int*);
DWORD (*LightList) (int*);
} meGlobalFunctions;
//オブジェクト情報を取得するインターフェース関数のテーブル
typedef struct
{
int (*GetName)(char*);
int (*GetParent)();
int (*GetChild)(int);
int (*GetVertices)(void*,DWORD*);
int (*SetVerticesAndFaces)( void*, DWORD, void*, DWORD);
int (*GetFaces)(void*,DWORD*);
int (*GetNormals)(void*,DWORD*);//未使用
int (*SetNormals)(void*,DWORD);//未使用
int (*GenerateNormals)();//未使用
int (*GetPosition)(float*);
int (*SetPosition)(float*);
int (*GetRotation)(float*);
int (*SetRotation)(float*);
int (*GetScale)(float*);//未使用
int (*SetScale)(float*);//未使用
int (*GetField)(float*);//未使用
int (*SetField)(float);//未使用
int (*GetColor)(float*);//未使用
int (*SetColor)(float*);//未使用
int (*GetPointer)(void**);//未使用
int (*SetRenderMode)(int);
int (*GetVertexColors)(DWORD*,ULONG*);
int (*SetVertexColors)(DWORD*,ULONG);
int (*GetBox)(float*, float*);//未使用
int (*SetFaceAttribute)(ULONG,ULONG);
int (*GetFaceAttribute)(ULONG,ULONG*);
} meObjectInfoFunctions ;
#endif
|
Copyright (c) 1999____ |
Micronet co.,Ltd |
| Micronet Software Manila Inc. |