Download novelforge-project/flutter/examples/texture/linux/my_texture.h from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/novelforge-project/flutter/examples/texture/linux/my_texture.h
- Command line
-
hf download hf://luom2645/agent-workspace/novelforge-project/flutter/examples/texture/linux/my_texture.h
-
curl -L -o my_texture.h https://huggingface.co/luom2645/agent-workspace/resolve/main/novelforge-project/flutter/examples/texture/linux/my_texture.h
1.14 kB
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| G_DECLARE_FINAL_TYPE(MyTexture, my_texture, MY, TEXTURE, FlPixelBufferTexture) | |
| /** | |
| * my_texture_new: | |
| * @self: a #MyTexture. | |
| * @width: width of texture in pixels. | |
| * @height: height of texture in pixels. | |
| * @r: red value for texture color. | |
| * @g: green value for texture color. | |
| * @b: blue value for texture color. | |
| * | |
| * Creates a new texture containing a single color for Flutter to render with. | |
| * | |
| * Returns: a new #MyTexture. | |
| */ | |
| MyTexture* my_texture_new(uint32_t width, uint32_t height, uint8_t r, uint8_t g, | |
| uint8_t b); | |
| /** | |
| * my_texture_new: | |
| * @self: a #MyTexture. | |
| * @r: red value for texture color. | |
| * @g: green value for texture color. | |
| * @b: blue value for texture color. | |
| * | |
| * Sets the color the texture contains. | |
| */ | |
| void my_texture_set_color(MyTexture* self, uint8_t r, uint8_t g, uint8_t b); | |