Documentation
Introduction
Getting Started
Game Distribution
Config Files
License
Documentation Guide
Modules
love
love.audio
love.event
love.filesystem
love.graphics
love.image
love.joystick
love.keyboard
love.mouse
love.physics
love.sound
love.timer
Callbacks
love.joystickreleased
love.joystickpressed
love.load
love.update
love.draw
love.keypressed
love.keyreleased
love.mousepressed
love.mousereleased
love.run
Edit
Function
Quad:setViewport( x, y, w, h )
Sets the texture coordinates according to a viewport.
Synopsis
Quad:setViewport( x, y, w, h )
Parameters
x
number
The top-left corner along the x-axis.
y
number
The top-right corner along the y-axis.
w
number
The width of the viewport.
h
number
The height of the viewport.
Copyright © 2006-2010 LÖVE Development Team.
Visit Homepage
–
Ask a Question