Delta Engine
»
Support
»
Rendering
»
Get Material2D position
Medals:  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? |
|
|
|
|
Medals:  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.
|
|
|
|
Medals:  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". |
|
|
|
|
Delta Engine
»
Support
»
Rendering
»
Get Material2D position
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.