?? bitmap_font.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 + -