Macro Index
$#! · 0-9 · A · B · C ·
D
· E ·
F
·
G
· H · I · J ·
K
·
L
· M · N · O · P · Q ·
R
·
S
·
T
· U ·
V
· W · X · Y · Z
D
Default ranges for spFontAdd
Defines for the look of the buttons and keys
Directions
F
Fixed Point Arithmetic Constants
Fixed Point Arithmetics
Fixed Point Conversion
G
Generic button and axis count
Generic Buttons
Generic Buttons Masks
Generic Buttons Names
K
Keyboard waiting
L
Light
R
Range of the analog axis
S
SP_ACCURACY
SP_ACCURACY_FACTOR
SP_ALPHA_COLOR
SP_ANALOG_AXIS_MAX
SP_ANALOG_AXIS_MIN
SP_BOTTOM
SP_BUTTON_A
SP_BUTTON_A_MASK
SP_BUTTON_A_NAME
SP_BUTTON_B
SP_BUTTON_B_MASK
SP_BUTTON_B_NAME
SP_BUTTON_DOWN
SP_BUTTON_DOWN_MASK
SP_BUTTON_DOWN_NAME
SP_BUTTON_L
SP_BUTTON_L_MASK
SP_BUTTON_L_NAME
SP_BUTTON_LEFT
SP_BUTTON_LEFT_MASK
SP_BUTTON_LEFT_NAME
SP_BUTTON_R
SP_BUTTON_R_MASK
SP_BUTTON_R_NAME
SP_BUTTON_RIGHT
SP_BUTTON_RIGHT_MASK
SP_BUTTON_RIGHT_NAME
SP_BUTTON_SELECT
SP_BUTTON_SELECT_MASK
SP_BUTTON_SELECT_NAME
SP_BUTTON_START
SP_BUTTON_START_MASK
SP_BUTTON_START_NAME
SP_BUTTON_UP
SP_BUTTON_UP_MASK
SP_BUTTON_UP_NAME
SP_BUTTON_X
SP_BUTTON_X_MASK
SP_BUTTON_X_NAME
SP_BUTTON_Y
SP_BUTTON_Y_MASK
SP_BUTTON_Y_NAME
SP_CACHE_SIZE
SP_CENTER
SP_FONT_BUTTON
SP_FONT_DEFAULT_CACHE
SP_FONT_EXTRASPACE
SP_FONT_GROUP_ALPHABET
SP_FONT_GROUP_ASCII
SP_FONT_GROUP_GERMAN
SP_FONT_GROUP_NUMBERS
SP_FONT_INTELLIGENT
SP_FONT_KEY
SP_FONT_NO_BORDER
SP_HALF_ACCURACY
SP_INPUT_AXIS_COUNT
SP_INPUT_BUTTON_COUNT
SP_JOYSTICK_MAX_TRIGGER_OFF
SP_JOYSTICK_MAX_TRIGGER_ON
SP_JOYSTICK_MIN_TRIGGER_OFF
SP_JOYSTICK_MIN_TRIGGER_ON
SP_KEYBOARD_FIRST_WAIT
SP_KEYBOARD_WAIT
SP_LEFT
SP_LIGHT_ACCURACY
SP_LIGHT_ACCURACY_FACTOR
SP_LIGHT_HALF_ACCURACY
SP_LIGHT_TYPE
SP_LIGHT_TYPE_SIZE
SP_MATH_ACCURACY
SP_MAX_LIGHTS
SP_NO_TOUCHSCREEN_EMULATION
SP_ONE
SP_PAD_NAME
SP_PI
SP_PRACTICE_CANCEL
SP_PRACTICE_CANCEL_MASK
SP_PRACTICE_CANCEL_NAME
SP_PRACTICE_OK
SP_PRACTICE_OK_MASK
SP_PRACTICE_OK_NAME
SP_RIGHT
SP_SQRT_ACCURACY
SP_TEXT_MAX_READABLE_LINE
SP_TOP
SP_VIRTUAL_KEYBOARD_ALWAYS
SP_VIRTUAL_KEYBOARD_FIRST_WAIT
SP_VIRTUAL_KEYBOARD_IF_NEEDED
SP_VIRTUAL_KEYBOARD_NEVER
SP_VIRTUAL_KEYBOARD_WAIT
SP_VOLUME_MAX
spDiv(a,b)
spDivHigh(a,b)
spDivLow(a,b)
spFixedRoundInt(x)
spFixedToFloat(x)
spFixedToInt(x)
spFloatToFixed(x)
spIntToFixed(x)
spMul(a,b)
spMulHigh(a,b)
spMulLow(a,b)
spSquare(a)
T
Trigger limits for analog sticks
V
Values for spSetVirtualKeyboard
These are some #defines e.g.
The following #defines are for the fixed point arithmetic in sparrow3d.
These are some #defines for fast multiplication and division of fixed point numbers.
These conversions are no function calls, but defines.
The following (long) list of #defines gives you the numbers and names of the generic device buttons or of the buttons on the explicit device.
Mask of the buttons, Useful for spPollKeyboardInputs last parameter.
If a key is pressed after a given time it will be pressed again.
Defines how many bits are used for the decimal place
2 ^ SP_ACCURACY.
If alphatest is enabled, this (pink) color will not be drawn, it is “transparent”.
The maximal value of the analog axis.
The minimal value of the analog axis.
bottom
number of the A button.
mask of the A button.
name of the A button.
number of the B button.
mask of the B button.
name of the B button.
number of the down button.
mask of the down button.
name of the down button.
number of the left shoulder button
mask of the left shoulder button
name of the left shoulder button
number of the left button.
mask of the left button.
name of the left button.
number of the right shoulder button
mask of the right shoulder button
name of the right shoulder button
number of the right button.
mask of the right button.
name of the right button.
number of the “Select”, “||” or similar button
mask of the “Select”, “||” or similar button
name of the “Select”, “||” or similar button
number of the “Start” or “Menu” button
mask of the “Start” or “Menu” button
name of the “Start” or “Menu” button
number of the up button.
mask of the up button.
name of the up button.
number of the X button.
mask of the X button.
name of the X button.
number of the Y button.
mask of the Y button.
name of the Y button.
The size of the surface cache
center
shows always buttons
Per default 16384 signs (needs 64 kilobytes) are cached.
Defines some extra space for the border ;-)
All 26 latin letters big and small
whole ASCII set (sign 32 (space) until 127 (~))
German letters like umlauts
the arab numbers (0 to 9), dot, comma and minus
Uses keys or buttons as it should make sense on the target, e.g.
shows always keys
Use this in spFontSetShadeColor, if you don’t want / need aliasing
The half of SP_ACCURACY
number of useable generic axes.
number of useable generic buttons.
maximal value for not setting the axis to zero.
minimal value for activating the positive axis.
maximal value for not setting the axis to zero.
maximal value for activating the negative axis.
Time to wait until the second key pressing.
Time to wait for longer key pressing.
left
the number of decimal places for light calculation
for convertation fixed point light values to float
the half of SP_LIGHT_ACCURACY
type for light calculating.
the bit count of the type (64)
(In)accuracy of the cos and sin lookup table
maximal count of lights.
Used by spSetTouchscreenEmulationButtons
1.0f in fixed point
name of the pad (e.g.
Fixed point Pi
number of the button, which is on the specific device the standard button for canceling an action.
mask of the button, which is on the specific device the standard button for canceling an action.
name of the button, which is on the specific device the standard button for canceling an action.
number of the button, which is on the specific device the standard button for “ok”.
mask of the button, which is on the specific device the standard button for “ok”.
name of the button, which is on the specific device the standard button for “ok”.
right
Accurary of the internal sqrt lookuptable
You shouldn’t have more signs in a line than this value ;-) Nobody will EVER need more than 64k letters in one translation...
top
The virtual keyboard is always used, even on devices with keyboard like a PC or the pandora.
same like SP_KEYBOARD_FIRST_WAIT, but for the virtual keyboard.
The virtual keyboard is used, if no hardware keyboard is avaible (GP2X, Dingoo, etc.)
The virtual keyboard is never used.
same like SP_KEYBOARD_WAIT, but for the virtual keyboard.
The maximal volume of a channel or chunk/spSound.
Divides fixed point number a with the fixed point number b
Does the same as spDiv(a,b), but with guaranteed high precision
Does the same as spDiv(a,b), but maybe with lower precision
converts the fixed point number x with round to an int
converts the fixed point number a to a float
converts the fixed point number x to an int with cutting of the decimal place.
converts the float a to a fixed point number
converts the int x to a fixed point number
Multiplies fixed point number a with the fixed point number b
Does the same as spMul(a,b), but with guaranteed high precision
Does the same as spMul(a,b), but maybe with lower precision
Squares the fixed point number a with the help of spMul(a,b).
If a REAL input device (not the sparrow3d generic input device!)
With spSetVirtualKeyboard you setup, when the virtual keyboard is used.
Generated by Natural Docs
sparrowCore
sparrowDefines
sparrowFile
sparrowFont
sparrowMath
sparrowMesh
sparrowNet
sparrowPrimitives
sparrowRenderer
sparrowSound
sparrowSprite
sparrowText
Index
Everything
Constants
Files
Functions
Macros
Types
Everything
Constants
Files
Functions
Macros
Types
Close