Search found 1080 matches
- Mon Mar 24, 2025 9:43 pm
- Forum: Support and Development
- Topic: Accessing LÖVE C++ internals via luajit FFI
- Replies: 5
- Views: 491
Re: Accessing LÖVE C++ internals via luajit FFI
https://github.com/love2d/love/issues/1640 Ah yes, that would be exactly what I had hoped to find in liblove.so, but would not have dared to feature-request flat out :ultrahappy: I'm assuming that the texture ID stays the same for the duration of the graphics context, so it'd only need to be querie...
- Fri Mar 21, 2025 10:09 am
- Forum: Support and Development
- Topic: Accessing LÖVE C++ internals via luajit FFI
- Replies: 5
- Views: 491
Re: Accessing LÖVE C++ internals via luajit FFI
Thank you, that's a great idea! On Linux it seems I can just link to libGL statically, not sure if that is somehow illicit, it's working for me: :awesome: local ffi = require 'ffi' ffi.cdef [[ // gl.h typedef int GLint; typedef unsigned int GLuint; typedef unsigned int GLenum; void glGetFramebufferA...
- Thu Mar 20, 2025 12:25 pm
- Forum: Support and Development
- Topic: Accessing LÖVE C++ internals via luajit FFI
- Replies: 5
- Views: 491
Accessing LÖVE C++ internals via luajit FFI
Hey all, I want to stream the rendered output of love2d to other applications, directly on the GPU, using texture-share-vk . It provides a C API that I can use easily using the luajit C FFI and the following works perfectly: local ffi = require 'ffi' ffi.cdef [[ // gl.h typedef int GLint; typedef un...
- Thu Nov 07, 2019 5:05 pm
- Forum: Support and Development
- Topic: Passing a 'self' function as a parameter
- Replies: 4
- Views: 6262
Re: Passing a 'self' function as a parameter
Code: Select all
function newSquare(f)
local square = setmetatable({ n = 1 }, square)
square.button = newButton(function () square:increment end)
return square
end
- Mon May 28, 2018 9:05 am
- Forum: Libraries and Tools
- Topic: a working setColor compatibilty multiplier
- Replies: 17
- Views: 29436
Re: a working setColor compatibilty multiplier
For me the change from 255 to 1 didn't make sense anyway. Yeah 255 is indeed the max color value due to 255 being the decimal equivalent to binary 1111111 For me it works very very confusing since all graphic manipulation programs I have (as well as other programming tools I use) use a 0-255 scale,...
- Mon May 21, 2018 11:43 am
- Forum: General
- Topic: Getting a project to work with moonscript 0.5.0-1
- Replies: 12
- Views: 18071
Re: Getting a project to work with moonscript 0.5.0-1
You can pass a filename (or any name) as second argument to loadstring. Right, that kind of works - it's still printing bogus line numbers though. It's the line numbers from the transpiled file, not the source line numbers. Right back to square one, sigh. it has always been this way for me. I have ...
- Mon May 21, 2018 7:29 am
- Forum: General
- Topic: Getting a project to work with moonscript 0.5.0-1
- Replies: 12
- Views: 18071
Re: Getting a project to work with moonscript 0.5.0-1
Hm, im not sure it love 11 changed something, but I was always runnig it like that: main.lua require(“moonscript”) require(“game”) I cant check your attached file unfortunately on my phone. You are not attempting to require “game.moon” right? Also, is your capitalization the same on disk and in the ...
- Sun Feb 11, 2018 2:17 am
- Forum: General
- Topic: Code Doodles!
- Replies: 197
- Views: 332248
Re: Code Doodles!
spiral around a 3d torus very simply projected to 2d and rendered as many circles:

(source)
This eventually led to an this 4d torus explorer program: https://github.com/s-ol/torus4d

(source)
This eventually led to an this 4d torus explorer program: https://github.com/s-ol/torus4d
- Sun Dec 31, 2017 12:30 pm
- Forum: Support and Development
- Topic: Building LÖVE Arch linux
- Replies: 5
- Views: 13159
Re: Building LÖVE Arch linux
Well if you actually ran "love." then it's because it needs to be "love ." (that space is very important). On arch you usually dont need to compile from source by hand, you have PKGBUILDs to describe the build process and integrate the files with the system package manager. You D...
- Sun Dec 17, 2017 1:30 pm
- Forum: Support and Development
- Topic: Muffled Audio?
- Replies: 2
- Views: 5276
Re: Muffled Audio?
The effect you are looking for is a Low-pass filter (LP) that let's the deep sounds through.