Hello Guest

Author Topic: Textur coordinates  (Read 3225 times)

Lestar

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Textur coordinates
« on: March 30, 2013, 10:38:55 am »
On object it is necessary to define in a point value alfa. To find point co-ordinates not a problem, how to translate co-ordinates sprites in atlas co-ordinates into which it enters? Or it is possible to define value an alpha on most sprites?
P.S. Excuse for my English.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Textur coordinates
« Reply #1 on: March 30, 2013, 03:08:20 pm »
You can get the vertices & uvs by looking at
GetCurrentSpriteDef().positions / .uvs

If you need further information on how to set stuff up, look at tk2dClippedSPrite.SetGeometry. The sprite structure is documented in there, for normal sprites (eg. arent diced, and don't have custom geometry)

Lestar

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Textur coordinates
« Reply #2 on: March 30, 2013, 03:39:41 pm »
Thanks