📄 toolfun.h
字号:
#ifndef TOOL_FUN_H
#define TOOL_FUN_H
#include <stdlib.h>
#include <stdio.h>
#include <sstream>
#include <string>
#include <gl\glut.h>
using std::string;
//--------------------------------------------
// 函数名称:GetFloat
// 描述:得到-1.0f到1.0f范围的浮点值
// 参数:None
// 返回:GLfloat - 随机浮点数值
//--------------------------------------------
inline GLfloat GetFloat()
{
return ( ((GLfloat) rand()-(GLfloat) rand())/RAND_MAX );
}
// 将整型转换为字符串型
string IntToString(int rhs);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -