#include <SpriteWorld.h>
Public Attributes | |
| SpriteLayerPtr | headSpriteLayerP |
| head of the sprite layer linked list | |
| SpriteLayerPtr | tailSpriteLayerP |
| tail of the sprite layer linked list | |
| SpriteLayerPtr | deadSpriteLayerP |
| where SWRemoveSpriteFromAnimation puts Sprites | |
| UpdateRectStructPtr | headUpdateRectP |
| used by SWFlagRectAsChanged | |
| SWBoolean | useUpdateRectOptimizations |
| should try to merge update rects | |
| FramePtr | extraBackFrameP |
| used when adding a background behind tiles | |
| FramePtr | backFrameP |
| frame for the background | |
| FramePtr | workFrameP |
| work, or "mixing" frame | |
| FramePtr | screenFrameP |
| frame for drawing to the screen | |
| DrawProcPtr | offscreenDrawProc |
| callback for erasing sprites offscreen normally | |
| DrawProcPtr | screenDrawProc |
| callback for drawing sprite pieces onscreen normally | |
| CallBackPtr | postEraseCallBack |
| called after erasing sprites | |
| CallBackPtr | postDrawCallBack |
| called after drawing sprites | |
| SWRect | screenRect |
| holds windowFrameP->frameRect for easier access | |
| SWRect | backRect |
| holds backFrameP->frameRect for easier access | |
| SWRect | visScrollRect |
| SWRect that is copied to screen when scrolling. | |
| SWRect | oldVisScrollRect |
| visScrollRect from last frame | |
| SWRect | offscreenScrollRect |
| same as visScrollRect, but local to offscreen | |
| short | horizScrollRectOffset |
| offset from offscreenScrollRect to visScrollRect | |
| short | vertScrollRectOffset |
| offset from offscreenScrollRect to visScrollRect | |
| short | horizScrollDelta |
| horizontal scrolling delta | |
| short | vertScrollDelta |
| vertical scrolling delta | |
| SWRect | scrollRectMoveBounds |
| move bounds for visScrollRect | |
| WorldMoveProcPtr | worldMoveProc |
| pointer to the scrolling world move procedure | |
| SpritePtr | followSpriteP |
| pointer to the "follow sprite", or NULL | |
| TileMapStructPtr * | tileLayerArray |
| an array of all the tileMap layers | |
| SWBoolean | tilingIsInitialized |
| has the tiling been initialized yet? | |
| SWBoolean | tilingIsOn |
| are the tiling routines turned on? | |
| short | lastActiveTileLayer |
| the last active tile layer | |
| short ** | tilingCache |
| two-dimensional tiling cache | |
| short | numTilingCacheRows |
| number of rows in tilingCache array | |
| short | numTilingCacheCols |
| number of cols in tilingCache array | |
| FramePtr * | tileFrameArray |
| array of tile framePtrs (the part below sprites) | |
| short * | curTileImage |
| array specifying the current frame of each tile | |
| short | maxNumTiles |
| number of elements in tileFrameArray | |
| short | tileWidth |
| width of each tile | |
| short | tileHeight |
| height of each tile | |
| long | numTilesChanged |
| number of rects in changedTiles array to update | |
| SWRect * | changedTiles |
| array of rects of tiles that changed | |
| long | changedTilesArraySize |
| number of elements in changedTiles array | |
| TileChangeProcPtr | tileChangeProc |
| pointer to tile frame changing procedure | |
| TileRectDrawProcPtr | tileRectDrawProc |
| pointer to the function that draws tiles in a rect | |
| DrawProcPtr | tileMaskDrawProc |
| drawProc for drawing masked tiles in tile layers | |
| CustomTileDrawProcPtr | customTileDrawProc |
| DrawProc that is also passed the tileID and tileLayer. | |
| unsigned char | pixelDepth |
| SpriteWorld's depth. | |
| short | fpsTimeInterval |
| milliseconds per frame of animation (1000/fps) | |
| double | pseudoFPS |
| milliseconds per pseudo frame of animation (for time-based animations) | |
| unsigned long | runningTimeCount |
| running total time in milliseconds | |
| unsigned long | timeOfLastFrame |
| time (from runningTimeCount) of last frame | |
| unsigned long | minimumFrameRate |
| maximum number of microseconds that can go by in a frame (used only for time-based movement) | |
| unsigned long | microsecsSinceLastFrame |
| # microseconds passed since last frame | |
| double | pseudoFrameAccum |
| used to set the pseudoFrameHasFired variable. | |
| SWBoolean | pseudoFrameHasFired |
| used in time-based animations. | |
| SWBoolean | frameHasOccurred |
| Has the SpriteWorld been processed? | |
| SWBoolean | thereAreNonScrollingLayers |
| used internally by SWProcessSpriteWorld | |
| SWBoolean | makeTranslucencyAdjustments |
| SWBoolean | doFastMovingSpritesChecks |
| SDL_Color | backgroundColor |
| background color for clear drawproc | |
| SDL_bool | useOpenGL |
| void * | glContext |
| passed to the OpenGL callbacks | |
| GLCallBackPtr | glMakeCurrent |
| called before OpenGL drawing | |
| GLCallBackPtr | glSwapBuffers |
| called after OpenGL drawing | |
| long | userData |
| reserved for user | |
|
|
frame for the background
|
|
|
background color for clear drawproc
|
|
|
holds backFrameP->frameRect for easier access
|
|
|
array of rects of tiles that changed
|
|
|
number of elements in changedTiles array
|
|
|
array specifying the current frame of each tile
|
|
|
DrawProc that is also passed the tileID and tileLayer.
|
|
|
where SWRemoveSpriteFromAnimation puts Sprites
|
|
|
|
|
|
used when adding a background behind tiles
|
|
|
pointer to the "follow sprite", or NULL
|
|
|
milliseconds per frame of animation (1000/fps)
|
|
|
Has the SpriteWorld been processed?
|
|
|
passed to the OpenGL callbacks
|
|
|
called before OpenGL drawing
|
|
|
called after OpenGL drawing
|
|
|
head of the sprite layer linked list
|
|
|
used by SWFlagRectAsChanged
|
|
|
horizontal scrolling delta
|
|
|
offset from offscreenScrollRect to visScrollRect
|
|
|
the last active tile layer
|
|
|
|
|
|
number of elements in tileFrameArray
|
|
|
# microseconds passed since last frame
|
|
|
maximum number of microseconds that can go by in a frame (used only for time-based movement)
|
|
|
number of rects in changedTiles array to update
|
|
|
number of cols in tilingCache array
|
|
|
number of rows in tilingCache array
|
|
|
callback for erasing sprites offscreen normally
|
|
|
same as visScrollRect, but local to offscreen
|
|
|
visScrollRect from last frame
|
|
|
SpriteWorld's depth.
|
|
|
called after drawing sprites
|
|
|
called after erasing sprites
|
|
|
milliseconds per pseudo frame of animation (for time-based animations)
|
|
|
used to set the pseudoFrameHasFired variable.
|
|
|
used in time-based animations.
|
|
|
running total time in milliseconds
|
|
|
callback for drawing sprite pieces onscreen normally
|
|
|
frame for drawing to the screen
|
|
|
holds windowFrameP->frameRect for easier access
|
|
|
move bounds for visScrollRect
|
|
|
tail of the sprite layer linked list
|
|
|
used internally by SWProcessSpriteWorld
|
|
|
pointer to tile frame changing procedure
|
|
|
array of tile framePtrs (the part below sprites)
|
|
|
height of each tile
|
|
|
an array of all the tileMap layers
|
|
|
drawProc for drawing masked tiles in tile layers
|
|
|
pointer to the function that draws tiles in a rect
|
|
|
width of each tile
|
|
|
two-dimensional tiling cache
|
|
|
has the tiling been initialized yet?
|
|
|
are the tiling routines turned on?
|
|
|
time (from runningTimeCount) of last frame
|
|
|
|
|
|
reserved for user
|
|
|
should try to merge update rects
|
|
|
vertical scrolling delta
|
|
|
offset from offscreenScrollRect to visScrollRect
|
|
|
SWRect that is copied to screen when scrolling.
|
|
|
work, or "mixing" frame
|
|
|
pointer to the scrolling world move procedure
|
1.4.6