Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-10-2010, 01:17 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Location: Stockholm, Sweden
Posts: 38
Jompe71 is on a distinguished road
Default Going bananas on Quartz coordinate system!

At first I managed to render an Image correctly in landscape mode. This required scaling and transforming.

I assume this code "moved" the CTM to the top-right instead of bottom-right but obviously not.

Subsequent rendering of round rects (same method as the image draw) coordinates was down to bottom-right again.

Touches on the other hand seem to report coordinates using top-right as CTM origin.

I'm going crazy. The image shows what I'm currently at, but rendering is tricky since it's trial-and-error coding since I can't get the hang of the CTM.

Anyone got an example of EVERYTHING rendered with top-right as starting point?
Attached Images
File Type: jpg MD.jpg (20.7 KB, 0 views)

Last edited by Jompe71; 02-10-2010 at 01:24 PM.
Jompe71 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 393
8 members and 385 guests
13dario13, ChrisYates, fredidf, iOS.Lover, jeroenkeij, Leslie80, Wikiboo, Yosh_K
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,670
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Yosh_K
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:41 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0