Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.052 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'nasty': 0.07; '10:00': 0.16; 'commented': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'worse.': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'import': 0.21; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'clever': 0.29; 'code': 0.31; 'could': 0.32; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; 'problem,': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'first': 0.61; 'subject:...': 0.63; '2013': 0.84; 'subject:very': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=enqWTzl9xh1V+HthVuC2N17QAxpB8mpgxN2Xh711jW0=; b=MD+DC68dhyRlAgzK683pRxmUvMxFlPonjfl6vWaxevabyehjfA7ZKFLiP/yOOyBtXS m5zjvg0VFW5xYGK9u9SowU5m9QtjmIrJsK8rwu47Bhk8ZCQdI+8yFS5A4pMEIQTszfla 4T6v1Ajv/ba0dBGIrJV2yYlLWt6wLnJrCOXF1aLI7EqJvnd9/lhFjS5POw0vt+gPAyRM f3Af9AZ2Vlj3Q2bPb5DHIizg/Sm0bTnx2gCEs48BHkWdrO3gPhz9e5e6acRqFDaQt5RW 5RylYX82hq1kECjT2O1SV8qFhFC+ySh/ouiLL732ZvuuqKzqXqqzaPJ8R8vqqFLw2cm0 A0qQ== MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 1 Jan 2013 22:13:59 +1100 Subject: Re: pygame - importing GL - very bad... From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357038843 news.xs4all.nl 6890 [2001:888:2000:d::a6]:42134 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35883 On Tue, Jan 1, 2013 at 10:00 PM, someone wrote: > See this code (understand why I commented out first line): > > # from OpenGL.GL import * > from OpenGL.GL import glEnable, GL_DEPTH_TEST, \ > glShadeModel, GL_SMOOTH, glClearColor, \ > GL_CULL_FACE, GL_BLEND, glBlendFunc, \ > GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, \ > glClear, GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, \ > glLoadIdentity, glTranslate, glRotate, \ > glMultMatrixf, glPushMatrix, glCallList, \ > glPopMatrix, glDisable, GL_LIGHTING > > Any good / clever solution to this problem, so I avoid this nasty crappy > work-around? You could simply import OpenGL.GL as GL and then use all those names as GL.glPopMatrix, GL.GL_LIGHTING, etc. I don't know if that's better or worse. ChrisA