SetForcePointSampling
From OxeyeWiki
(Difference between revisions)
Jeb (Talk | contribs)
(Created page with '{{VideoMethod| video.setForcePointSampling(onOff) | Enables or disables forced point sampling of 2d sprites. If you enable this, all 2D sprites will be rendered using point sampl...')
(Created page with '{{VideoMethod| video.setForcePointSampling(onOff) | Enables or disables forced point sampling of 2d sprites. If you enable this, all 2D sprites will be rendered using point sampl...')
Latest revision as of 13:37, 7 February 2010
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. |
Example
video.setForcePointSampling(true) video.renderSpriteState(player.sprite, player.x, player.y, player.scale, player.angle) video.setForcePointSampling(false)