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:
@ -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{
|
||||
|
Reference in New Issue
Block a user