I am learning how to write SDL program in C++, and I came across this code:
SDL_Renderer *ren =
SDL_CreateRenderer(win, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
// ^ I have no idea what this means?
I don't know if this is a specific C++ feature?
My guess coming from shell scripting background suggests it could be a pipe (I know it's obviously not that), or it's just a bitwise OR?
What does a |
mean when using it in a function parameter like the above code?