1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: change byteptr to &byte in sokol examples and regex (#9606)

This commit is contained in:
penguindark
2021-04-05 17:17:45 +02:00
committed by GitHub
parent 07b1dc66dd
commit a016ac39c0
7 changed files with 24 additions and 22 deletions

View File

@ -39,7 +39,7 @@ mut:
* Texture functions
*
******************************************************************************/
fn create_texture(w int, h int, buf byteptr) C.sg_image {
fn create_texture(w int, h int, buf &byte) C.sg_image {
sz := w * h * 4
mut img_desc := C.sg_image_desc{
width: w
@ -68,7 +68,7 @@ fn destroy_texture(sg_img C.sg_image) {
}
// Use only if usage: .dynamic is enabled
fn update_text_texture(sg_img C.sg_image, w int, h int, buf byteptr) {
fn update_text_texture(sg_img C.sg_image, w int, h int, buf &byte) {
sz := w * h * 4
mut tmp_sbc := C.sg_image_content{}
tmp_sbc.subimage[0][0] = C.sg_subimage_content{