Newb to both Python and OpenGL, so this may be a trivial question.

I have C sample code which looks like:

void GlDrawCrossHair(KFbxXMatrix& pGlobalPosition)
{
    glColor3f(1.0, 1.0, 1.0);
    glLineWidth(1.0);

    glPushMatrix();
    glMultMatrixd((double*) pGlobalPosition);
...

but when I try to write, in Python:

def DrawCrosshair(pGlobalPosition):
    glColor3f(1.0,1.0,1.0)
    glLineWidth(1.0)

    glPushMatrix()
    glMultMatrixd(pGlobalPosition)


I get:

... 
File "C:/Users/Mark/Documents/Projects/MICA/MicaPython/Mica.py", line 141, in DrawCrosshair
    glMultMatrixd(pGlobalPosition)
  File "C:\Python26\lib\site-packages\OpenGL\latebind.py", line 45, in __call__
    return self._finalCall( *args, **named )
  File "C:\Python26\lib\site-packages\OpenGL\wrapper.py", line 569, in wrapperCall
    pyArgs = tuple( calculate_pyArgs( args ))
  File "C:\Python26\lib\site-packages\OpenGL\wrapper.py", line 354, in calculate_pyArgs
    yield converter(args[index], self, args)
  File "C:\Python26\lib\site-packages\OpenGL\arrays\arrayhelpers.py", line 110, in asArraySize
    handler = typ.getHandler( incoming )
  File "C:\Python26\lib\site-packages\OpenGL\arrays\arraydatatype.py", line 52, in __call__
    typ, repr(value)[:50]
TypeError: ("No array-type handler for type <class 'fbx.KFbxXMatrix'> (value: <fbx.KFbxXMatrix object at 0x0000000003AE01C8>) registered", <function asArraySize at 0x00000000035C5CF8>)
GLUT Display callback <function display at 0x0000000003954CF8> with (),{} failed: returning None ("No array-type handler for type <class 'fbx.KFbxXMatrix'> (value: <fbx.KFbxXMatrix object at 0x0000000003AE01C8>) registered", <function asArraySize at 0x00000000035C5CF8>)


This must be a simple operation but I cannot find any examples to go by.

I'm running on Windows Vista, Python 2.6.6, and PyOpenGl 3.0.1.


Thanks in advance,


Mark