love.graphics.replaceTransform
Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Replaces the current coordinate transformation with the given Transform object.
Function
Synopsis
love.graphics.replaceTransform( transform )
Arguments
Transform transform
- The Transform object to replace the current graphics coordinate transform with.
Returns
Nothing.
Examples
local transform = love.math.newTransform()
transform:translate(200, 0)
function love.draw()
love.graphics.translate(100, 100)
love.graphics.rectangle("fill", 0, 0, 50, 50)
love.graphics.replaceTransform(transform)
love.graphics.rectangle("fill", 0, 0, 50, 50)
end
See Also
- love.graphics
- love.math.newTransform
- love.graphics.applyTransform
- love.graphics.push
- love.graphics.pop
Other Languages
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