Re: basic pointer question

2025-07-11 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Jul 11, 2025 at 10:17:02PM +, WhatMeWorry via Digitalmars-d-learn wrote: > ``` > // working function > > SDL_Texture* changeTextureAccess(SDL_Texture *texture, SDL_TextureAccess > newAccess) > { > // pertinent code only > texture = createTexture(renderer, pixelFormat, newAcces

Re: basic pointer question

2025-07-11 Thread Luna via Digitalmars-d-learn
On Friday, 11 July 2025 at 22:17:02 UTC, WhatMeWorry wrote: ``` // working function SDL_Texture* changeTextureAccess(SDL_Texture *texture, SDL_TextureAccess newAccess) { // pertinent code only texture = createTexture(renderer, pixelFormat, newAccess, width, height); return textur

basic pointer question

2025-07-11 Thread WhatMeWorry via Digitalmars-d-learn
``` // working function SDL_Texture* changeTextureAccess(SDL_Texture *texture, SDL_TextureAccess newAccess) { // pertinent code only texture = createTexture(renderer, pixelFormat, newAccess, width, height); return texture; } ``` The above function is working for me when I call it