mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
cogl-texture: Add some missing array annotations
This allows bindings to correctly understand that it is an array https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1130
This commit is contained in:
parent
4133b73632
commit
0053ef2e16
@ -320,8 +320,8 @@ cogl_texture_get_gl_texture (CoglTexture *texture,
|
||||
* @rowstride: the rowstride of @data in bytes or pass 0 to calculate
|
||||
* from the bytes-per-pixel of @format multiplied by the
|
||||
* @texture width.
|
||||
* @data: memory location to write the @texture's contents, or %NULL
|
||||
* to only query the data size through the return value.
|
||||
* @data: (array) (nullable): memory location to write the @texture's contents,
|
||||
* or %NULL to only query the data size through the return value.
|
||||
*
|
||||
* Copies the pixel data from a cogl texture to system memory.
|
||||
*
|
||||
@ -354,7 +354,7 @@ cogl_texture_get_data (CoglTexture *texture,
|
||||
* @format: the #CoglPixelFormat used in the source buffer.
|
||||
* @rowstride: rowstride of source buffer (computed from width if none
|
||||
* specified)
|
||||
* @data: the actual pixel data.
|
||||
* @data: (array): the actual pixel data.
|
||||
*
|
||||
* Sets the pixels in a rectangular subregion of @texture from an in-memory
|
||||
* buffer containing pixel data.
|
||||
@ -384,7 +384,7 @@ cogl_texture_set_region (CoglTexture *texture,
|
||||
* @format: the #CoglPixelFormat used in the source @data buffer.
|
||||
* @rowstride: rowstride of the source @data buffer (computed from
|
||||
* the texture width and @format if it equals 0)
|
||||
* @data: the source data, pointing to the first top-left pixel to set
|
||||
* @data: (array): the source data, pointing to the first top-left pixel to set
|
||||
* @level: The mipmap level to update (Normally 0 for the largest,
|
||||
* base texture)
|
||||
* @error: A #GError to return exceptional errors
|
||||
|
@ -104,7 +104,7 @@ cogl_texture_new_from_file (const char *filename,
|
||||
* something other than straight blending.
|
||||
* @rowstride: the memory offset in bytes between the starts of
|
||||
* scanlines in @data
|
||||
* @data: pointer the memory region where the source buffer resides
|
||||
* @data: (array): pointer the memory region where the source buffer resides
|
||||
*
|
||||
* Creates a new #CoglTexture based on data residing in memory.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user