Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c3e0e1e6c3
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (28 sloc) 1.214 kb
// RAGeometry.h
// RASceneGraphMac
// Created by Ross Anderson on 2/17/12.
// Copyright (c) 2012 Ross Anderson. All rights reserved.
#import <GLKit/GLKit.h>
#import "RANode.h"
#import "RATextureWrapper.h"
@interface RAGeometry : RANode
// set to -1 if N/A
@property (assign, nonatomic) NSInteger positionOffset; // GLFloat X, Y, Z
@property (assign, nonatomic) NSInteger normalOffset; // GLFloat X, Y, Z
@property (assign, nonatomic) NSInteger colorOffset; // GLFloat r, g, b, a
@property (assign, nonatomic) NSInteger textureOffset; // GLFloat s, t
@property (strong, nonatomic) RATextureWrapper * texture0;
@property (strong, nonatomic) RATextureWrapper * texture1;
@property (assign, nonatomic) GLKVector4 color; // set 1st component to -1 to disable
@property (assign, nonatomic) GLenum elementStyle; // default: GL_TRIANGLES
+ (void)cleanupAll:(BOOL)all;
- (void)setObjectData:(const void *)data withSize:(NSUInteger)length withStride:(NSUInteger)stride;
- (void)setIndexData:(const void *)data withSize:(NSUInteger)length withStride:(NSUInteger)stride;
// these methods must be called from within a context
- (void)setupGL;
- (void)releaseGL;
- (void)renderGL;
Jump to Line
Something went wrong with that request. Please try again.