banned raw void pointer from public API
This commit is contained in:
parent
2b312f3494
commit
a5830ad9cd
5 changed files with 25 additions and 19 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue