Adding a background image to the GLPaint sample
Adding a background image to the GLPaint sample
- Subject: Adding a background image to the GLPaint sample
- From: David Delmonte <email@hidden>
- Date: Wed, 28 Mar 2012 09:22:54 -0400
Hi, I'm trying to do the above. I've added a simple UIButton at the AppDelegate level (as there is no ViewController).
When the button is tapped:
- (IBAction)pictureButtonTapped:(id)sender {
NSLog(@"%s", __FUNCTION__);
drawingView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"background.png"]];
[drawingView playRay];
}
and this results in:
<CAEAGLLayer: 0x6c4a640>: calling -display has no effect.
I only know enough to be dangerous, so any advice on using the GLPaint sample (or alternatives) and this issue specifically, would be most welcome...
David
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden