Difference between revisions of "love.graphics (Português)"
m (atualização na lista de funções) |
m (atualização na lista de funções) |
||
Line 143: | Line 143: | ||
== Enums == | == Enums == | ||
− | {{#ask: [[Category:Enums]] [[parent::love.graphics (Português]] | + | {{#ask: [[Category:Enums]] [[parent::love.graphics (Português)]] |
| headers=hide | | headers=hide | ||
| ?Description | | ?Description | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Modules]] | [[Category:Modules]] |
Revision as of 22:10, 8 January 2011
O módulo graphics.
O módulo graphics é responsável por coisas como gerenciamento da janela, Imagens, Animações, Fontes, etc.
Contents
Tipos
Drawable (Português) | Superclasse para tudo que pode ser desenhado na tela. |
Font (Português) | Pode ser usado para desenhar texto na tela. |
Framebuffer (Português) | Renderização fora da tela. |
Image (Português) | Tipo de imagens que podem ser desenhadas. |
ParticleSystem (Português) | Usado para criar efeitos legais, como fogo. |
Quad (Português) | Um quadrilátero com informações coordenadas de textura. |
SpriteBatch (Português) | Armazena uma geometria em um buffer e desenha em uma única chamada. |
Funções
love.graphics.checkMode Checks if a display mode is supported.
love.graphics.circle Draws a circle.
love.graphics.clear Clears the screen to background color.
love.graphics.draw Draw objects on screen.
love.graphics.drawq Draw a Quad with the specified Image on screen.
love.graphics.getBackgroundColor Gets the current background color.
love.graphics.getBlendMode Gets the blending mode.
love.graphics.getCaption Gets the window caption.
love.graphics.getColor Gets the current color.
love.graphics.getColorMode Gets the color mode.
love.graphics.getFont Gets the current Font object.
love.graphics.getHeight Gets the height of the window.
love.graphics.getLineStipple Gets the current line stipple.
love.graphics.getLineStyle Gets the line style.
love.graphics.getLineWidth Gets the current line width.
love.graphics.getMaxPointSize Gets the max supported point size.
love.graphics.getModes Gets a list of supported fullscreen modes.
love.graphics.getPointSize Gets the point size.
love.graphics.getPointStyle Gets the current point style.
love.graphics.getScissor Gets the current scissor box.
love.graphics.getWidth Gets the width of the window.
love.graphics.isCreated Checks if the display has been set.
love.graphics.line Draws lines between points.
love.graphics.newFont Creates a new Font.
love.graphics.newFramebuffer Creates a new Framebuffer
love.graphics.newImage Creates a new Image from a file path. Note that the x and y dimensions of the image must (currently) be a power of 2, or some graphics cards will not display it.
love.graphics.newImageFont Creates a new font by loading a specifically formatted image.
love.graphics.newParticleSystem Creates a new ParticleSystem.
love.graphics.newQuad Creates a new Quad.
love.graphics.newScreenshot Creates a screenshot and returns the image data.
love.graphics.newSpriteBatch Creates a new SpriteBatch object.
love.graphics.point Draws a point.
love.graphics.polygon Draw a polygon.
love.graphics.pop Pops the current coordinate transformation from the transformation stack.
love.graphics.present Displays the results of drawing operations on the screen.
love.graphics.print Draws text on screen. If no Font is set, one will be created and set (once) if needed.
love.graphics.printf Draws formatted text, with word wrap and alignment.
love.graphics.push Copies and pushes the current coordinate transformation to the transformation stack.
love.graphics.rectangle Draws a rectangle.
love.graphics.reset Resets the current graphics settings.
love.graphics.rotate Rotates the coordinate system in two dimensions.
love.graphics.scale Scales the coordinate system in two dimensions.
love.graphics.setBackgroundColor Sets the background color.
love.graphics.setBlendMode Sets the blending mode.
love.graphics.setCaption Sets the window caption.
love.graphics.setColor Sets the color used for drawing.
love.graphics.setColorMode Sets the color mode.
love.graphics.setFont Set an already-loaded Font as the current font.
love.graphics.setIcon Set window icon.
love.graphics.setLine Sets the line width and style.
love.graphics.setLineStipple Sets the line stipple pattern.
love.graphics.setLineStyle Sets the line style.
love.graphics.setLineWidth Sets the line width.
love.graphics.setMode Changes the display mode.
love.graphics.setPoint Sets the point size and style.
love.graphics.setPointSize Sets the point size.
love.graphics.setPointStyle Sets the point style.
love.graphics.setRenderTarget Captures drawing operations to a Framebuffer
love.graphics.setScissor Disables scissor.
love.graphics.toggleFullscreen Toggles fullscreen.
love.graphics.translate Translates the coordinate system in two dimensions.
love.graphics.triangle Draws a triangle.
Enums
AlignMode (Português) | Alinhamento do texto. |
BlendMode (Português) | Diferentes maneiras de fazer a mistura do alfa. |
ColorMode (Português) | Diferentes maneiras que a cor atual afetam imagens e geometrias. |
DrawMode (Português) | Como as formas são desenhadas. |
FilterMode (Português) | Como uma imagem é filtrada quando escalada. |
LineStyle (Português) | O estilo com o qual as linhas são desenhadas. |
PointStyle (Português) | Como os pontos podem ser desenhados. |
WrapMode (Português) | Como uma imagem será acondicionada dentro de um Quad largo. |
Veja Também
Outros Idiomas
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info