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

📄 freetype.h

📁 S.C.O.U.R.G.E.是一款类似Rogue的游戏
💻 H
字号:
#ifndef FREE_NEHE_H#define FREE_NEHE_H//FreeType Headers#include <ft2build.h>#include <freetype/freetype.h>#include <freetype/ftglyph.h>#include <freetype/ftoutln.h>#include <freetype/fttrigon.h>//OpenGL Headers #include <GL/gl.h>#include <GL/glu.h>//Some STL headers#include <vector>#include <string>//Using the STL exception library increases the//chances that someone else using our code will corretly//catch any exceptions that we throw.#include <stdexcept>#include <iostream>//Inside of this namespace, give ourselves the ability//to write just "vector" instead of "std::vector"using namespace std;//This holds all of the information related to any//freetype font that we want to create.  struct freetype_font_data {	float h;			///< Holds the height of the font.	GLuint * textures;	///< Holds the texture id's 	GLuint list_base;	///< Holds the first display list id	//The init function will create a font of	//of the height h from the file fname.	void init(const char * fname, unsigned int h);	//Free all the resources assosiated with the font.	void clean();};//The flagship function of the library - this thing will print//out text at window coordinates x,y, using the font ft_font.//The current modelview matrix will also be applied to the text. void freetype_print(const freetype_font_data &ft_font, float x, float y, const char *fmt, ...) ;#endif

⌨️ 快捷键说明

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