gelato - nvidia and python

Benjamin Kaplan benjamin.kaplan at case.edu
Sun Jun 29 17:42:33 CEST 2008


On Sun, Jun 29, 2008 at 11:34 AM, catalinfest at gmail.com <
catalinfest at gmail.com> wrote:

> Did somebody worked with gelato from nvidia and python?
> I have some C cod from books nvidia .
> This is :
> "
> GelatoAPI *r = GelatoAPI::CreateRenderer();
> r->Camera ("main");
> ... API calls through r ...
> r->Render ("main");
> delete r;   // Finished with this renderer
> "
> the code for python i create is only this :
> "
> python
> Python 2.5.2 (r252:60911, May 28 2008, 08:35:32)
> [GCC 4.2.4 (Debian 4.2.4-1)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import gelato
> >>> from gelato import *
> >>> r=gelato.CreateRenderer
> >>> print r
> <built-in function CreateRenderer>
> >>> dir(r)
> ['__call__', '__class__', '__cmp__', '__delattr__', '__doc__',
> '__getattribute__', '__hash__', '__init__', '__module__', '__name__',
> '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__self__',
> '__setattr__', '__str__']
> "
> And I blocked here...
> Thank you .
> --


You are looking at the function CreateRenderer, not the Renderer object. Try
doing this:

>>> import gelato
>>> r = gelato.CreateRenderer*()*
>>> dir(r)

>
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080629/a83dd185/attachment.html>


More information about the Python-list mailing list