music-field/include/type.hpp

40 lines
685 B
C++
Raw Normal View History

2018-12-25 13:41:30 +00:00
#ifndef type_h
#define type_h
2018-12-25 13:41:30 +00:00
#include <iostream>
#include <stdint.h>
#include <cmath>
#include <time.h>
#ifdef __APPLE__
#include <OpenGL/OpenGL.h>
#include <GLUT/GLUT.h>
#include <sys/time.h>
#include <unistd.h>
#define _CRT_SECURE_NO_WARNINGS
#endif
#ifdef WIN32
#include <Windows.h>
#include <glut.h>
#pragma warning(disable:4996)
2018-12-25 13:41:30 +00:00
#endif
2018-12-25 13:41:30 +00:00
#include <vector>
#include <list>
#include <map>
2018-12-27 02:11:06 +00:00
//计算函数执行时间间隔
#define DRAW_TIMER 1
//绘图函数执行时间间隔
#define FRESH_TIMER 20
typedef std::pair<double, double> Size;
typedef std::pair<double, double> Point;
typedef std::vector<double> Point3;
typedef std::vector<double> RawColor;
2018-12-25 13:41:30 +00:00
#endif /* type_h */