• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CAOpenGLLayer content size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CAOpenGLLayer content size


  • Subject: Re: CAOpenGLLayer content size
  • From: Takashi Mochizuki <email@hidden>
  • Date: Thu, 14 Jul 2011 08:06:30 +0900

I have noticed -setNeedsDisplay seems to breaks contentsGravity like kCAGravityResizeAspect.
BackBuffer rect seems to control contentsGravity behavior.

- How can I make "kCAGravity compatible" CAOpenGLLayer?

To make contentsGravity property work property , I think CAOpenGLLayer should keep content as fixed rect.
But layer.contentsRect property seems to be not suitable.
(contentsRect default is unit rect  {0,0,1,1}, not in pixel)

Takashi Mochizuki

On 2011/07/13, at 0:34, David Duncan wrote:

> On Jul 8, 2011, at 11:33 PM, Takashi Mochizuki wrote:
>
>> Default CAOpenGLLayer keeps initial buffer size when addSubLayer: is called. And it does not update back buffer size even when layer is resized like:
>>
>> 1. addSubLayer to 200x200
>> 2. resize layer to 400x400
>> 3. layer only shows 200x200 area (keep low resolution)
>
>
> Call -setNeedsDisplay on the layer.
> --
> David Duncan
>

_______________________________________________

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

  • Follow-Ups:
    • Re: CAOpenGLLayer content size
      • From: David Duncan <email@hidden>
References: 
 >CAOpenGLLayer content size (From: Takashi Mochizuki <email@hidden>)
 >Re: CAOpenGLLayer content size (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Debugger() and iOS
  • Next by Date: Re: CAOpenGLLayer content size
  • Previous by thread: Re: CAOpenGLLayer content size
  • Next by thread: Re: CAOpenGLLayer content size
  • Index(es):
    • Date
    • Thread