-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparticle.h
More file actions
45 lines (30 loc) · 835 Bytes
/
particle.h
File metadata and controls
45 lines (30 loc) · 835 Bytes
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
//
// particle.h
// StarTroupial
//
// Created by Jenny Valdez on 02/11/12.
// Copyright (c) 2012 Jenny Valdez. All rights reserved.
//
#ifndef __StarTroupial__particle__
#define __StarTroupial__particle__
#include "object.h"
using namespace std;
class particle : public object {
protected:
// Initial point
float ini[3];
// Direction
float dir[3];
// Angle
float angle;
// Size of the particle
float scale;
public:
// Constructor
particle(float a, float b, float c, float direction[]);
// Updates star
void update(float dx = 0, float dy = 0, float dz = 0);
// Draws star
void draw(GLenum mode = GL_RENDER, int ident = 0, vector<float> shadowPlane = vector<float>());
};
#endif /* defined(__StarTroupial__particle__) */