I recently bought the new redbook 8th and it is really good so far. I also know its not done yet but their website is now down since 2 weeks and I am not able to get the sample code.
Its a little bit annoying because they use their own libraries in the samples. like loadshaders();
I mean it’s not a huge problem but it would definitely help to have to sample code.
Do you have any idea if there is another place where I can get those sample files?
I think the helper library that they use are only for loading shaders. They probably just didn’t want to overcomplicate the hello world programm. Shaders will be introduced in unit 2.
I just can’t tell you if it is good or bad because I only read the first 2 chapters.
But my first impression is that the book has a good structure.
Also it got it for ~$45 and it is the rough cuts edition obviously. But you always have access to the newest edition online. Also the downloadable pdf version is really really bad formatted, you better read it online.
kantaki, I also registered with Safari Online. It’s a decent book so far. The best resource I’ve found yet. Everything on the web is either outdated, or not well explained.
Check back in a few days or private message me your e-mail. Based on the section “Compiling Shaders” under Chapter 2, I think I can create a LoadShaders.h that simulates the author’s version. All those functions you see in the Compiling Shaders section is basically, I believe, the LoadShaders.h file. When I get it working I’ll e-mail you a copy of my version of the LoadShaders.h and LoadShaders.cpp file. I’ll also post a comment at SafariOnline for that book.
Anyways, I was able to make my own LoadShaders.h and it works! Just like in the book, I was able to get the triangles colored blue.
You can download the code here: LoadShader