summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorjussi2024-01-24 19:14:30 +0200
committerjussi2024-01-24 19:14:30 +0200
commit3b3d0ad32e24c2ff0a13daf3e865054f63afaf86 (patch)
tree192e9b69af4515c6e05978c83905636f693f011a /examples
parent7460a16cae15dfa7924d1d4df1aac166a6a6fd2c (diff)
downloadreilua-enhanced-3b3d0ad32e24c2ff0a13daf3e865054f63afaf86.tar.gz
reilua-enhanced-3b3d0ad32e24c2ff0a13daf3e865054f63afaf86.tar.bz2
reilua-enhanced-3b3d0ad32e24c2ff0a13daf3e865054f63afaf86.zip
LoadBufferFromString, LoadWaveFromMemory and LoadMusicStreamFromMemory.
Diffstat (limited to 'examples')
-rw-r--r--examples/ray/main.lua2
-rw-r--r--examples/raygui_extensions/main.lua1
-rw-r--r--examples/raygui_extensions/property_list.lua2
3 files changed, 3 insertions, 2 deletions
diff --git a/examples/ray/main.lua b/examples/ray/main.lua
index 52924df..5ac2fcf 100644
--- a/examples/ray/main.lua
+++ b/examples/ray/main.lua
@@ -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
diff --git a/examples/raygui_extensions/main.lua b/examples/raygui_extensions/main.lua
index f6b9dee..e52c96d 100644
--- a/examples/raygui_extensions/main.lua
+++ b/examples/raygui_extensions/main.lua
@@ -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 ) },
diff --git a/examples/raygui_extensions/property_list.lua b/examples/raygui_extensions/property_list.lua
index 13446a9..04c2b78 100644
--- a/examples/raygui_extensions/property_list.lua
+++ b/examples/raygui_extensions/property_list.lua
@@ -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