Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More defined way to alter background behind globe #28

Closed
andrewhoyer opened this issue Mar 6, 2013 · 1 comment
Closed

More defined way to alter background behind globe #28

andrewhoyer opened this issue Mar 6, 2013 · 1 comment

Comments

@andrewhoyer
Copy link
Contributor

Currently, the way to define what color is behind the globe is:

// Set the globe's view background
[globeViewC.view setBackgroundColor:[UIColor clearColor]];

// Set the background color for the globe
globeViewC.clearColor = [UIColor clearColor];

This works for all cases except clearColor, because the WhirlyKitEAGLView view is a subview of globeViewC.view and seems to be defaulting to black. Finding and setting that view's background color works, but doesn't feel like a solid solution.

Could there be a single function of the WhirlyGlobeViewController that sets all three of these at once, perhaps:

[globeViewC setBackgroundColor:[UIColor clearColor]];

After that the code could specifically set colors as needed for flexibility.

The other option is providing access to the WhirlyKitEAGLView via the WhirlyGlobeViewController, and letting the developer set each one individually:

[globeViewC.glview setBackgroundColor:[UIColor clearColor]];

Thanks,
Andrew

@mousebird
Copy link
Collaborator

Fixed in 2.2. ClearColor will look at the color and if the alpha is less than full, it will set the two background to [UIColor clearColor]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants