[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Alternate to graphics modules



On Thu, Feb 7, 2013 at 5:29 PM, Greg Ewing <greg.ewing@xxxxxxxxxxxxxxxx> wrote:
Ian Mallett wrote:
At some level, you need to interface with the graphics drivers. Since Python is an abstraction layer over C, this means either writing in C (not Python), or using a package that does that for you.

Not necessarily -- you can use ctypes to wrap a C library.
Yes. In this case, you're creating your own package.

The point is that you need to go through some kind of middle layer. Python code, by definition, does not interface directly with anything--you must go through some library/package--whether it is a built-in within Python's runtime, a 3rd-party distribution, or a wrapper you make around existing C functionality.

Ian