// File : fwStage.h // Author : John Wojcik ( QuietBloke ) // Created : August 2000 // Desc : Expose external functions of the 2D Game Framework // Stage manager. This manager handles high level visuals. // It determines the scaling for stage co-ords and physical pixels // It also moves the camera around the stage. ( The camera view is // the actual physical display ). // // History : // Date Author Description // -------- --------------- ---------------------------------------- #ifndef __FWSTAGE__ // Function : fwStageGetPixelShift // Parameters // Returns // int : Virtual co-ord to pixel shift value. Number if bits to right shift // a virtual value to produce a physical value. // Function : fwStageSetPixelShift // Parameters // shift : Number of Right Bit shifts to apply to virtual co-ords to // give a physical co-ords. // Returns // Function : fwStageGetCameraLeftPos // Parameters // Returns // int : Virtual xpos of left side of camera view // Function : fwStageGetCameraTopPos // Parameters // Returns // int : Virtual ypos of top side of camera view // Function : fwStageSetCameraTop // Parameters // yPos : Set Virtual yPos for top of camera // Returns // Function : fwStageSetCameraTopLeft // Parameters // yPos : Set Virtual yPos for top of camera view on stage // xPos : Set Virtual xPos for left of camera view on stage // Returns // Function : fwStageSetWidth // Parameters // width : Define the virtual width of the stage. // This is used to limit camera positions. // Returns // Function : fwStageSetHeight // Parameters // height : Define the virtual height of the stage. // This is used to limit camera positions. // Returns // Function : fwStageSetSize // Parameters // width : Define the virtual width of the stage. // This is used to limit camera positions. // height : Define the virtual height of the stage. // This is used to limit camera positions. // Returns // int fwStageGetPixelShift ( void ); void fwStageSetPixelShift ( int shift ); int fwStageGetCameraLeftPos ( void ); int fwStageGetCameraTopPos ( void ); void fwStageSetCameraTop ( int yPos ); void fwStageSetCameraLeft ( int xPos ); void fwStageSetCameraTopLeft ( int yPos, int xPos ); void fwStageSetWidth ( int width ); void fwStageSetHeight ( int height ); void fwStageSetSize ( int width, int height ); #define __FWSTAGE__ #endif