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

📄 bitmap_font.h

📁 environment_mapped_bump_mapping using opengl
💻 H
字号:
#ifndef _BITMAP_FONT_H
#define _BITMAP_FONT_H

#include "init.h"
#include "texture.h"

class	Font{
	GLuint	base;				// Base Display List For The Font
	GLuint	loop;				// Generic Loop Variable

	GLfloat	cnt1;				// 1st Counter Used To Move Text & For Coloring
	GLfloat	cnt2;				// 2nd Counter Used To Move Text & For Coloring
	
public:	
	texture textur;
	void Print_scale(GLint x, GLint y, char * string, int set,float scale_x,float scale_y);
	void Print_xy_scale(GLint x, GLint y, char *string, int set,float scale_x,float scale_y);
	void Print_xy_rot(GLint x, GLint y, char *string, int set,float uhol,float scale);
	void Print_xy(GLint x, GLint y, char * string, int set);
	Font(char *file_name, int *error);
	~Font(void);
	GLvoid glPrint_xy(GLint x, GLint y, char *string, int set);		// pise na OpenGL suradnice x,y
	GLvoid glPrint(GLint x, GLint y, char *string, int set);		// pise na y riadok a x stlpec
	
	// funkcie Begin a End treba pouzivat v paroch !!!!
	void Begin(void);			// nastavi vsetko potrebne pre pisenie pomocou Print
	void Print(GLint x, GLint y, char *string, int set);	// pisanie
	void End(void);				// vypne vsetko co sa zaplo pre pisenie pomocou Print
};

#endif

⌨️ 快捷键说明

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