Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline mc-kay  
#1 Posted : Sunday, November 20, 2011 11:57:17 PM(UTC)
mc-kay

Medals: Admin

Joined: 8/24/2011(UTC)
Posts: 138
Location: Hannover

Thanks: 1 times
Was thanked: 12 time(s) in 7 post(s)
Hi, how can I get the point where a Material2D object was rendered?

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Monday, November 21, 2011 2:40:05 AM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
What do you mean? When you render with the Draw overloads you specify the position or rectangle, just use that.

If you want to go to the actual rendering code, just put up a breakpoint in OpenTKGeometry.Render to see what ends up there. But probably lots of materials and geometry will be merged there and rendered out in batches, so not very useful to find positions easily.
Offline mc-kay  
#3 Posted : Monday, November 21, 2011 9:41:54 AM(UTC)
mc-kay

Medals: Admin

Joined: 8/24/2011(UTC)
Posts: 138
Location: Hannover

Thanks: 1 times
Was thanked: 12 time(s) in 7 post(s)
I mean, can I get out the position given in the draw method without saving it in a extra object, e.g like a Material2D property "Position".
Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.045 seconds.