XNA Creators Club Online
Page 1 of 1 (1 items)
Sort Posts: Previous Next

Textures and sprites

Last post 20/10/2009 19:32 by Sarriss. 0 replies.
  • 20/10/2009 19:32

    Textures and sprites

    hi all,

    Ive been starting dx10 after some time in 9, and the thing that seems to be getting to me is loading a simple 2d image, Ive managed that, after some time, but Im having problems with sprite sheets, there isnt much on it in directx 10.

    I used to do it in dx9, but dx10 has changed everything with the use of HLSL stuff etc, I dont know where to stick in the code:

    Take the image co-ordinates of(0,0) to (10,10) and draw it in this square,
    its all this 1.0f 0.0f type percentages,etc,

    what I want to know is in DX10 how to do something that can take co-ordinates off an image and draw whats in those co-ords in a square so i can animate it?

    no where I have found has shown how to do that and its driving me nuts

    so if anyone can throw some help this way it would be much appreiciated

    Regards
    Sarriss

Page 1 of 1 (1 items) Previous Next