----- Original Message ----- From: "Dan Partelly" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 04, 2004 3:04 PM Subject: Re: [hlcoders] getting OpenGl library handle
> Sorry, to get the entry point of the extensions, of for that matter, of 1.1 > OpenGl API's > you need handles. > > > ----- Original Message ----- > From: "InternetNightmare" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, July 04, 2004 3:57 PM > Subject: RE: [hlcoders] getting OpenGl library handle > > > > >Hello all, > > > > > > Is it possible to obtain handle of OpenGL library > > >which is loaded > > > with Half-Life? I know both C++ and Delphi, but I > > >use first one > > > rarely that is why some basic things are still > > >mystery for me - for > > > example I don't understand how adding static OpenGl > > >library to > > > client.dll makes opengl functions to work correctly > > >- gl.h doesn't > > > contain any code related to library handling, while > > >Delphi header > > > contains. > > > > > > What I want to do - I have Delphi header file which > > >loads all OpenGl > > > functions using library handle - I just call > > >function > > > GetOpenGlCoreProcAdresses(hDLL: THandle) with the > > >library handle and > > >it loads all > > > functions this way: > > > > > > @glAccum := GetProcAddress(hDLL, 'glAccum'); > > > ... > > > > > > What I want to do is to get handle of Half-Life's > > >instance of OpenGL > > > library and pass it to my Delphi .dll to init > > OpenGL >in it. > > > > > > > > >Best regards, > > > Slava > > > > Hi! > > > > You don't need any handles. It's not DirectX with > > lots of handle stuff. Once OpenGL is loaded (by HL) > > you can draw anytime and anything you want. > > Good link to start: http://nehe.gamedev.net/ > > Have fun! > > > > InternetNightmare > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - 50x more storage than other providers! > > http://promotions.yahoo.com/new_mail > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > Hmm, I have checked my old opengl projects, and found this: e_wglSwapIntervalEXT = (PFNWGLEXTSWAPCONTROLPROC) wglGetProcAddress("wglSwapIntervalEXT"); I don't see any need for handles here. Please correct me if I am wrong PM _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders