class "RenderBuffer" function RenderBuffer:__getvar(name) if name == "colorTexture" then local retVal = Polycore.RenderBuffer_get_colorTexture(self.__ptr) if retVal == nil then return nil end local __c = _G["Texture"]("__skip_ptr__") __c.__ptr = retVal return __c elseif name == "depthTexture" then local retVal = Polycore.RenderBuffer_get_depthTexture(self.__ptr) if retVal == nil then return nil end local __c = _G["Texture"]("__skip_ptr__") __c.__ptr = retVal return __c elseif name == "platformData" then local retVal = Polycore.RenderBuffer_get_platformData(self.__ptr) if retVal == nil then return nil end local __c = _G["void"]("__skip_ptr__") __c.__ptr = retVal return __c elseif name == "depthBufferPlatformData" then local retVal = Polycore.RenderBuffer_get_depthBufferPlatformData(self.__ptr) if retVal == nil then return nil end local __c = _G["void"]("__skip_ptr__") __c.__ptr = retVal return __c end end function RenderBuffer:__setvar(name,value) return false end function RenderBuffer:RenderBuffer(...) local arg = {...} for k,v in pairs(arg) do if type(v) == "table" then if v.__ptr ~= nil then arg[k] = v.__ptr end end end if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then self.__ptr = Polycore.RenderBuffer(unpack(arg)) end end function RenderBuffer:getWidth() local retVal = Polycore.RenderBuffer_getWidth(self.__ptr) return retVal end function RenderBuffer:getHeight() local retVal = Polycore.RenderBuffer_getHeight(self.__ptr) return retVal end function RenderBuffer:__delete() if self then Polycore.delete_RenderBuffer(self.__ptr) end end