<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 13, 2013 at 1:15 PM, Florent Monnier <span dir="ltr"><<a href="mailto:monnier.florent@gmail.com" target="_blank">monnier.florent@gmail.com</a>></span> wrote:</div>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Also I've tried to use VBO with GLCaml, from a working vbo/hello-world<br>
from glmlite i've tried to rewrite it for glcaml, but I was unable to<br>
make it work. Does someone know if it's possible to use VBO's with<br>
GLCaml?<br></blockquote><div><br></div><div style>Buffer objects don't work with the current (many years old) version of</div><div style>glcaml. One small change is needed to several functions: supporting</div><div style>
an integer value as well as string/bigarray. For example, glVertexPointer</div><div style>needs to be capable of accepting an integer "buffer object name".</div><div style><br></div><div style>In response to this mailing-list starting, and apparent interest in OpenGL</div>
<div style>with OCaml, I looked into the current state of things yesterday. Not much</div><div style>has changed... except you (Florent) have gotten a patch into LablGL for</div><div style>shader support -- hooray! And I also found someone else has added</div>
<div style>changes to glcaml/sdlcaml and posted them here:</div><div style><br></div><div style> <a href="https://github.com/crackleware/glcaml">https://github.com/crackleware/glcaml</a></div><div style><br></div><div style>
A quick check shows that version has similar changes to what I've done</div><div style>locally, but it seems they changed the autogeneration program to make</div><div style>those changes, which is better. They also use glew, which appears to</div>
<div style>simplify the interface (removing the explicit function-memoization</div><div style>throughout glcaml_stub.c, but I don't know if there is any speed/space</div><div style>tradeoffs -- I'm not familiar with glew).</div>
<div style><br></div><div style>Anyway, it looks like that version of glcaml should let you use buffer</div><div style>objects.</div><div style><br></div></div></div></div>