Oolite
1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
src
Core
Entities
DustEntity.h
Go to the documentation of this file.
1
/*
2
3
DustEntity.h
4
5
Entity representing a number of dust particles.
6
7
Oolite
8
Copyright (C) 2004-2013 Giles C Williams and contributors
9
10
This program is free software; you can redistribute it and/or
11
modify it under the terms of the GNU General Public License
12
as published by the Free Software Foundation; either version 2
13
of the License, or (at your option) any later version.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23
MA 02110-1301, USA.
24
25
*/
26
27
#import "
Entity.h
"
28
#import "
OOOpenGLExtensionManager.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
40
OOColor
*
dust_color
;
41
Vector
vertices
[DUST_N_PARTICLES * 2];
42
GLushort
indices
[DUST_N_PARTICLES * 2];
43
GLfloat
color_fv
[4];
44
OOTexture
*
texture
;
45
bool
hasPointSprites
;
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
Entity.h
OOOpenGLExtensionManager.h
OOTexture.h
DustEntity
Definition
DustEntity.h:38
DustEntity::vertices
Vector vertices[DUST_N_PARTICLES *2]
Definition
DustEntity.h:41
DustEntity::hasPointSprites
bool hasPointSprites
Definition
DustEntity.h:45
DustEntity::dust_color
OOColor * dust_color
Definition
DustEntity.h:40
DustEntity::indices
GLushort indices[DUST_N_PARTICLES *2]
Definition
DustEntity.h:42
DustEntity::texture
OOTexture * texture
Definition
DustEntity.h:44
DustEntity::color_fv
GLfloat color_fv[4]
Definition
DustEntity.h:43
Entity
Definition
Entity.h:79
OOColor
Definition
OOColor.h:46
OOTexture
Definition
OOTexture.h:117
Generated by
1.12.0