Raygui wrapper library is now object based.

This commit is contained in:
jussi
2023-11-30 19:41:22 +02:00
parent aa03fffcb3
commit a5d40f7025
13 changed files with 717 additions and 417 deletions

View File

@@ -5,7 +5,7 @@ end
local Vector3 = require( "vector3" )
Color = {}
local Color = {}
Color.meta = {
__index = Color,
__tostring = function( c )

View File

@@ -1,19 +1,9 @@
Util = require( "utillib" )
Rect = require( "rectangle" )
Vec2 = require( "vector2" )
Color = require( "color" )
local Util = require( "utillib" )
local Rect = require( "rectangle" )
local Vec2 = require( "vector2" )
local Color = require( "color" )
--[[
To add repeat inputs to the keys pressed buffer, you could add GLFW_REPEAT in railib rcore.c in function "KeyCallback" by changing:
if ((CORE.Input.Keyboard.keyPressedQueueCount < MAX_KEY_PRESSED_QUEUE) && (action == GLFW_PRESS))
To
if ((CORE.Input.Keyboard.keyPressedQueueCount < MAX_KEY_PRESSED_QUEUE) && (action == GLFW_PRESS || action == GLFW_REPEAT))
Now GLFW_REPEAT can be read by "RL.GetKeyPressed".
]]
Gui = {
local Gui = {
ALING = {
NONE = 0,
LEFT = 1,

View File

@@ -22,7 +22,7 @@ local function deepCopy( orig )
return copy
end
Matrix = {}
local Matrix = {}
Matrix.meta = {
__index = Matrix,
__tostring = function( m )

View File

@@ -6,7 +6,7 @@ end
local Vector3 = require( "vector3" )
local Matrix = require( "matrix" )
Quaternion = {}
local Quaternion = {}
Quaternion.meta = {
__index = Quaternion,
__tostring = function( q )

File diff suppressed because it is too large Load Diff

View File

@@ -5,8 +5,7 @@ end
local Vector2 = require( "vector2" )
Rectangle = {}
local Rectangle = {}
Rectangle.meta = {
__index = Rectangle,
__tostring = function( r )

View File

@@ -3,7 +3,7 @@ if table.unpack == nil then
table.unpack = unpack
end
Vector2 = {}
local Vector2 = {}
Vector2.meta = {
__index = Vector2,
__tostring = function( v )

View File

@@ -5,7 +5,7 @@ end
local Vector2 = require( "vector2" )
Vector3 = {}
local Vector3 = {}
Vector3.meta = {
__index = Vector3,
__tostring = function( v )