On 13 March 2012 14:02, Jose Fonseca <span dir="ltr"><<a href="mailto:jfonseca@vmware.com">jfonseca@vmware.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">----- Original Message -----<br>
> Today I am trying to get a Windows machine running so I can figure<br>
> out what's necessary to make piglit-dispatch work on Windows. After<br>
> I've finished that, I'll try to solve the CMake dependency problems<br>
> I was having, and let y'all know what I discover.<br>
<br>
</div>Windows is easy in general: just call wglGetProcAddress(procName). The only thing to watch out is:<br>
- don't call wglGetProcAddress for the standard entrypoints (Opengl 1.1, 1.2, 1.3 + multi_textures) -- just call GetProcAddress(LoadLibraryA("OPENGL32"), procName) if you need to call programatically.<br>
- make sure you have a bound context when calling wglGetProcAddress()<br>
- make sure all prototypes have APIENTRY<br>
<br>
MacOSX is also easy, just call dlsym(RTLD_DEFAULT, procName).<br>
<br>
Any issue send me an email.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jose<br>
</font></span></blockquote></div><br>Thanks, Jose. That's exactly the sort of information I needed.<br>