Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (34 sloc) 0.746 kb
3d3bb31 @beelsebob initial commit
authored
1 //
2 // GLTutorialController.h
3 // GLTutorial
4 //
5 // Created by Tom Davie on 20/02/2011.
6 // Copyright 2011 Tom Davie. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
03ad42f @beelsebob Update to GL 3.2 Core Profile.
authored
10 #import <CoreVideo/CVDisplayLink.h>
11 #import <OpenGL/gl3.h>
3d3bb31 @beelsebob initial commit
authored
12
13 #define kFailedToInitialiseGLException @"Failed to initialise OpenGL"
14
e123695 @beelsebob Added checks for uniforms and attributes being less than 0.
authored
15 enum Uniforms
16 {
17 kPositionUniform = 0,
18 kBackgroundUniform ,
19 kHoleUniform ,
20 kNumUniforms
21 };
22
3d3bb31 @beelsebob initial commit
authored
23 typedef struct
24 {
25 GLfloat x,y;
26 } Vector2;
27
28 typedef struct
29 {
30 GLfloat x,y,z,w;
31 } Vector4;
32
33 typedef struct
34 {
35 GLfloat r,g,b,a;
36 } Colour;
37
38 @interface GLTutorialController : NSObject
39
40 @property (nonatomic, readwrite, retain) IBOutlet NSOpenGLView *view;
03ad42f @beelsebob Update to GL 3.2 Core Profile.
authored
41 @property (nonatomic, readwrite, retain) IBOutlet NSWindow *window;
3d3bb31 @beelsebob initial commit
authored
42
43 @end
Something went wrong with that request. Please try again.