Difference between revisions of "love.graphics.newPixelEffect"

(Pixel shaders! Probably needs detail and examples)
 
m
Line 8: Line 8:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|string|code|The GLSL pixel shader code.}}
+
{{param|string|code|The pixel effect code.}}
 
=== Returns ===
 
=== Returns ===
{{param|PixelEffect|pixeleffect|A PixelEffect object containing a GLSL pixel shader.}}
+
{{param|PixelEffect|pixeleffect|A PixelEffect object for use in drawing operations.}}
  
 
== See Also ==
 
== See Also ==

Revision as of 02:31, 16 August 2011

Available since LÖVE 0.8.0
This function is not supported in earlier versions.

Creates a new PixelEffect object for hardware-accelerated pixel level effects.

Function

Synopsis

pixeleffect = love.graphics.newPixelEffect( code )

Arguments

string code
The pixel effect code.

Returns

PixelEffect pixeleffect
A PixelEffect object for use in drawing operations.

See Also

Other Languages