buffer_set_surface(buffer, surface, mode, offset, modulo);
参数 | 描述 |
---|---|
buffer | The index of the buffer to use. |
surface | The index of the surface to use. |
mode | The data to get from the buffer (see the list of constants below). |
偏移 | The data offset value. |
modulo | The offset from the end of the line to the start of the next |
返回: N/A(无返回值)
With this function you can write the information from a buffer
to a given surface. Both the buffer and the surface must have been
created previously. You can choose the copy "mode" for the data
being stored which is set by the constants listed below, as well as
the offset and modulo values. Both offset and modulo are byte
values, with the offset defining the start position within the
buffer and modulo being the number of bytes that were left at the
end of every line (for storing additional data) when the buffer was
written to.
常量 | 描述 |
---|---|
0 | Copies all data from the buffer. |
buffer_set_surface(buff, application_surface, 0, 0, 0);
The above code will copy all the data stored in the buffer indexed in the variable "buff" to the application surface with no offset or modulo values.