behdad / glyphy

GLyphy is a signed-distance-field (SDF) text renderer using OpenGL ES2 shading language.
Other
663 stars 76 forks source link

Overlaps and anisotropic filtering #22

Open izzyreal opened 7 years ago

izzyreal commented 7 years ago

Hi,

Here's my pull request :) See https://www.sendspace.com/file/9zzaac for my take on glyphy-anisotropic.

I couldn't figure out how auto-generation of shader header files was done, so I hard copied those. I also created a little CMakeList.txt.

Build instructions for Visual Studio (I used 2015 Community):

Regards, Izmael

ebraminio commented 7 years ago

This is how you can compile this on a Windows machine: https://github.com/behdad/glyphy/blob/master/appveyor.yml simply, installing vcpkg and glew, freetype and freeglut upon it.

Also this is where glsl to header file conversion is happening: https://github.com/behdad/glyphy/blob/master/win32/glyphy.vcxproj#L86 , before builds.

ebraminio commented 7 years ago

BTW, thanks for the contribution, perhaps Behdad will look into this and merge it later but I like to suggest doing squash for this to make it more clear and readable. Thanks!