title: learning OpenGL ES 2.0 under regular OpenGL - compilation
body: <p>I am learning OpenGL with an aim to build OpenGL ES application for Android / iPhone.</p>
  
  <p>Since I learn it from the beginning, I would prefer to learn the new specification, without touching the old stuff (glBegin etc.). Unfortunately, when I pass some tutorial and implement stuff, it turns out that the examples <em>are incompatible</em>  with ES 2.0. For example, after <a href="http://www.lighthouse3d.com/tutorials/glsl-tutorial/lighting/" rel="nofollow">those excellent tutorials</a> I know how to implement lights, what works on my PC, but would not work on a mobile (<code>gl_LightSource</code> is <a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&amp;Number=269233" rel="nofollow">not supported in the latter</a>). </p>
  
  <p>What I would like to do, is to develop the code on my PC, and <em>restrict</em> the API to the commands that are supported under OpenGL ES (like, throw error on <code>glLight</code>). Is that possible?</p>