lua.wetgenes.grd.create
ga=wgrd.create(gb)
Duplicate the grd.
ga=wgrd.create(format,width,height,depth)
Create a grd in the given format with the given width height and depth.
ga=wgrd.create(filename,opts)
Load an image from the file system.
ga=wgrd.create()
Create a blank grd of 0 dimensions.
This is usually the only wgrd function you would need to call as once you have a grd you can use the : calling convention to modify it. The other functions will be shown as examples using the : calling convention.
wgrd.create():load(opts)
For instance could be used if you wish to perform a more esoteric load than from the file system.
Returns nil,error if something goes wrong so can be used with assert otherwise returns a grd object.