Home > Software engineering >  <opengl programming guide> the first example, finally able to compile, but less tips in the op
<opengl programming guide> the first example, finally able to compile, but less tips in the op

Time:11-03

 ShaderInfo shaders []={
{GL_VERTEX_SHADER, "triangles. Vert"},
{GL_FRAGMENT_SHADER, "triangles. Frag"},
{GL_NONE, NULL}
};
GLuint program=LoadShaders (shaders);


To run here, suggesting less "triangles. Vert" this file, I don't know this file should be opengl, or something in the book.

CodePudding user response:

The file you are not sure don't come, to look again

CodePudding user response:

reference 1st floor wangyaninglm response:
you are not sure this file doesn't come, then look for

Everything search search less than, can write their own?

CodePudding user response:

refer to the second floor Jenf_Mu response:
Quote: refer to 1st floor wangyaninglm response:

The file you are not sure don't come, then look for

Everything search search less than, can write their own?

This I don't know, look forward to Daniel,,,

CodePudding user response:

The original poster is written in MFC OpenGL code or the SDK inside?

CodePudding user response:

This is a book, this is the shader file, have corresponding code at the back of the book,
PS: I think the problem is you know you should be a novice, if you what all is not very good, you can look at the bible version 7 or have a look at the OpenGL programming, the source of some of the book is a problem, not very suitable for novice,

CodePudding user response:

CodePudding user response:

Search online tutorial "learning OpenGL 3 d games",
  • Related