istereo

diff src/EAGLView.h @ 35:23e5d274b2a2

added options panel, also added the xib files to the repository as they're needed
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Sep 2011 10:03:42 +0300
parents 1bb950d0976b
children ff055bff6a15
line diff
     1.1 --- a/src/EAGLView.h	Fri Sep 09 00:31:54 2011 +0300
     1.2 +++ b/src/EAGLView.h	Fri Sep 09 10:03:42 2011 +0300
     1.3 @@ -1,33 +1,30 @@
     1.4 -//
     1.5 -//  EAGLView.h
     1.6 -//  istereo
     1.7 -//
     1.8 -//  Created by nuclear on 9/6/11.
     1.9 -//  Copyright __MyCompanyName__ 2011. All rights reserved.
    1.10 -//
    1.11 -
    1.12  #import <UIKit/UIKit.h>
    1.13  #import <QuartzCore/QuartzCore.h>
    1.14  
    1.15  #import "ESRenderer.h"
    1.16  
    1.17 +
    1.18 +void show_options(void);
    1.19 +void hide_options(void);
    1.20 +
    1.21 +
    1.22  // This class wraps the CAEAGLLayer from CoreAnimation into a convenient UIView subclass.
    1.23  // The view content is basically an EAGL surface you render your OpenGL scene into.
    1.24  // Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
    1.25  @interface EAGLView : UIView
    1.26 -{    
    1.27 +{
    1.28  @private
    1.29 -    id <ESRenderer> renderer;
    1.30 +	id <ESRenderer> renderer;
    1.31  
    1.32 -    BOOL animating;
    1.33 -    BOOL displayLinkSupported;
    1.34 -    NSInteger animationFrameInterval;
    1.35 -    // Use of the CADisplayLink class is the preferred method for controlling your animation timing.
    1.36 -    // CADisplayLink will link to the main display and fire every vsync when added to a given run-loop.
    1.37 -    // The NSTimer class is used only as fallback when running on a pre 3.1 device where CADisplayLink
    1.38 -    // isn't available.
    1.39 -    id displayLink;
    1.40 -    NSTimer *animationTimer;
    1.41 +	BOOL animating;
    1.42 +	BOOL displayLinkSupported;
    1.43 +	NSInteger animationFrameInterval;
    1.44 +	// Use of the CADisplayLink class is the preferred method for controlling your animation timing.
    1.45 +	// CADisplayLink will link to the main display and fire every vsync when added to a given run-loop.
    1.46 +	// The NSTimer class is used only as fallback when running on a pre 3.1 device where CADisplayLink
    1.47 +	// isn't available.
    1.48 +	id displayLink;
    1.49 +	NSTimer *animationTimer;
    1.50  }
    1.51  
    1.52  @property (readonly, nonatomic, getter=isAnimating) BOOL animating;