freetype-gl fork placed on github

64 views
Skip to first unread message

Pj O Halloran

unread,
Jul 23, 2013, 7:06:36 PM7/23/13
to freet...@googlegroups.com
Hi Nicolas,

Awesome project.  Just like to thank you and all the contributers for your work on this project to date, first of all.

I just converted this project to git and uploaded it to my github account at https://github.com/pjohalloran/freetype-gl using the svn to git instructions at this address http://john.albin.net/git/convert-subversion-to-git.
It has all the branches from the svn repo and all the commit history as far as I can tell.

Why did I do this you might ask?  I am trying to get this fantastic project working on the core GL profile in a personal project of mine and I am having some trouble and may have to make some changes to a personal version of the codebase that probably wouldn't be good to put into the main branch here as they might break things in the compatibility profile or might just be plain dumb.  I prefer git over svn is just why I converted it.  I hope this is okay with you.  If not let me know.

Maybe we could discuss the changes I am planning on making to see if they make sense to contribute back to your main development branch?

Thanks,
PJ

Pj O Halloran

unread,
Jul 24, 2013, 8:42:04 AM7/24/13
to freet...@googlegroups.com
I had some problems with GL_INVALID errors from 'glEnableVertexAttribArray' and 'glVertexAttribPointer' when setting attributes a vertex buffer on OpenGL 3.2 core profile on Mac OSX and using vertex array objects fixed the issue.  So to fix the issue if the vertex array object extension is available, it is used in vertex-buffer.c.

Here is the diff if you would like to incorporate it into the main branch here:

Nicolas Rougier

unread,
Jul 29, 2013, 2:53:39 AM7/29/13
to freet...@googlegroups.com

Hi PJ,

Many thanks for the git conversion and the pointer. I had envisaged such conversion after the gl-3.0 branch but never found the time to do it.
I will look into the svn-to-git stuff and put a repository on github (this week I hope). I think it will be easier for everyone to collaborate with pull requests.

Concerning the vertex buffer/vertex array, are there any fundamental differences between the two of them (apart the fact than one is core and not the other) ?


Nicolas
> --
> You received this message because you are subscribed to the Google Groups "freetype-gl" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to freetype-gl...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Pj O Halloran

unread,
Jul 29, 2013, 7:07:39 AM7/29/13
to freet...@googlegroups.com
Hi Nicolas,

On OpenGL core, vertex array objects need to be allocated and bound or you can't set vertex attributes.  Anybody please correct me if I am wrong as I am by no means a GL expert, but I believe they save vertex buffer state and when they are rebound they restore the vertex buffer state.  There are no major changes in that respect to vertex_buffer.h/.c.  In that diff included earlier, if glew reports that vertex array objects are available then the code now allocates one and binds one pre render and unbinds it post render.  On compatibility profiles It won't be available I think, only on core and OpenGL ES.
By the way, I love the string input idea to setup up vertex attributes automatically in vertex_buffer.  Awesome!  Makes the code so much cleaner.

It would be nice if the project was also officially up on something like github.  I see it is unofficially up there by a few people including myself.  It would be cool to more easily contribute.  

By the way I have added support for loading truetype fonts from a memory buffer to freetype-gl as well on that fork on github if you are interested.

PJ



You received this message because you are subscribed to a topic in the Google Groups "freetype-gl" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/freetype-gl/T7ipE7GlY98/unsubscribe.
To unsubscribe from this group and all its topics, send an email to freetype-gl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages