Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (34 sloc) 0.746 kB
//
// GLTutorialController.h
// GLTutorial
//
// Created by Tom Davie on 20/02/2011.
// Copyright 2011 Tom Davie. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <CoreVideo/CVDisplayLink.h>
#import <OpenGL/gl3.h>
#define kFailedToInitialiseGLException @"Failed to initialise OpenGL"
enum Uniforms
{
kPositionUniform = 0,
kBackgroundUniform ,
kHoleUniform ,
kNumUniforms
};
typedef struct
{
GLfloat x,y;
} Vector2;
typedef struct
{
GLfloat x,y,z,w;
} Vector4;
typedef struct
{
GLfloat r,g,b,a;
} Colour;
@interface GLTutorialController : NSObject
@property (nonatomic, readwrite, retain) IBOutlet NSOpenGLView *view;
@property (nonatomic, readwrite, retain) IBOutlet NSWindow *window;
@end
Jump to Line
Something went wrong with that request. Please try again.