Difference between revisions of "User:Cyanox"

Line 1: Line 1:
 
Using this as personal SandBox mostly ;)
 
Using this as personal SandBox mostly ;)
  
The primary responsibility for the love.graphics module is the drawing of lines, shapes, text, [[Image]]s and other [[Drawable]] objects onto the screen. Its secondary responsibilities include loading external files (including [[Image]]s and [[Font]]s) into memory, creating specialized objects (such as [[ParticleSystem]]s or [[Canvas]]es) and managing screen geometry.
+
{{#ask: [[Category:Functions]] [[parent::love.graphics]] [[Since::<090]] <q>[[Removed::000]] OR [[Removed::>090]]</q>
 
+
LÖVE's coordinate system is rooted in the upper-left corner of the screen, which is at location (0, 0). The x axis is horizontal: larger values are further to the right. The y axis is vertical: larger values are further towards the bottom.
+
 
+
[[File:lovecoordsystem.png|The LÖVE coordinate system]]
+
 
+
In many cases, you draw images or shapes in terms of their upper-left corner (See the picture above).
+
 
+
Many of the functions are used to manipulate the ''graphics coordinate system'', which is essentially the the way coordinates are mapped to the display. You can change the position, scale, and even rotation in this way.
+
 
+
 
+
== Types ==
+
{{#ask: [[Category:Types]] [[parent::love.graphics]] [[Concept:CurrentTest]]
+
| headers=hide
+
| format=template
+
| template=ListingFields
+
| introtemplate=ListingIntro
+
| outrotemplate=ListingOutro
+
| ?Description
+
| ?PrettySince
+
| ?PrettyRemoved
+
}}
+
== Functions ==
+
=== Drawing ===
+
{{#ask: [[Category:Functions]] [[parent::love.graphics]] [[Concept:CurrentTest]] [[Sub-Category::Drawing]]
+
 
| headers=hide
 
| headers=hide
 
| limit=2000
 
| limit=2000
Line 36: Line 12:
 
| ?PrettyRemoved
 
| ?PrettyRemoved
 
}}
 
}}
=== Object Creation ===
 
{{#ask: [[Category:Functions]] [[parent::love.graphics]] [[Concept:CurrentTest]] [[Sub-Category::Object Creation]]
 
| headers=hide
 
| limit=2000
 
| format=template
 
| template=ListingFields
 
| introtemplate=ListingIntro
 
| outrotemplate=ListingOutro
 
| ?Description
 
| ?PrettySince
 
| ?PrettyRemoved
 
}}
 
=== Graphics State ===
 
{{#ask: [[Category:Functions]] [[parent::love.graphics]] [[Concept:CurrentTest]] [[Sub-Category::State]]
 
| headers=hide
 
| limit=2000
 
| format=template
 
| template=ListingFields
 
| introtemplate=ListingIntro
 
| outrotemplate=ListingOutro
 
| ?Description
 
| ?PrettySince
 
| ?PrettyRemoved
 
}}
 
=== Coordinate System ===
 
{{#ask: [[Category:Functions]] [[parent::love.graphics]] [[Concept:CurrentTest]] [[Sub-Category::Coordinate System]]
 
| headers=hide
 
| limit=2000
 
| format=template
 
| template=ListingFields
 
| introtemplate=ListingIntro
 
| outrotemplate=ListingOutro
 
| ?Description
 
| ?PrettySince
 
| ?PrettyRemoved
 
}}
 
=== Window ===
 
{{#ask: [[Category:Functions]] [[parent::love.graphics]] [[Concept:CurrentTest]] [[Sub-Category::Window]]
 
| headers=hide
 
| limit=2000
 
| format=template
 
| template=ListingFields
 
| introtemplate=ListingIntro
 
| outrotemplate=ListingOutro
 
| ?Description
 
| ?PrettySince
 
| ?PrettyRemoved
 
}}
 
== Enums ==
 
{{#ask: [[Category:Enums]] [[parent::love.graphics]] [[Concept:CurrentTest]]
 
| headers=hide
 
| format=template
 
| template=ListingFields
 
| introtemplate=ListingIntro
 
| outrotemplate=ListingOutro
 
| ?Description
 
| ?PrettySince
 
| ?PrettyRemoved
 
}}
 
 
{{#set:Description=Drawing of shapes and images, management of screen geometry.}}
 
== See Also ==
 
* [[parent::love]]
 
 
== Other Languages ==
 

Revision as of 15:10, 31 March 2013

Using this as personal SandBox mostly ;)


love.graphics.checkMode Checks if a display mode is supported. Removed in 0.9.0
love.graphics.drawq Draw a Quad with the specified Image on screen. Removed in 0.9.0
love.graphics.getCaption Gets the window caption. Removed in 0.9.0
love.graphics.getColorMode Gets the color mode (which controls how images are affected by the current color). Added since 0.2.0 Removed in 0.9.0
love.graphics.getDefaultImageFilter Returns the default scaling filters. Added since 0.8.0 Removed in 0.9.0
love.graphics.getMaxImageSize Gets the max supported width or height of Images and Canvases. Added since 0.9.0 Removed in 0.10.0
love.graphics.getMaxPointSize Gets the max supported point size. Removed in 0.10.0
love.graphics.getMode Returns the current display mode. Added since 0.8.0 Removed in 0.9.0
love.graphics.getModes Gets a list of supported fullscreen modes. Removed in 0.9.0
love.graphics.getPixelEffect Returns the current PixelEffect. Added since 0.8.0 Removed in 0.9.0
love.graphics.getPointStyle Gets the current point style. Removed in 0.10.0
love.graphics.hasFocus Checks if the game window has keyboard focus. Added since 0.8.0 Removed in 0.9.0
love.graphics.isCreated Checks if the window has been created. Removed in 0.9.0
love.graphics.isSupported Checks for the support of graphics related functions. Added since 0.8.0 Removed in 0.10.0
love.graphics.newPixelEffect Creates a new PixelEffect. Added since 0.8.0 Removed in 0.9.0
love.graphics.newScreenshot Creates a screenshot and returns the ImageData. Removed in 11.0
love.graphics.newStencil Creates a new stencil. Added since 0.8.0 Removed in 0.9.0
love.graphics.point Draws a point. Removed in 0.10.0
love.graphics.quad Draws a quadrilateral shape. Removed in 0.9.0
love.graphics.setCaption Sets the window caption. Removed in 0.9.0
love.graphics.setColorMode Sets the color mode (which controls how images are affected by the current color). Added since 0.2.0 Removed in 0.9.0
love.graphics.setDefaultImageFilter Sets the default scaling filters. Added since 0.8.0 Removed in 0.9.0
love.graphics.setIcon Set window icon. Added since 0.7.0 Removed in 0.9.0
love.graphics.setInvertedStencil Defines an inverted stencil. Added since 0.8.0 Removed in 0.10.0
love.graphics.setLine Sets the line width and style. Removed in 0.9.0
love.graphics.setMode Changes the display mode. Removed in 0.9.0
love.graphics.setPixelEffect Routes drawing operations through a pixel shader. Added since 0.8.0 Removed in 0.9.0
love.graphics.setPoint Sets the point size and style. Removed in 0.9.0
love.graphics.setPointStyle Sets the point style. Removed in 0.10.0
love.graphics.setStencil Defines or releases a stencil. Added since 0.8.0 Removed in 0.10.0
love.graphics.toggleFullscreen Toggles fullscreen. Removed in 0.9.0
love.graphics.triangle Draws a triangle. Removed in 0.9.0