| Control Functions | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Primitives Polygon Transform Surface Drawing Palette Control Misc Defines Extended Arguments Index Credits |
void SPG_Lock(SPG_bool enable) - Sets the state of the automatic surface lock. When enabled, many functions will automatically lock and unlock the surfaces they use when necessary. SPG_bool SPG_GetLock() - Returns the current state of the automatic surface lock. void SPG_PushBlend(Uint8 state) - Pushes a new current alpha-blending state to the top of the blend stack. This causes alpha-blending functions to behave according to the new state. Uint8 SPG_PopBlend() - Pops the current alpha-blending state from the blend stack. This state's value is returned while the previous state becomes current. Uint8 SPG_GetBlend() - Returns the current alpha-blending state. void SPG_PushAA(SPG_bool enable) - Pushes a new current anti-aliasing state to the top of the blend stack. When enabled, this causes certain functions to be drawn smoothly. SPG_bool SPG_PopAA() - Pops the current anti-aliasing state from the AA stack. This state's value is returned while the previous state becomes current. SPG_bool SPG_GetAA() - Returns the current anti-aliasing state. void SPG_PushSurfaceAlpha(SPG_bool enable) - Pushes a new current surface alpha mode to the top of the blend stack. When enabled, this causes SPG_Blit to combine per-surface alpha and per-pixel alpha. SPG_bool SPG_PopSurfaceAlpha() - Pops the current surface alpha mode from the surface alpha stack. This state's value is returned while the previous state becomes current. SPG_bool SPG_GetSurfaceAlpha() - Returns the current surface alpha mode. void SPG_EnableErrors(SPG_bool enable) - Enable the error messages from SPriG functions. These are retreived by using SPG_GetError. void SPG_Error(const char* err) - Pushes the given error message onto the error stack. char* SPG_GetError() - Pops the most recent error message from the error stack. Uint16 SPG_NumErrors() - Returns the number of errors left on the error stack. |
||||||||||||||||||||||||||||||||||||||||||||||||