Quartz Text showing up mirrored and rotated

Member
Posts: 60
Joined: 2009.06
Post: #1
It's possible that this occurs because my view controller is set up to LandscapeRight, but is there a way to mirror the text without having to redefine my game's coordinate system and physics? There is a command to rotate the text using the text matrix, but I didn't see any mirror transformations that can be applied.

Thanks!
Quote this message in a reply
Member
Posts: 39
Joined: 2008.10
Post: #2
You can scale it -1 ? dont know if thats the best way of doing it though, maybe im thinking of open gl
Quote this message in a reply
⌘-R in Chief
Posts: 1,260
Joined: 2002.05
Post: #3
Yes, -1 will work.
Quote this message in a reply
Moderator
Posts: 508
Joined: 2002.09
Post: #4
CGContextSetTextMatrix(yourContext, CGAffineTransformMakeScale(1, -1));

"When you dream, there are no rules..."
Quote this message in a reply
Member
Posts: 60
Joined: 2009.06
Post: #5
thank you, I shall attempt that!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  XCode 3.2.3 debugger only showing assembler issue Madrayken 7 6,464 Jul 28, 2010 10:28 AM
Last Post: Skorche
  frame rate for a Quartz game? aerospaceman 2 4,008 Jun 22, 2009 10:56 AM
Last Post: longjumper
  YouTube video embedded in page not showing on iPhone monteboyd 4 5,906 Apr 6, 2009 02:02 AM
Last Post: monteboyd
  Quartz game design? who_me 4 4,896 Sep 1, 2008 07:54 PM
Last Post: who_me
  [iPhone Dev] 2D Games, OpenGL or Quartz? jAuriya 17 15,101 Jun 10, 2008 01:45 PM
Last Post: jAuriya