Re: gelato - nvidia and python



On Jun 29, 5:34 pm, "catalinf...@xxxxxxxxx" <catalinf...@xxxxxxxxx>
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..
.



Relevant Pages

  • Re: Accessors in Python (getters and setters)
    ... used it in 27000 lines of Python code (which certainly took some time to ... Naming attributes and naming methods are entirely different ... operator only to callables, but this doesn't make such a difference ... But it's *your* responsability to choose good names for the API.> ...
    (comp.lang.python)
  • Re: zlib interface semi-broken
    ... implement one-shot de/compression of strings. ... functions that do one-shot compression and decompression. ... That file interface could form a third API, ... conform to what python expects of files. ...
    (comp.lang.python)
  • Re: Accessors in Python (getters and setters)
    ... used it in 27000 lines of Python code (which certainly took some time to ... develops might misinterpret exactly what "tmp" does. ... Failing to understand a language semantics ... But it's *your* responsability to choose good names for the API.> ...
    (comp.lang.python)
  • Re: Whats so funny? WAS Re: rotor replacement
    ... I don't disagree about the API. ... AES module (or rather, a generic block cipher module with AES and DES) ... if I want ECC in a Python ...
    (comp.lang.python)
  • Re: OpenGL
    ... It was originally written in pure Python C-extension code, then Tarn rewrote it using SWIG a few years ago. ... OpenGL-ctypes is in the PyOpenGL CVS repository, it's a ctypes re-re-implementation of the same Python API to OpenGL. ... Basically any array type can be registered with handlers that let you tell the system how to do basic operations; get an array's size, shape, data-type, convert to a given data-format, build an "empty" array of a given size, that kind of thing. ...
    (comp.lang.python)