[svn:parrot] r40172 - trunk/examples/opengl

NotFound at svn.parrot.org NotFound at svn.parrot.org
Mon Jul 20 20:03:53 UTC 2009


Author: NotFound
Date: Mon Jul 20 20:03:52 2009
New Revision: 40172
URL: https://trac.parrot.org/parrot/changeset/40172

Log:
[examples] avoid unneeded namespace argument in import gl functions

Modified:
   trunk/examples/opengl/static-triangle-hll.pir

Modified: trunk/examples/opengl/static-triangle-hll.pir
==============================================================================
--- trunk/examples/opengl/static-triangle-hll.pir	Mon Jul 20 19:04:49 2009	(r40171)
+++ trunk/examples/opengl/static-triangle-hll.pir	Mon Jul 20 20:03:52 2009	(r40172)
@@ -33,11 +33,11 @@
     load_bytecode 'OpenGL.pbc'
     load_bytecode 'NCI/Utils.pbc'
 
-    # Import all OpenGL/GLU/GLUT functions
+    # Import all OpenGL/GLU/GLUT functions to current namespace
+    # (in this example, the HLL namespace).
     .local pmc import_gl
     import_gl = get_root_global ['parrot';'OpenGL'], '_export_all_functions'
-    $P0 = get_namespace
-    import_gl($P0)
+    import_gl()
 
     # Initialize GLUT
     .local pmc call_toolkit_init


More information about the parrot-commits mailing list