update
[sdlgit/SDL-Site.git] / pages / SDL-Cookbook-OpenGL.html-inc
index 663bfd4..1023dab 100644 (file)
        $| = 1;
        $WIDTH = 1024;
        $HEIGHT = 768;
-       $SDLAPP = SDLx::App->new(-title => "Opengl App", -width => $WIDTH, -height => $HEIGHT, -gl => 1);
+       $SDLAPP = SDLx::App->new(title => "Opengl App", width => $WIDTH, height => $HEIGHT, gl => 1);
        $SDLEVENT = SDL::Event->new;
 
 </pre>
-<p>SDLx::App can start an OpenGL application with the parameter -gl =&gt; 1.</p>
+<p>SDLx::App can start an OpenGL application with the parameter gl =&gt; 1.</p>
 <pre>  glEnable(GL_DEPTH_TEST);
        glMatrixMode(GL_PROJECTION);
        glLoadIdentity;