40 lines
1000 B
C++
40 lines
1000 B
C++
// Scriptor3D.h: interface for the Scriptor3D class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
//这个类封装了jimmy提供的3D脚本生成工具
|
|
|
|
#include "scriptor.h"
|
|
|
|
#if !defined(AFX_SCRIPTOR3D_H__77C64DEB_200E_4857_BEEE_DAD3C732F148__INCLUDED_)
|
|
#define AFX_SCRIPTOR3D_H__77C64DEB_200E_4857_BEEE_DAD3C732F148__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
class Scriptor3D
|
|
{
|
|
public:
|
|
Scriptor3D();
|
|
virtual ~Scriptor3D();
|
|
|
|
//3d脚本生成接口
|
|
struct _point * get_points();
|
|
void destroy();
|
|
int get_pole_start();
|
|
BOOL set_pole_start(int startpole);
|
|
int get_pole_count();
|
|
struct _rect * get_rect();
|
|
void _save_scr();
|
|
BOOL generate();
|
|
void set_zone(bool enable, int zonec, int *zonev);
|
|
void SetRect(int x0, int y0, int x1, int y1);
|
|
void create(const char *name, int flags);
|
|
|
|
private:
|
|
struct _scriptor *m_scr;
|
|
struct _rect m_rect;
|
|
};
|
|
|
|
#endif // !defined(AFX_SCRIPTOR3D_H__77C64DEB_200E_4857_BEEE_DAD3C732F148__INCLUDED_)
|