PyOpenGL -- Scrollbars?

mamcguire at my-dejanews.com mamcguire at my-dejanews.com
Fri Apr 23 12:58:56 EDT 1999


Hi All..

New to OpenGL so please bear with me.  I'm trying to create an OpenGL port
in my application to display images--only way to show more than 256 colors
here on our SGIs.  I've been having some difficulties:

1.) Any way to scroll via. scrollbars the OpenGL port? (like attaching
    to a canvas but that didn't seem to do the trick)

2.) My Images are always offset about 25% up and left using this code:
    glLoadIdentity()
    gluOrtho2d(0,portWidth,0,portHeight)
    glRasterPos2i(0,0)
    glDrawPixels(imWid,imHeight, GL_RGBA, GL_UNSIGNED_BYTE, im)

At least I can see the image, but I don't understand where the offset is
coming in.  I've looked for a simple "DisplayImage" demo but haven't found
one.

Thanks in advance!

Mark A. McGuire
mcguire at rhythm.com
Rhythm & Hues Studios, Inc.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




More information about the Python-list mailing list