IonicWind Snippit Manager 2.xx Released! Install it on a memory stick and take it with you! With or without IWBasic!
Started by pistol350, August 05, 2008, 04:46:01 pm
0 Members and 1 Guest are viewing this topic.
C2DSprite *mySprite;mySprite = new(C2DSprite,1);mySprite->m_PosX=10; // member variable of Sprite ClassmySprite->m_PosY=400; // member variable of Sprite ClassmySprite->m_PosZ=0.0; // member variable of Sprite Class
Quote from: Paul Turley on August 07, 2008, 09:41:22 amPeter,There is no Z buffer in 2D graphics. The member variable is user defined and you can use it in whatever way you wish.To simulate Z order you do what Windows does, sprites drawn first will appear on the bottom of sprites drawn later. Paul.