📄 extra.h
字号:
/* GL_shadow: an implementation of the stencil shadow volume technique * Copyright (C) 2005 Angelo "Encelo" Theodorou */#ifndef _EXTRA_H_#define _EXTRA_H_#ifndef M_PIl #define M_PIl 3.1415926535897932384626433832795029L#endiftypedef struct Light { GLfloat Position[4]; GLfloat Ambient[4]; GLfloat Diffuse[4]; GLfloat Specular[4];} Light;int FrameTiming(void);void perspectiveGL(GLdouble fovY, GLdouble aspect, GLdouble zNear, GLdouble zFar);void DrawRoom(void);void UpdateLight(Light *light, GLint gl_light, GLfloat size);void VMatMult(GLfloat M[16], GLfloat v[4]);void CpVec(GLfloat *src, GLfloat *dst, int size);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -