bitmap_font.h
来自「030_Particle_system using opengl」· C头文件 代码 · 共 31 行
H
31 行
#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 + =
减小字号Ctrl + -
显示快捷键?