Lines Matching defs:program
2 // Heightmap example program using OpenGL 3 core profile
112 * the shader program. They should not be used before creating
113 * the program.
149 /* Creates a program object using the specified vertex and fragment text
153 GLuint program = 0u;
166 /* make the program that connect the two shader and link it */
167 program = glCreateProgram();
168 if (program != 0u)
171 glAttachShader(program, vertex_shader);
172 glAttachShader(program, fragment_shader);
173 glLinkProgram(program);
174 glGetProgramiv(program, GL_LINK_STATUS, &program_ok);
178 fprintf(stderr, "ERROR, failed to link shader program\n");
179 glGetProgramInfoLog(program, 8192, &log_length, info_log);
181 glDeleteProgram(program);
184 program = 0u;
198 return program;
341 * the specified program object
343 static void make_mesh(GLuint program)
355 attrloc = glGetAttribLocation(program, "x");
361 attrloc = glGetAttribLocation(program, "z");
367 attrloc = glGetAttribLocation(program, "y");
390 /* Exit program on Escape */