Re: [info-performer] Windows Dev

Date view Thread view Subject view Author view

pww1++at++dcs.qmul.ac.uk
Date: 06/19/2003 00:30:57


Allan, other Performers

I've built and registered a open GL window as a performer

The code is something like this

a) (create window handle) ... hWnd=CreateWindowEx(....)
b) set up PIXELFORMATDESCRIPTOR data
c) get device context, rendering context, set on window
d) (associate context's with window) ..wglMakeCurrent(hDC,hRC)
Essentially create an win32 openGL rendering window
e) initialize off performer....
pfInit();pfConfig();
        pfPipe *pipe= pfGetPipe(0);
        pfChannel *pcam0 = new pfChannel(pipe);
        pfPipeWindow *pwin0 = new pfPipeWindow(pipe);
        pwin0->setOriginSize(0,0,
                                                windowRect.right - windowRect.left,
                                                windowRect.bottom - windowRect.top);
        pwin0->setGLCxt(win32Data->hRC);
        pwin0->setWinType(PFPWIN_TYPE_UNMANAGED);
        pwin0->setFBConfig(win32Data->PixelFormat);
        pwin0->setWSDrawable(win32Data->hInst,win32Data->hWnd);
        pwin0->open();

WGL Message:System Error: (13):wglGetPixelFormatAttribARB:
WGLERR_INVALID_DATA
WGL Message:System Error: (13):wglGetPixelFormatAttribARB:
WGLERR_INVALID_DATA
WGL Message:System Error: (13):wglGetPixelFormatAttribARB:
WGLERR_INVALID_DATA

> Hi Ron,
>
> rbuchan++at++bgnet.bgsu.edu wrote:
>> We are setting up a system on Windows with Performer. Any
>> recommendations on a compiler, (VC++ 6 or .Net, Borland, CodeWarrior)?
>
> On Windows we use VC++ 6.
>
> Though I'm curious also. Anyone out there using .Net, Borland's
> compilers, etc? Any tricks or gotchas? (Or tried & failed?)
>
> Allan
> --
> Allan Schaffer allan++at++sgi.com
> Engr. Manager, Core Rendering 1-650-933-2160
> Silicon Graphics http://www.sgi.com
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
>


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jun 19 2003 - 00:32:33 PDT