You're probably right. I thought screen to pixel was what he wanted
too, but then I thought I was misunderstanding...

I guess if you wanted to draw something at a point in relation to
something in a layer, that somehow didn't have x and y values related
to the screen...perhaps because you just know where in the layer the
point is in relation to the layer, but you didn't want this new
something your drawing to transform with that layer...popup menus/
dialogs perhaps? But if you're computing all this you probably have
already computed the screen x and y as a side effect...

Would that ever happen? I don't know :).

Devon

On Aug 3, 5:20 pm, Richard Jones <[email protected]> wrote:
> On 04/08/2009, at 4:05 AM, Devon Scott-Tunkin wrote:
>
> > you want pixel_to_screen(x, y)
> > Look up the screen-space pixel matching the Layer-space pixel.
>
> > which looks like Richard didn't finish implementing...
>
> Because I couldn't think of a single use-case, that's why :)
>
> Mouse picking works the other way (screen to pixel) which is what I  
> thought the OP was after.
>
>       Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to