Jag fortsätter med DirectX(7).Om Z:a order
Jag laddar bl a in tre bilder:
<code>
Dim msurfMovingObj As DirectDrawSurface7
Dim msurfPlanet1 As DirectDrawSurface7
Dim msurfPlanet2 As DirectDrawSurface7
Set msurfMovingObj = mdd.CreateSurfaceFromFile(App.Path & "\Ships\vegan00.bmp", ddsdObjects)
Set msurfPlanet1 = mdd.CreateSurfaceFromFile(App.Path & "\planet1.bmp", ddsdObjects)
Set msurfPlanet2 = mdd.CreateSurfaceFromFile(App.Path & "\planet2.bmp", ddsdObjects)
DisplayFast msurfPlanet1, 0, SCREEN_HEIGHT - OBJECT_HEIGHT, OBJECT_WIDTH, OBJECT_HEIGHT
DisplayFast msurfPlanet2, SCREEN_WIDTH - OBJECT_WIDTH, 0, OBJECT_WIDTH, OBJECT_HEIGHT
DisplayFx msurfMovingObj, mintX, mintY, OBJECT_WIDTH, OBJECT_HEIGHT, mlngBlitType, mblnROPCap(mbytBlitType)
</code>
Mitt problem:
Hur skall jag göra för att sätta Z-order?
Jag vill att msurfMovingObj skall ligga överst.