By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,928 Members | 1,810 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,928 IT Pros & Developers. It's quick & easy.

gelato - nvidia and python

P: n/a
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 .
Jun 29 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Jun 29, 5:34*pm, "catalinf...@gmail.com" <catalinf...@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 .
Maybe you should execute the CreateRenderer, like
r=gelato.CreateRenderer()
dir(r)

I don't have gelato but it might work..
Jun 29 '08 #2

P: n/a
On 29 Jun, 17:34, "catalinf...@gmail.com" <catalinf...@gmail.com>
wrote:
>
>dir(r)

['__call__', '__class__', '__cmp__', '__delattr__', '__doc__',
'__getattribute__', '__hash__', '__init__', '__module__', '__name__',
'__new__', '__reduce__', '__reduce_ex__', '__repr__', '__self__',
'__setattr__', '__str__']
What about asking for help on r?
>>help(r)
Beyond that, you'd want to look at any published API documentation or
even the source code for the module, which I'd imagine is C or C++ in
this case.

Paul
Jun 29 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.