banned raw void pointer from public API

This commit is contained in:
Hartmut Seichter 2022-06-07 17:13:02 +02:00
parent 2b312f3494
commit a5830ad9cd
5 changed files with 25 additions and 19 deletions

View file

@ -13,8 +13,11 @@ for k,v in pairs(pw.path.get().resource_paths) do
end
-- create image
local img = pw.image()
if not img:create(pw.size(512,512),pw.pixel_layout.rgb8) then
-- initialize with data
if not img:create(pw.size(512,512),pw.pixel_layout.rgb8,nil) then
print("image couldnt be created")
else