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

Are there plans to move to glfw3? #1

Open
dangets opened this issue Nov 4, 2013 · 7 comments
Open

Are there plans to move to glfw3? #1

dangets opened this issue Nov 4, 2013 · 7 comments

Comments

@dangets
Copy link

dangets commented Nov 4, 2013

glfw3 changes quite a few of the api calls, but seems like they are moving away from the 2.x versions. Is there any development towards this? I don't mind forking and starting it, but just didn't want to overlap any current development.

Thanks!
Danny G

@dangets
Copy link
Author

dangets commented Nov 4, 2013

Well, being bored, I modified the sb6.h header to use glfw3 on a branch. The code is in https://github.com/dangets/sb6code/tree/glfw3 if you're interested. note I did just the most basic porting - and no testing besides everything compiling and seeing the 'simple' examples work.

@grahamsellers
Copy link
Contributor

Hi Danny,

I hadn't planned to make any more major changes to the framework code. I
was aware that GLFW3 was released, even before the book shipped. However,
this application framework is really simple and isn't really using much of
the functionality of GLFW beyond opening the window and looking at key
presses. I didn't see an advantage to changing the version and pushing out
a new drop (along with all the testing that's required to say this is
good). I'll take a look at your branch and maybe integrate it. Thanks for
putting the effort in. I'm going to continue with GLFW for the next edition
(which isn't even being planned yet), and I'll certainly grab the most
recent edition when I put together the first few samples for that book.

Cheers,

Graham

On Mon, Nov 4, 2013 at 4:54 PM, Danny George [email protected]:

Well, being bored, I modified the sb6.h header to use glfw3 on a branch.
The code is in https://github.com/dangets/sb6code/tree/glfw3 if you're
interested. note I did just the most basic porting - and no testing
besides everything compiling and seeing the 'simple' examples work.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-27726524
.

@jeremyong
Copy link

My 2 cents. If you don't plan on upgrading the GLFW version the code expects, include it as a submodule and link to it locally. People who develop with GLFW or have GLFW installed as a dependency on their system have to go out of their way to build this code.

@jeremyong
Copy link

I see that it's in the extern folder now. It'd be nice if cmake built it and linked to it.

@gustavonmartins
Copy link

Hello dangets. I hope you are still here with us :)

I just bought the book and I am having problems to compile since the first example... This is quite disappointing.

But anyway... I opened your modified sb6 file and I cant get it to compile. I get the error at line235 of your code: 'OutputDebugStringA' was not declared in this scope

I dont know how to fix it and I just opened a github account to inform you of that. It would be great if you could update your file to work :)

Just for your information,I am running windows 8.1 64 bits using codeblocks svn 10376 and GCC 5.2.0 that I got from msys2 (folder msys64/mingw64)

Thanks for your time!

Gustavo

@dangets
Copy link
Author

dangets commented Nov 11, 2015

Ha, I'm still here, but yeah this seems like it was ages ago. I'll see if I can spend some time on it in the near future. I'm running on Linux, but hopefully it wouldn't be too difficult to tweak any further issues to get it working on Windows.

@sangwoo108
Copy link

As of now, I couldn't build examples on Windows as it is. So I roughly made a fix to use GLFW3. It's messy but I hope someone who studies this book can benefit from the fix.

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

5 participants