Changeset d0b9596 in opengl-game for new-game.cpp


Ignore:
Timestamp:
Aug 5, 2017, 2:48:13 AM (8 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
93baa0e
Parents:
8b7cfcf
Message:

Specify the attribute locations in the vertex shader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • new-game.cpp

    r8b7cfcf rd0b9596  
    117117   glAttachShader(shader_program, fs);
    118118
    119    // this must be used on OSX instead of using layout() in the shader
    120    glBindAttribLocation(shader_program, 0, "vertex_position");
    121    glBindAttribLocation(shader_program, 1, "vertex_color");
    122 
    123119   glLinkProgram(shader_program);
    124120
Note: See TracChangeset for help on using the changeset viewer.