SetForcePointSampling

From OxeyeWiki

Revision as of 13:37, 7 February 2010 by Jeb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

video.setForcePointSampling(onOff)

Enables or disables forced point sampling of 2d sprites. If you enable this, all 2D sprites will be rendered using point sampling regardless of render method. This may cause some pixel artifacts, but may be useful if you are making low-resolution artwork and scales it up.

Available from DaisyMoon 1.1.0 and later.

Parameter Expected Type Description
onOff A boolean Set this to true to enable enforced point sampling, and false to disable it.
Returns

Returns nothing.

Daisymoon Video Lib


Example

   video.setForcePointSampling(true)
   video.renderSpriteState(player.sprite, player.x, player.y, player.scale, player.angle)
   video.setForcePointSampling(false)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox