title: How to render a point in sdl2
body: <p>I am trying to render a point using SDL and I cannot seem to get the point to render. I am not getting any errors in the code and it is compiling however no point is appearing on the window.</p>
  
  <p>Code: </p>
  
  <pre><code>   #include &lt;iostream&gt;
  #include &lt;SDL2/SDL.h&gt;
  
  using namespace std;
  
  int main() {
      const int windowHeight = 600;
      const int windowWidth = 800;
  
      if (SDL_Init(SDL_INIT_VIDEO) &lt; 0) {
          return 1;
          cout &lt;&lt; "Initialization failed" &lt;&lt; endl;
      }
  
      SDL_Window *window = SDL_CreateWindow("Practice making sdl Window",
              SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, windowWidth,
              windowHeight, SDL_WINDOW_SHOWN);
  
      if (window == NULL) {
          SDL_Quit();
          return 2;
      }
      SDL_Renderer *s;
      const int pointLocationx = windowWidth/2;
      const int pointLocationy = windowHeight/2;
      SDL_RenderDrawPoint(s, pointLocationx, pointLocationy);
  
      bool quit = false;
      SDL_Event event;
      while (!quit) {
          //drawing particles
          //setting up objects
          //repeated over and over again
  
          while (SDL_PollEvent(&amp;event)) {
              if (event.type == SDL_QUIT) {
                  quit = true;
              }
          }
      }
  
      SDL_DestroyWindow(window);
      SDL_Quit();
  
  }
  </code></pre>
  
  <p>Above is the code that I have. Any advice is appreciated and help is super appreciated.</p>