Skip to main content
Fixed grammar.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82

ifIf you use the SDL2 Renderer you should, say goodbye to the idea of accessing the pixelpixels directly. ofOf course this is, it is possible but everytime you do this you "download" the pixel everytime from your graphiccardgraphics card and then you have to push themit up again.

I would suggest you, that you do all pixel manipulation beforebefore in a SDL_SurfaceSDL_Surface and you load the result as texture into you graphicgraphics card OR use OpenGL complete.

if you use SDL2 Renderer you should say goodbye to the idea of accessing the pixel directly. of course this is possible but everytime you do this you "download" the pixel everytime from your graphiccard and then you have to push them up again.

I would suggest you, that you do all pixel manipulation before in a SDL_Surface and you load the result as texture into you graphic card OR use OpenGL complete.

If you use the SDL2 Renderer, say goodbye to the idea of accessing pixels directly. Of course, it is possible but everytime you do this you "download" the pixel from your graphics card and then have to push it up again.

I suggest that you do all pixel manipulation before in a SDL_Surface and load the result as texture into you graphics card OR use OpenGL complete.

Source Link
ExOfDe
  • 213
  • 1
  • 8

if you use SDL2 Renderer you should say goodbye to the idea of accessing the pixel directly. of course this is possible but everytime you do this you "download" the pixel everytime from your graphiccard and then you have to push them up again.

I would suggest you, that you do all pixel manipulation before in a SDL_Surface and you load the result as texture into you graphic card OR use OpenGL complete.