12local function
color(c)
13 local DIV = love.wiimote and 1 or 255
14 local R = bit.band(bit.rshift(c, 24), 0xFF)/DIV
15 local G = bit.band(bit.rshift(c, 16), 0xFF)/DIV
16 local B = bit.band(bit.rshift(c, 8), 0xFF)/DIV
17 local A = bit.band(bit.rshift(c, 0), 0xFF)/DIV
18 love.graphics.setColor(R, G, B, A)
21local function
rect(a,b,c,d,e,f)
22 love.graphics.rectangle(modes[love.wiimote ~= nil][a], b, c, d, e)
27 if love.wiimote then
return 32 end
29 love.graphics.print(
text, x, y)
31 return love.graphics.getFont():getWidth(
text or x)
34local function
line(x1, y1, x2, y2)
35 love.graphics.line(x1, y1, x2, y2)
38--! @todo implement it!
39local function
font(a, b)
50 love.graphics.rectangle(modes[love.wiimote ~= nil][0], 0, 0,
game.width,
game.height)
60 love.
draw = function()
66 love.resize = function(w, h)
local function fps(self, show, x, y)
local function install(std, lgame, application, ginga)
local function line(x1, y1, x2, y2)
local function font(a, b)
local function rect(mode, x, y, width, height)
local function text(x, y, text)
local function draw(std, game)