OpenGL SuperBible 6th Edition, sb6.h header file missing

I recently started learning OpenGL and; in turn, began to read OpenGL SuperBible 6th edition, which uses OpenGL 4.3.

My problem is the sb6.h header file, because the book said it was a C ++ header file that defines a namespace called sb6 that includes an application class declaration.

When I try to compile my program, my C ++ IDE (Visual Studio 2010) throws an error message indicating that such a header file was not found.

So, perhaps one of you has heard about this problem, and also started reading this book and knows how to fix this problem; if so answer.

#include "sb6.h"

//derive my_application from sb6:application

class my_application : public sb6.application
{
public : 

   //Rendering function
   void render(double currentTime){

   //Simply clear the window red
   static const GLfloat red[] = {1.0f , 0.0f , 0.0f , 1.0f};

  glClearBufferfv(GL_COLOR, 0 , red) ; 
}
+4
1

sb6.h, , : https://github.com/openglsuperbible/sb6code/blob/master/include/sb6.h / , . /, , , include libs lib .., .

, dir ( , gl, ) , .

:

, .., :

sb6, (, c:\sb6\) Property Pages -> VC++ Directories -> Include Directories c:\sb6\include\ header files : Property Pages -> VC++ Directories -> Library Directories : lib files , , : Property Pages -> VC++ Directories -> Source Directories  : source files

LNK2019: _main, ___ tmainCRTStartup

(.. Windows, Windows). , :

Project -> Properties -> Configuration Properties -> Linker -> System Subsystem Console

: Change subsystem to console

, , .

+9

All Articles