Question: I'm trying to pass parameters via Three20 for iOS in a way similar to this question: [Multi-parameter mapping with Three20 and TTURLMap](https://stackoverflow.com/questions/3182585/multi-parameter-mapping-with-three20-and-tturlmap)

However, I'm running into an issue that question doesn't address. My mapping is currently set up as

```
    [map from:@"sb://launcher/(initWithAccount:)" toModalViewController:[AccountOverviewViewController class] transition:0];

```

To get there, I am calling:

```
    NSString *URL = [NSString stringWithFormat:@"sb://launcher/%@", [@"hey" stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]];
[[TTNavigator navigator] openURLAction:[[TTURLAction actionWithURLPath:URL] applyAnimated:YES]];

```

Then, in AccountOverviewViewController, I have

```
- (void)initWithAccount:(NSString *)name {
NSLog(name);

```

}

to make sure I'm getting the right value (which I am) as Console.app is outputting "hey". All that is working fine except for one thing, AccountOverviewViewController never shows up! The initWithAccount: method inside of it is called, but it never displays itself on the screen. Am I missing a step here to get the controller to get the parameter AND show itself?

Thanks.

Answer: 
Use:

`glEnable(GL_TEXTURE_2D);`

before rendering the one surface, and then right before the other surfaces:

`glDisable(GL_TEXTURE_2D);`

You have to of course make sure you're loading your texture, setting it up, and binding it before getting to the point of rendering your surfaces.
You must also add texture coordinates to the vertices of the polygons that you want to apply a texture to. To do this you must use glTexCoord2f/glTexCoord2d. So, for example, if you have the following (untextured) polygon:

```
glBegin(GL_POLYGON);
glVertex3f(0.0f, 0.0f, 0.0f);
glVertex3f(1.0f, 0.0f, 0.0f);
glVertex3f(1.0f, 1.0f, 0.0f);
glVertex3f(0.0f, 1.0f, 0.0f);
glEnd();

```

Add texture coordinates like this:

```
glBegin(GL_POLYGON);
glTexCoord2f(0.0f, 0.0f); glVertex3f(0.0f, 0.0f, 0.0f);
glTexCoord2f(1.0f, 0.0f); glVertex3f(1.0f, 0.0f, 0.0f);
glTexCoord2f(1.0f, 1.0f); glVertex3f(1.0f, 1.0f, 0.0f);
glTexCoord2f(0.0f, 1.0f); glVertex3f(0.0f, 1.0f, 0.0f);
glEnd();

```