-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathGPULifeView.h
More file actions
56 lines (41 loc) · 887 Bytes
/
GPULifeView.h
File metadata and controls
56 lines (41 loc) · 887 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
46
47
48
49
50
51
52
53
54
55
56
//
// GPULifeView.h
// GPULife
//
// Created by Michael Ash on 5/12/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <OpenGL/gl.h>
#if !CGFLOAT_DEFINED
typedef float CGFloat;
#endif
typedef struct {
CGFloat r, g, b;
} GPULifeColor3;
@interface GPULifeView : NSOpenGLView {
BOOL inited;
GLuint tex;
GLuint shader;
int xsize, ysize;
BOOL usingFPSTex;
GLuint fpsTex;
int fpsTexXSize, fpsTexYSize;
int zoom;
int generationRate;
int initialFill;
int numFrames;
double lastClock;
GPULifeColor3 cornerColors[4];
id fpsTarget;
SEL fpsSelector;
BOOL usesTimer;
}
- (void)setZoom:(int)z;
- (void)setGenerationRate:(int)r;
- (void)setInitialFill:(int)f;
- (void)setCornerColors:(GPULifeColor3 *)c;
- (void)setFPSTarget:o selector:(SEL)s;
- (void)setShowsFPS:(BOOL)yorn;
- (void)setUsesTimer:(BOOL)yorn;
@end