Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opengl3 example? #34

Open
starseeker opened this issue Aug 8, 2017 · 9 comments
Open

opengl3 example? #34

starseeker opened this issue Aug 8, 2017 · 9 comments

Comments

@starseeker
Copy link

Is there any chance someone could either add an OpenGL 3 version of the example application or tweak the existing one to work with the new header? A naive substitution doesn't appear to produce a working test, unless I'm missing something...

@behrisch
Copy link

behrisch commented May 31, 2019

I experienced the same. After replacing the glfontstash.h with gl3corefontstash.h no text appears. I am using glew 2.1.0 to access the GL extensions, if that matters. @starseeker Did you find a solution?

@bruenor41
Copy link

Hi, did you succeed with gl3 version please?

@behrisch
Copy link

@bruenor41 No, I did not.

@Nairou
Copy link

Nairou commented Oct 15, 2019 via email

@bruenor41
Copy link

bruenor41 commented Oct 15, 2019

I use nanovg in my application too, but i face problem with matrix. Nanovg uses own matrix and has no way accept my transformed matrix. I draw text wih nanovg, but i must handle it's transformations in special way. That's why I need cut it from nanovg, i tried it, but it is hard for me

@mindoff6502
Copy link

mindoff6502 commented Mar 1, 2020

Hi,everyone,luckily I found a GL3 example with SDL 2.0.7,maybe more people could use it.
https://github.com/suikki/sdf_text_sample

@bruenor41
Copy link

bruenor41 commented Mar 2, 2020 via email

@mindoff6502
Copy link

mindoff6502 commented Mar 27, 2020

Hey,I just want to say I success to use that GL3 example with glfw and glew on my GL3.3 project under Windows Platform,quite good.

Anyone who knows opengl 3 could adapt to any GL3 project,SDL or glfw or any other opengl framework lib.
It totally works.

And with this example I think it won't be hard to port to DX or any other API.

@zblcm
Copy link

zblcm commented Apr 8, 2023

Looks like the master branch is missing GLSL shader now. You need to write your own.

The author made another PR which contains shader but it is not merged:
https://github.com/memononen/fontstash/pull/23/files
I did't compile it, but it has a good shader to reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants