LoadBufferFromString, LoadWaveFromMemory and LoadMusicStreamFromMemory.

This commit is contained in:
jussi
2024-01-24 19:14:30 +02:00
parent 7460a16cae
commit 3b3d0ad32e
12 changed files with 113 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ local function setupWindow()
RL.SetWindowPosition( { mPos[1] + mSize[1] / 2 - winSize[1] / 2, mPos[2] + mSize[2] / 2 - winSize[2] / 2 } )
end
function ray_collision()
local function ray_collision()
rayCol = RL.GetRayCollisionMesh( ray, sphereMesh, RL.MatrixIdentity() )
if rayCol ~= nil and rayCol.hit then

View File

@@ -36,6 +36,7 @@ local function addButton( bounds, text, callback )
callback,
{
{ RL.LABEL, RL.TEXT_ALIGNMENT, RL.TEXT_ALIGN_CENTER },
{ RL.DEFAULT, RL.TEXT_SIZE, 32 },
{ RL.LABEL, RL.TEXT_COLOR_NORMAL, RL.ColorToInt( { 84, 59, 22 } ) },
{ RL.LABEL, RL.TEXT_COLOR_PRESSED, RL.ColorToInt( { 84/2, 59/2, 22/2 } ) },
{ RL.LABEL, RL.TEXT_COLOR_FOCUSED, RL.ColorToInt( RL.GREEN ) },

View File

@@ -101,7 +101,7 @@ function PropertyList:updateContent()
self._forceCheckScroll = true
end
-- Leave control bounds size to 0 to use default. Optional group for parameter 2
-- Leave control bounds size to 0 to use default. Optional group for parameter 2.
function PropertyList:addControl( control, group, noYAdvance )
control._noYAdvance = noYAdvance