Changeset 161 for trunk/src/gl/gl_program.cc
- Timestamp:
- 07/15/13 02:48:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_program.cc
r121 r161 105 105 if (!vertex_shader.compile( vertex_program )) { return false; } 106 106 if (!fragment_shader.compile( fragment_program )) { return false; } 107 108 glBindAttribLocation( m_name.get_value(), static_cast<GLuint>( slot::POSITION ), "nv_position" ); 109 glBindAttribLocation( m_name.get_value(), static_cast<GLuint>( slot::TEXCOORD ), "nv_texcoord" ); 110 glBindAttribLocation( m_name.get_value(), static_cast<GLuint>( slot::NORMAL ), "nv_normal" ); 111 glBindAttribLocation( m_name.get_value(), static_cast<GLuint>( slot::COLOR ), "nv_color" ); 112 glBindAttribLocation( m_name.get_value(), static_cast<GLuint>( slot::TANGENT ), "nv_tangent" ); 107 113 108 114 glAttachShader( m_name.get_value(), fragment_shader.get_id() );
Note: See TracChangeset
for help on using the changeset viewer.