C++ SDL What does the | do?

后端 未结 4 1947
無奈伤痛
無奈伤痛 2021-01-24 13:37
screen = SDL_SetVideoMode(1000,1000,32, SDL_HWSURFACE | SDL_FULLSCREEN);

What does the | do in SDL_HWSURFACE | SDL_FULLSCREEN

4条回答
  •  有刺的猬
    2021-01-24 14:14

    That's the bitwise OR operator. It applies it to SDL_HWSURFACE and SDL_FULLSCREEN.

提交回复
热议问题