My C++ OpenGL SDL program is not working as I expected
问题 I have just started learning OpenGL and I am attempting to make a game of pong. I'm having trouble getting the paddle to appear on the screen and I can't fathom out why: I thought with this code it should appear in the top left corner and move when down and up keys are pressed. main.cpp - #include <SDL/SDL.h> #include <SDL/SDL_opengl.h> #include "classes.h" #include "functions.h" int main (int argc, char *argv[]) { init_everything(); PlayerPaddle paddle; bool quit = false; while( quit ==