<div dir="ltr">Thank you.<div>I think there should be a way to calculate the size of the memory location pointed by that pointer.</div><div>For cases where there is no shared memory between the client and the server, the memory contents should be copied back and forth, which means the size of the pointer should be known (unless I'm missing something).</div><div><br></div><div>Thanks, </div><div>  Shervin</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 10, 2015 at 11:44 AM, Matt Turner <span dir="ltr"><<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Jun 10, 2015 at 11:25 AM, Shervin Sharifi <<a href="mailto:shervin0@gmail.com">shervin0@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
>  This may not be the right forum to ask this, but I didn't know of a better<br>
> forum, so I thought I can ask here.<br>
><br>
>  I'm new to OpenGL. I am looking at XML registry for OpenGL and there are<br>
> some parameters with attributes containing a function COMPSIZE (I've pasted<br>
> an example below).<br>
>  I tried to find information on what the COMPSIZE function is, where/how it<br>
> is used, etc, but couldn't find documentation or credible information on the<br>
> Internet.<br>
>  Any information or pointer to that would be really helpful.<br>
><br>
>  Thanks,<br>
>     Shervin<br>
><br>
><br>
><br>
> This example is from gl.xml in the OpenGL registry:<br>
><br>
>         <command><br>
>             <proto>void <name>glBinormalPointerEXT</name></proto><br>
>             <param group="BinormalPointerTypeEXT"><ptype>GLenum</ptype><br>
> <name>type</name></param><br>
>             <param><ptype>GLsizei</ptype> <name>stride</name></param><br>
>             <param len="COMPSIZE(type,stride)">const void<br>
> *<name>pointer</name></param><br>
>         </command><br>
<br>
</div></div>I'm just speculating, but I don't think there's really a definition of<br>
COMPSIZE or anything. I think it's just a way of saying that, for<br>
instance, the size of the memory pointed by the "pointer" parameter to<br>
glBinormalPointerEXT is a function of the "type" and "stride"<br>
parameters.<br>
<br>
Other functions, like glBitmap have similar things:<br>
<br>
            <param len="COMPSIZE(width,height)">const<br>
<ptype>GLubyte</ptype> *<name>bitmap</name></param><br>
<br>
That is, the size of the block of memory pointed to by "bitmap" is<br>
described by the "width" and "height" parameters.<br>
</blockquote></div><br></div>