c++ - SDL_RenderDrawPoint vs setPixel function -


is either better choice? have things set setpixel function @ moment, , want know if should change renderdraw functions.

here's setpixel function reference.

void setpixel(sdl_surface* surface, int x, int y, uint32 color){    uint8* pixel = (uint8*)surface->pixels;   pixel += (y * surface->pitch) + (x * sizeof(uint32));   *((uint32*)pixel) = color; } 


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -