WhirlyGlobe  1.2
A 3D interactive globe toolkit for iOS
/Users/sjg/iPhone/WhirlyGlobe/WhirlyGlobeSrc/WhirlyGlobeLib/include/TextureGroup.h
00001 /*
00002  *  TextureGroup.h
00003  *  WhirlyGlobeLib
00004  *
00005  *  Created by Steve Gifford on 1/3/11.
00006  *  Copyright 2011 mousebird consulting
00007  *
00008  *  Licensed under the Apache License, Version 2.0 (the "License");
00009  *  you may not use this file except in compliance with the License.
00010  *  You may obtain a copy of the License at
00011  *  http://www.apache.org/licenses/LICENSE-2.0
00012  *
00013  *  Unless required by applicable law or agreed to in writing, software
00014  *  distributed under the License is distributed on an "AS IS" BASIS,
00015  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016  *  See the License for the specific language governing permissions and
00017  *  limitations under the License.
00018  *
00019  */
00020 
00021 #import <Foundation/Foundation.h>
00022 #import <OpenGLES/EAGL.h>
00023 #import <OpenGLES/ES1/gl.h>
00024 #import <OpenGLES/ES1/glext.h>
00025 #import "WhirlyVector.h"
00026 
00032 @interface TextureGroup : NSObject 
00033 {
00036         NSString *basePath;
00038         NSString *baseName;
00040         NSString *ext;    
00042         unsigned int numX;
00044     unsigned int numY;
00046     unsigned int pixelsSquare;  
00048     unsigned int borderPixels;  
00049 }
00050 
00051 @property (nonatomic,retain) NSString *basePath,*baseName,*ext;
00052 @property (nonatomic,readonly) unsigned int numX,numY;
00053 @property (nonatomic,readonly) unsigned int pixelsSquare,borderPixels;
00054 
00057 - (id) initWithInfo:(NSString *)infoName;
00058 
00060 - (NSString *) generateFileNameX:(unsigned int)x y:(unsigned int)y;
00061 
00064 - (void)calcTexMappingOrg:(WhirlyGlobe::TexCoord *)org dest:(WhirlyGlobe::TexCoord *)dest;
00065 
00066 @end