Oolite 1.91.0.7604-240417-a536cbe
Loading...
Searching...
No Matches
DustEntity.h
Go to the documentation of this file.
1/*
2
3DustEntity.h
4
5Entity representing a number of dust particles.
6
7Oolite
8Copyright (C) 2004-2013 Giles C Williams and contributors
9
10This program is free software; you can redistribute it and/or
11modify it under the terms of the GNU General Public License
12as published by the Free Software Foundation; either version 2
13of the License, or (at your option) any later version.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23MA 02110-1301, USA.
24
25*/
26
27#import "Entity.h"
29#import "OOTexture.h"
30
31#define DUST_SCALE 2000
32#define DUST_N_PARTICLES 600
33
34@class OOColor, OOShaderProgram, OOShaderUniform;
35
36
37@interface DustEntity: Entity
38{
39@private
41 Vector vertices[DUST_N_PARTICLES * 2];
42 GLushort indices[DUST_N_PARTICLES * 2];
43 GLfloat color_fv[4];
46
47#if OO_SHADERS
48 GLfloat warpinessAttr[DUST_N_PARTICLES * 2];
49 OOShaderProgram *shader;
50 NSArray *uniforms;
51 uint8_t shaderMode;
52#endif
53}
54
55- (void) setDustColor:(OOColor *) color;
56- (OOColor *) dustColor;
57
58@end
Vector vertices[DUST_N_PARTICLES *2]
Definition DustEntity.h:41
bool hasPointSprites
Definition DustEntity.h:45
OOColor * dust_color
Definition DustEntity.h:40
GLushort indices[DUST_N_PARTICLES *2]
Definition DustEntity.h:42
OOTexture * texture
Definition DustEntity.h:44
GLfloat color_fv[4]
Definition DustEntity.h:43