Repository navigation
Expand file tree
/
Copy pathtechwrap.lua
More file actions
63 lines (55 loc) · 1.41 KB
/
Copy pathtechwrap.lua
File metadata and controls
63 lines (55 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
function graphics_getWidth()
return love.graphics.getWidth()
end
function graphics_getHeight()
return love.graphics.getHeight()
end
function love_graphics_setMode080()
love.graphics.setMode(0, 0, true, false) -- 0.8.0
love.graphics.setMode(love.graphics.getMode())
end
function love_graphics_setMode()
end
function gdraw(i, x, y)
love.graphics.draw(i, x, y)
end
function gpush()
love.graphics.push()
end
function gpop()
love.graphics.pop()
end
function gscale(g)
love.graphics.scale(g)
end
function load_image(img)
love.graphics.newImage(img)
end
function load_font(fnt)
return love.graphics.newFont(fnt)
end
function set_font( f )
love.graphics.setFont(f)
end
function love_audio_play(s)
love.audio.play(s)
end
function love_window_setFullScreen( b )
love.window.setFullscreen( b )
end
function love_graphics_setMode(x, y, b1, b2)
love.graphics.setMode(800, 600, false, false)
end
function love_window_setMode(x,y)
love.window.setMode(x,y)
end
function go_fullscreen(g) --moved from main
if fullscreen_hack == "no" then
love.window.setFullscreen(true, "desktop")
else --fullscreen_hack = "yes"
love.window.setFullscreen(false, "desktop")
love.window.setMode(800, 600, {resizable=true, vsync=false, minwidth=400, minheight=300})
end--fullscreen_hack == "no" then
--g.screen_height = love.graphics.getHeight()
--g.screen_width = love.graphics.getWidth()
end