cglayer Questions

2

Solved

I'm trying to add modern OS X support to OpenTK framework. Mac OS Lion supports OpenGL 3.2 Core context. I can successfully obtain it by using CGL. However, I can't find a straight way to bind the ...
Elementary asked 12/8, 2011 at 13:50

4

Solved

I'm trying to add AVPlayerLayer to UIView self.player = AVPlayer(URL: NSURL(fileURLWithPath: path!)) self.playerLayer = AVPlayerLayer(player: player); self.playerLayer.videoGravity = AVLayerVid...
Dannie asked 16/2, 2016 at 21:31

2

I have created a simple drawing project,the code works fine, but I want to cache the drawing into CGlayer, because I read that its more efficient way in drawing . I have read through the documents,...
Snell asked 5/7, 2012 at 9:46

3

Solved

I've written an iOS app in which I'm using CGLayer quite successfully. While researching ways to squeeze a bit more performance out of this app, I came across this blog post: http://iosptl.com/post...
Gatto asked 12/2, 2014 at 20:29

2

I'm trying to get my UITextView's corners to be masked by the rounded corners of the grouped UITableViewCell that contains it. Here's a screenshot of the cell as it currently stands Here's some...
Peritoneum asked 20/2, 2013 at 16:23

1

I need QuartzCore.framework to add borderColor to a textfield, how?
Temptation asked 11/10, 2014 at 19:41

2

Solved

I’m changing the background colour of a UIButton via this category method, using a 1px by 1px image: - (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControlState)state { UIGraph...
Nonintervention asked 10/9, 2014 at 15:26

4

Solved

I am working on a drawing app, I want to do Undo/Redo, for this I am saving CGPath on touches ended to NSMutableArray, But I am not understanding how I should render the CGPaths on click of Undo bu...
Tanner asked 29/1, 2014 at 17:43

2

I am working with a drawing app, I am using CGlayers for drawing. On touches ended, I get image out of the layer and store it in a Array, which I use to undo operation. My touches ended function ...
Austine asked 9/1, 2014 at 18:3

2

I am trying to figure out the relationship between CGL and OpenGL on Mac platform. More specifically about the context. Do they share context? If yes, how? Please give me a link to some related e...
Saez asked 29/8, 2011 at 14:34

2

I am working with unod redo operations on CgLayer, I have tried some code, but not able to get it working, dont know , where I am getting wrong, below is my code, which i have written this is my d...
Impatiens asked 9/7, 2012 at 12:16

2

Instead of letting drawRect redraw thousands of point every time, I think there are several ways to "cache the image on screen" and any additional drawing, we will add to that image, and just show ...
Bedew asked 27/5, 2012 at 18:36

1

Solved

I have a UIPanGestureRecognizer attached to a view in my iOS app. I copied the code from the Touches sample app for the pan handler. When the gesture starts, my code: Records the original anchor ...
Verdugo asked 6/5, 2012 at 4:57

1

Solved

I am trying to understand few things on Mac related to OpenGL framework integration in the form of layers. Well basically when I want to understand 3D technologies present in OS X and which layer i...
Ammonic asked 31/1, 2012 at 11:54

2

Solved

I'm drawing a graph on a CALayer in its delegate method drawLayer:inContext:. Now I want to support Retina Display, as the graph looks blurry on the latest devices. For the parts that I draw dire...
Willson asked 18/7, 2011 at 7:39

1

Solved

So I read here on SO that I can encode a CGLayerRef to a NSValue using NSValue *myCopy = [[NSValue alloc] initWithBytes:&myLayer objCType:@encode(CGLayerRef)]; but how do I recreate the CGL...
Castora asked 2/6, 2011 at 0:59
1

© 2022 - 2024 — McMap. All rights reserved.