[READ-ONLY] Mirror of https://github.com/thoda-dev/du_render_script_library. A library to build renderscript in boards without writting it as a full string
0

Configure Feed

Select the types of activity you want to include in your feed.

Update RenderScript.lua

Thomas (Apr 13, 2023, 8:53 PM +0200) 4ee8c44e a9b84c75

+4 -4
+4 -4
RenderScript.lua
··· 390 390 --************************************************************************************************************ 391 391 392 392 --- Use a third party library in the renderscript 393 - ---@param libraryName string The name of the library to use 393 + ---@param libraryName string The name of the library to use, it will also be used as the variable name to access it in the renderScript 394 394 use = function (self, libraryName) 395 395 self._s = self._s .. 'local ' .. libraryName .. '=require("' .. libraryName .. '");' 396 396 end, 397 397 398 - --- Use the Atlas library in the renderscript 398 + --- Use the Atlas library in the renderscript the variable name is to access it in the renderScript is "atlas" 399 399 useAtlas = function (self) 400 400 self._s = self._s .. 'local atlas=require("atlas");' 401 401 end, 402 402 403 - --- Use the JSON (dkjson) library in the renderscript 403 + --- Use the JSON (dkjson) library in the renderscript the variable name is to access it in the renderScript is "json" 404 404 useJSON = function (self) 405 405 self._s = self._s .. 'local json=require("dkjson");' 406 406 end, 407 407 408 - --- Use the RSLib library in the renderscript 408 + --- Use the RSLib library in the renderscript the variable name is to access it in the renderScript is "rslib" 409 409 useRSLib = function (self) 410 410 self._s = self._s .. 'local rslib=require("rslib");' 411 411 end,