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

📄 gameswf_types.h

📁 一个开源的嵌入式flash播放器 具体看文档和例子就可
💻 H
字号:
// gameswf_types.h	-- Thatcher Ulrich <tu@tulrich.com> 2003// This source code has been donated to the Public Domain.  Do// whatever you want with it.// Some basic types for gameswf.#ifndef GAMESWF_TYPES_H#define GAMESWF_TYPES_H#include "gameswf/gameswf.h"#include "base/tu_types.h"namespace gameswf{	extern bool	s_verbose_action;	extern bool	s_verbose_parse;	extern bool	s_verbose_debug;};#define IF_VERBOSE_ACTION(exp) if (gameswf::s_verbose_action) { exp; }#define IF_VERBOSE_PARSE(exp) if (gameswf::s_verbose_parse) { exp; }#define IF_VERBOSE_DEBUG(exp) if (gameswf::s_verbose_debug) { exp; }#define TWIPS_TO_PIXELS(x)	((x) / 20.f)#define PIXELS_TO_TWIPS(x)	((x) * 20.f)namespace gameswf{	struct stream;	// forward declaration	struct rgba	{		Uint8	m_r, m_g, m_b, m_a;		rgba() : m_r(255), m_g(255), m_b(255), m_a(255) {}		rgba(Uint8 r, Uint8 g, Uint8 b, Uint8 a)			:			m_r(r), m_g(g), m_b(b), m_a(a)		{		}		void	read(stream* in, int tag_type);		void	read_rgba(stream* in);		void	read_rgb(stream* in);		void	set(Uint8 r, Uint8 g, Uint8 b, Uint8 a)		{			m_r = r;			m_g = g;			m_b = b;			m_a = a;		}		void	set_lerp(const rgba& a, const rgba& b, float f);		void	print();	};};	// end namespace gameswf#endif // GAMESWF_TYPES_H// Local Variables:// mode: C++// c-basic-offset: 8 // tab-width: 8// indent-tabs-mode: t// End:

⌨️ 快捷键说明

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