-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathopenGL.h
27 lines (26 loc) · 869 Bytes
/
openGL.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
/*#ifndef opengl
#define opengl*/
#include "include/Angel.h"
#pragma comment(lib, "glew32.lib")
#include<cstdio>
#include "mmsystem.h"
#include <windows.h>
#pragma comment (lib, "winmm.lib")
// 获得圆上的点
vec2 getEllipseVertex(vec2 center, double scale, double verticalScale, double angle);
void init();
/** \brief 生成圆的坐标*/
void generateEllipsePoints(bool currentState, int startVertexIndex, int numPoints,
vec2 center, double scale, double verticalScale);
// 获得正方形上的点,用来定位最后落棋点
void updateSquarePoints(float x, float y);
void display();
void mainWindowMouse(int button, int state, int x, int y);
void reshape(GLsizei w, GLsizei h);
void keyboard(unsigned char key, int x, int y);
void idle(void);
void music(char ch);
void mainWindowMenuEvents(int menuChoice);
void mainWindowSetupMenu();
//#endif