Search found 2712 matches

by slime
Mon Oct 22, 2018 10:21 pm
Forum: Support and Development
Topic: setCanvas() expects a number argument?
Replies: 2
Views: 92

Re: setCanvas() expects a number argument?

If the canvas is an array texture or cubemap or 3D texture, you need to give it a layer/cube index to render to as an argument in setCanvas.
by slime
Mon Oct 22, 2018 9:37 pm
Forum: Support and Development
Topic: What was the reasoning for changing setColor from RGB 0-255 to 0-1 interval?
Replies: 30
Views: 460

Re: What was the reasoning for changing setColor from RGB 0-255 to 0-1 interval?

It's not an implementation detail, it's consistency and extensibility. Previous love versions already had colors in the 0-1 range... but only in shaders, which is not consistent. love 11 also allows you to create and modify ImageData at different bit depths than 8 bits per color component (e.g. via ...
by slime
Sun Oct 14, 2018 12:38 pm
Forum: Support and Development
Topic: Documentation on BOX2D Locks
Replies: 2
Views: 344

Re: Documentation on BOX2D Locks

I think only the World:setCallbacks page should have it, since almost every love.physics object method that modifies the object can't be used (that's a lot of things to document), whereas World:setCallbacks is what affects those functions, so people who don't use that method won't care about those n...
by slime
Sat Oct 13, 2018 4:53 am
Forum: General
Topic: I demand that LÖVE add support of lua 5.3
Replies: 7
Views: 2204

Re: I demand that LÖVE add support of lua 5.3

EliterScripts wrote:
Sat Oct 13, 2018 2:58 am
string.pack()

string.unpack()
I've got good news, those are already in love (in a different module, but the code for them is from Lua 5.3's source code.) :)

love.data.pack

love.data.unpack
by slime
Thu Oct 11, 2018 11:16 am
Forum: General
Topic: May love2d planned move to github?
Replies: 4
Views: 446

Re: May love2d planned move to github?

karolek wrote:
Thu Oct 11, 2018 6:56 am
Bitbucket also uses git, you know. So there's no difference in usage from console or any git client :|
LÖVE's repository uses Mercurial.
by slime
Tue Oct 09, 2018 11:47 pm
Forum: Support and Development
Topic: How does love.dll expose love2d's functions?
Replies: 4
Views: 478

Re: How does love.dll expose love2d's functions?

Most C++ classes aren't exported publicly from the dll I think. In ImageData::setPixel's case, it's actually a lot faster to call ImageData:mapPixel (from Lua) than setPixel, because that has a very fast FFI implementation.

What do you want to do in C++ with love's API?
by slime
Sat Oct 06, 2018 3:05 am
Forum: Support and Development
Topic: love.exe and hello world code won't run. No reaction at all.
Replies: 7
Views: 1155

Re: love.exe and hello world code won't run. No reaction at all.

Windows 10 version 1809 changed the behaviour of an API love uses during startup, unfortunately. There's a build with a fix here until an official release happens: https://bitbucket.org/rude/love/issues/ ... t-48155677
by slime
Mon Sep 24, 2018 9:19 pm
Forum: Support and Development
Topic: Why the hell was (Image):getData removed?
Replies: 3
Views: 264

Re: Why the hell was (Image):getData removed?

It was removed because it's incompatible with different types of images, it also allows love to reduce its memory usage in the future with different rendering backends. A super easy way to access imagedata given an image, with minimal code changes, would be to store the imagedata in a table using th...
by slime
Mon Sep 24, 2018 8:27 pm
Forum: Support and Development
Topic: Why the hell was (Image):getData removed?
Replies: 3
Views: 264

Re: Why the hell was (Image):getData removed?

You can (and have always been able to) create an image using an imagedata, and just reuse the imagedata as you see fit.

Code: Select all

local imagedata = love.image.newImageData("image.png")
local image = love.graphics.newImage(imagedata)

local r, g, b, a = imagedata:getPixel(x, y)