📄 glextra.h
字号:
#ifndef GLEXTRA_H
#define GLEXTRA_H
#include "myGL.h"
/*
* Draw a circle on top of the top surface (ground/water).
&
* Note: Uses the current color.
*/
class CWeapon;
typedef void (*SurfaceCircleFunc)(const float3& center, float radius,
unsigned int resolution);
extern SurfaceCircleFunc glSurfaceCircle;
extern void glBallisticCircle(const float3& center, float radius,
const CWeapon* weapon,
unsigned int resolution, float slope = 0.0f);
extern void setSurfaceCircleFunc(SurfaceCircleFunc func);
typedef void (*DrawVolumeFunc)(const void* data);
extern void glDrawVolume(DrawVolumeFunc drawFunc, const void* data);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -