|
NAMEalloc_surface - Create an empty, non-visible surface with a preset storage.SYNOPSISvidalloc_surface( int:width, int:height ) alloc_surface( int:width, int:height, bool:noalpha ) alloc_surface( int:width, int:height, bool:noalpha, int:quality ) DESCRIPTIONSome operations, particularly record and rendertargets need a storage buffer to work with. While fill_surface could also be used for such operations, this function will result in one one less transfer and, optionally, some control over storage format and quality. If noalpha is set (true, !0) the texture format for the underlying backing store will be set to one where the alpha channel corresponds to fullbright (ignore/nobright). quality can be set to one of the following: ALLOC_QUALITY_LOW , ALLOC_QUALITY_NORMAL , ALLOC_QUALITY_HIGH , ALLOC_QUALITY_FLOAT 16, ALLOC_QUALITY_FLOAT 32.NOTES
EXAMPLEfunction alloc_surface0() local vid = fill_surface(640, 480); assert(vid ~= BADID) print("allocated: ", vid, 640, 480); show_image(vid); end MISUSEfunction alloc_surface0() fill_surface(-1, -1); end MISUSEfunction alloc_surface1() fill_surface(1000000, 100000000); end SEE ALSO:
Visit the GSP FreeBSD Man Page Interface. |