-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphics.h
67 lines (47 loc) · 1.22 KB
/
graphics.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef graphics_h
#define graphics_h
#include "circle.h"
#include "rect.h"
#include "freeShape.h"
#include <iostream>
#include <fstream>
#include <memory>
#include <vector>
#include <stdlib.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/time.h>
#endif
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
// Program initialization NOT OpenGL/GLUT dependent,
// as we haven't created a GLUT window yet
void initClouds();
void initGrass();
void initUser();
void init();
void initBullets();
void initGun();
//Shooting gun
void shoot(std::vector<std::unique_ptr<Shape>> &buls, int &bNum, double xVel , double yVel);
//Killing bird
// Initialize OpenGL Graphics
void InitGL();
// Callback functions for GLUT
// Draw the window - this is where all the GL actions are
void display();
// Trap and process alphanumeric keyboard events
void kbd(unsigned char key, int x, int y);
// Trap and process special keyboard events
void kbdS(int key, int x, int y);
// Handle "mouse cursor moved" events
void cursor(int x, int y);
// Calls itself after a specified time
void timer(int dummy);
// Handle mouse button pressed and released events
void mouse(int button, int state, int x, int y);
#endif /* graphics_h */