00001 // 00002 // O3D_Texture.h 00003 // Objective3D 00004 // 00005 // Created by charlie on 5/29/09. 00006 // Copyright 2009 One More Muse. All rights reserved. 00007 // 00008 00009 #import <Cocoa/Cocoa.h> 00010 #import <OpenGL/OpenGL.h> 00011 #import <ApplicationServices/ApplicationServices.h> 00012 00014 @interface O3D_Texture : NSObject { 00015 // A pointer to the location in texture memory for this texture 00016 GLuint texID; 00017 } 00018 00019 @property (nonatomic) GLuint texID; 00020 00022 - (id) initWithBitmap:(NSString *)filename; 00024 - (BOOL) loadBitmap:(NSString *)filename intoIndex:(int)texIndex; 00026 - (void) bind; 00027 00028 @end