Main sections
SMOOTHSHADING
SMOOTHSHADING mode%
This command toggles between soft (mode#=TRUE: GL_LINEAR) and fast (mode%=FALSE: GL_NEAREST) interpolation for scaling sprites.
The graphics for mode%=FALSE will become more blocky and thus equal the output on PocketPC and GP2X.
If you experience an ugly border when using GRABSPRITE, this command can also help to fix it.
An X_MAKE2D or SHOWSCREEN resets the mode% parameter to the default: TRUE.
Example / Bsipiel:
DRAWRECT 0,0,129,65,RGB(255,0,128)
PRINT "test", 1,0
DRAWRECT 1,16,64,16,RGB(255,0,0)
DRAWRECT 1,32,64,16,RGB(0,255,0)
DRAWRECT 1,44,64,16,RGB(0,0,255)
GRABSPRITE 0, 0,0,128,64
DRAWRECT 160,0,160,240,RGB(255,255,255)
DRAWSPRITE 0, 162,2
// SAVESPRITE "out.png", 0
// LOADSPRITE "out.png", 0
ROTOZOOMSPRITE 0, 40,80, 45, 1.5
SMOOTHSHADING FALSE
ROTOZOOMSPRITE 0, 200,80, 45, 1.5
SHOWSCREEN
MOUSEWAIT