⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ming.c

📁 flash swf file player
💻 C
字号:
/*    Ming, an SWF output library    Copyright (C) 2002  Opaque Industries - http://www.opaque.net/    This library is free software; you can redistribute it and/or    modify it under the terms of the GNU Lesser General Public    License as published by the Free Software Foundation; either    version 2.1 of the License, or (at your option) any later version.    This library is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    Lesser General Public License for more details.    You should have received a copy of the GNU Lesser General Public    License along with this library; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*//* $Id: ming.c,v 1.14 2003/11/08 18:24:57 whamann Exp $ */#include "ming.h"#include "blocks/character.h"#include "font_util.h"#include "shape_cubic.h"#include "blocks/error.h"int SWF_versionNum = 5;float Ming_scale = 20.0;int Ming_cubicThreshold = 10000;/* module-wide initialization.	return non-zero if error. */int Ming_init(){	SWF_gNumCharacters = 0;	SWF_versionNum = 5;	Ming_cubicThreshold = 10000;	Ming_scale = 20.0;	return 0;}voidMing_cleanup(){	Ming_cleanupFonts();}void Ming_setScale(float scale){	Ming_scale = scale;}float Ming_getScale(){	return Ming_scale;}void Ming_setCubicThreshold(int num){	Ming_cubicThreshold = num;}void Ming_setWarnFunction(void (*warn)(const char *msg, ...)){	setSWFWarnFunction(warn);}void Ming_setErrorFunction(void (*error)(const char *msg, ...)){	setSWFErrorFunction(error);}void Ming_useSWFVersion(int version){	if(version < 4 || version > 6)		SWF_error("Only SWF versions 4, 5 and 6 are currently supported!\n");	SWF_versionNum = version;}/* * Local variables: * tab-width: 2 * c-basic-offset: 2 * End: */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -