Difference between revisions of "PixelEffect:getWarnings"

m
m
Line 1: Line 1:
 
{{newin|[[0.8.0]]|080|type=function}}
 
{{newin|[[0.8.0]]|080|type=function}}
  
Returns any warning text given by OpenGL after compiling pixel shader code. This is useful for debugging potential problems in GLSL code.
+
Returns any warning messages from compiling the pixel effect code. This can be used for debugging your pixel effects if there's anything the graphics hardware doesn't like.
  
 
== Function ==
 
== Function ==
Line 11: Line 11:
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|string|warnings|The warning text returned by OpenGL.}}
+
{{param|string|warnings|Warning messages (if any).}}
  
 
== See Also ==
 
== See Also ==
 
* [[parent::PixelEffect]]
 
* [[parent::PixelEffect]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Get GLSL warning messages.}}
+
{{#set:Description=Gets warning messages (if any).}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|PixelEffect:getWarnings}}
 
{{i18n|PixelEffect:getWarnings}}

Revision as of 07:56, 16 August 2011

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


Returns any warning messages from compiling the pixel effect code. This can be used for debugging your pixel effects if there's anything the graphics hardware doesn't like.

Function

Synopsis

warnings = PixelEffect:getWarnings( )

Arguments

None.

Returns

string warnings
Warning messages (if any).

See Also

Other Languages