Changeset 161 for trunk/src/gl
- Timestamp:
- 07/15/13 02:48:06 (12 years ago)
- Location:
- trunk/src/gl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r153 r161 44 44 SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 8 ); 45 45 SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 8 ); 46 SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16);46 SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 24 ); 47 47 SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); 48 49 SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 ); 50 SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, 4 ); 51 48 52 } 49 53 -
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.