This file is to be used with the example.lua
file.
Here, we use Markdown's ability to use shortlink images:
Testing results: ![shield_build] ![shield_tests]
Version information:
echo LOVE Install for Fedora Initialized | |
pause | |
yum install gcc gcc-c++ automake libtool SDL2 SDL2-devel openal openal-devel luajit luajit-devel DevIL DevIL-devel freetype-devel libmodplug libmodplug-devel physfs physfs-devel libvorbis-devel | |
platform/unix/automagic | |
./configure | |
make | |
make install | |
echo Complete! |
--[[ | |
PUBLIC DOMAIN | |
Where this designation is not recognized, you are | |
permitted to copy, modify, and distribute this code | |
without restriction. | |
Lucien Greathouse | |
(LPGhatguy) | |
]] |
--[[ | |
PUBLIC DOMAIN | |
Where this designation is not recognized, you are | |
permitted to copy, modify, and distribute this code | |
without restriction. | |
Lucien Greathouse | |
(LPGhatguy) | |
]] |
local infont | |
local outfont | |
local glyphstring = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`~!@#$%^&*()-=_+[]{}\\|;:'\",./<>?" | |
local teststring = [[ | |
Who packed five dozen old quart jugs in my box? | |
Prating jokers quizzically vexed me with fibs. | |
Brawny gods just flocked up to quiz and vex him. | |
Watch "Jeopardy!", Alex Trebek's fun TV quiz game. | |
]] | |
local border = 2 |
--usage: require("oops") | |
local rawset, tostring = rawset, tostring | |
local meta = { | |
__mode = "v", | |
__index = function(self, index) | |
return tostring(index) | |
end, | |
__newindex = function(self, index, value) | |
rawset(self, tostring(index):upper(), value) | |
end |
local glfw = require("glfw3") --Let's say we have a magic GLFW3 binding there! | |
local openGL = require("opengl") | |
openGL.loader = glfw.GetProcAddress | |
openGL:import() | |
--and somewhere else | |
local vbo = ffi.new("GLuint[1]") | |
gl.GenBuffers(1, vbo) | |
gl.BindBuffer(GL.ARRAY_BUFFER, vbo[0]) | |
gl.BufferData(GL.ARRAY_BUFFER, ffi.sizeof(vertices), vertices, GL.STATIC_DRAW) |
--[[ | |
]] | |
local lfs = require("lfs") | |
local CWD = "./" | |
function readfile(path) | |
local handle = io.open(path, "r") | |
if (handle) then | |
local data = handle:read("*a") | |
handle:close() |
local function table_copy(source, target) | |
target = target or {} | |
for key, value in pairs(source) do | |
target[key] = value | |
end | |
return target | |
end |
debug.setmetatable(function() end, { | |
__concat = function(self, with) | |
return function(...) | |
return self(with(...)) | |
end | |
end | |
}) | |
local sin = math.sin | |
print((sin .. sin)(5)) --sin(sin(5)) |