Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / cSpriteMgrEx::DrawSplit Explanation of the function (Tier 2)

Author
Message
Forddefect
8
Years of Service
User Offline
Joined: 6th Feb 2016
Location:
Posted: 30th Mar 2016 14:52


I would be very grateful if someone in the know could explain to me how this method is supposed to be used, what is the meaning of depth and side parameter.

Regards

Ben.
Forddefect
8
Years of Service
User Offline
Joined: 6th Feb 2016
Location:
Posted: 30th Mar 2016 17:30
I have had a little play with the method and I have come to the following conclusion. Given 10 sprites in the manager each with depth 1 greater than the last (i.e depths 0-9). Then the following results.

when depth = 0, side = 0, all sprites are drawn.

when depth = 5, side = 1, then all sprites with a depth of 5 or less are drawn.
when depth = 5, side = 2, then all sprites with a depth greater than 5 are drawn.

So I believe this method draws all sprites registered with cSpriteMgrEx split at specified depth <= or > than specified depth.

Some official clarification would be appreciated.

Login to post a reply

Server time is: 2024-04-24 01:42:29
Your offset time is: 2024-04-24 01:42:29