From: mamcguire at my-dejanews.com (mamcguire at my-dejanews.com)
Date: Fri, 23 Apr 1999 16:58:56 GMT
Subject: PyOpenGL -- Scrollbars?
Message-ID: <7fq8se$5ti$1@nnrp1.dejanews.com>
X-UID: 641                                                  

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    




