Select the types of activity you want to include in your feed.
[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
···392392 --- Use a third party library in the renderscript
393393 ---@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
394394 use = function (self, libraryName)
395395- self._s = self._s .. 'local ' .. libraryName .. '=require("' .. libraryName .. '");'
395395+ self._s = self._s .. 'local ' .. libraryName .. '=require "' .. libraryName .. '";'
396396 end,
397397398398 --- Use the Atlas library in the renderscript the variable name is to access it in the renderScript is "atlas"
399399 useAtlas = function (self)
400400- self._s = self._s .. 'local atlas=require("atlas");'
400400+ self._s = self._s .. 'local atlas=require "atlas";'
401401 end,
402402403403 --- Use the JSON (dkjson) library in the renderscript the variable name is to access it in the renderScript is "json"
404404 useJSON = function (self)
405405- self._s = self._s .. 'local json=require("dkjson");'
405405+ self._s = self._s .. 'local json=require "dkjson";'
406406 end,
407407408408 --- Use the RSLib library in the renderscript the variable name is to access it in the renderScript is "rslib"
409409 useRSLib = function (self)
410410- self._s = self._s .. 'local rslib=require("rslib");'
410410+ self._s = self._s .. 'local rslib=require "rslib";'
411411 end,
412412413413 --************************************************************************************************************