Home > other >  Using direct9 tools, how to draw the SURFACE SURFACE elves texture?
Using direct9 tools, how to draw the SURFACE SURFACE elves texture?

Time:09-23

Beginners want to make a 2 d game
Because must draw indoor scene has two layers, the first layer of floor wall, the second layer to draw with transparent seat, bed, decoration decoration;
But with the following methods:
D3ddev - & gt; StretchRect (image, & amp; R1, Background, & amp; R2, D3DTEXF_NONE);
This function simply copies surface to another surface, do not have a transparent, crash test function,

So the second want to use the method of the elves texture rendering,
But the more I learn the whole book only to:
Spriteobj - & gt; The Draw (image, & amp; SrcRect, NULL, NULL, color);
This method is elves,

But this method can only be the elves draw to the screen,
After considering the required background scroll, this method will become very tedious,

What function the elves directly to the paint on the surface of such as Background,
Without scrolling Background above anything to consider the movement of the elves above questions,

CodePudding user response:

Background and NPCS will use different functions to draw, transparent and touch collision detection has a special function to deal with, is not a function can be done
  • Related