38#define MAX_TRI_INDICES 3*(20+80+320+1280+5120+20480)
39#define MAX_PLANET_VERTICES 10400
44 Vector vertex_array[MAX_PLANET_VERTICES + 2];
45 GLfloat color_array[4*MAX_PLANET_VERTICES];
46 GLfloat uv_array[2*MAX_PLANET_VERTICES];
47 Vector normal_array[MAX_PLANET_VERTICES];
48 GLuint index_array[MAX_TRI_INDICES];
52#define PlanetEntity OOPlanetEntity
60 uint8_t lastSubdivideLevel;
61 BOOL useTexturedModel;
63 NSString *_textureFileName;
67 double polar_color_factor;
69 double rotational_velocity;
72 GLfloat amb_polar_land[4];
74 GLfloat amb_polar_sea[4];
76 PlanetEntity *atmosphere;
77 PlanetEntity *root_planet;
79 int shuttles_on_ground;
80 double last_launch_time;
81 double shuttle_launch_interval;
83 double sqrt_zero_distance;
85 GLuint displayListNames[MAX_SUBDIVIDE];
87 VertexData vertexdata;
92- (id) initFromDictionary:(NSDictionary*)dict withAtmosphere:(BOOL)atmo andSeed:(
Random_Seed)p_seed;
95- (BOOL) setUpPlanetFromTexture:(NSString *)fileName;
99- (BOOL) isExplicitlyTextured;
101- (NSString *) textureFileName;
103- (double) polar_color_factor;
104- (GLfloat *) amb_land;
105- (GLfloat *) amb_polar_land;
106- (GLfloat *) amb_sea;
107- (GLfloat *) amb_polar_sea;
114- (void) setRadius:(GLfloat) rad;
115- (double) rotationalVelocity;
116- (void) setRotationalVelocity:(
double) v;
118- (BOOL) hasAtmosphere;
120- (void) launchShuttle;
122- (void) welcomeShuttle:(
ShipEntity *) shuttle;
124- (void) drawUnconditionally;
127- (PlanetEntity *) atmosphere;
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque