title: How to draw pixels in SDL 2.0?
body: <p>How does one draw with pixels in SDL2.0? </p>
  
  <p>I'm trying to get familiar with C++, but this is very difficult to do without pretty pictures, so I'm trying to get a very basic graphics display thing running. All I really want it to do is give me a window, let me draw rgbα pixels on it, and access information about those pixels. There may be other things I want that I'm not aware of, but that's all that's on my list right now. My research on this has lead me to try using SDL, the current version being 2.0. </p>
  
  <p>Almost all my graphics experience comes from using JavaScript on a <code>&lt;canvas&gt;</code>. Most of the other bit comes from my calculator, which has this <em>really</em> awesome <code>Pxl-On()</code> command, so easy.</p>
  
  <p>I'm using MinGW for my C++, if it matters. Also, if there's something better** out there than SDL2.0 for what I need, advice welcome.</p>
  
  <hr>
  
  <p>** "better" means "contains what functionality I need, but less total functionality than SDL2.0, and/or has a more intuitive/less complex*** API than SDL2.0."</p>
  
  <p>*** Less lines of code to accomplish the same task.</p>