-void vg_start(void)
-{
- SHADER_INIT( colour_shader );
-
- glGenVertexArrays( 1, &tile_vao );
- glGenBuffers( 1, &tile_vbo );
-
- float quad_mesh[] =
- {
- 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f,
- 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f
- };
-
- glBindVertexArray( tile_vao );
- glBindBuffer( GL_ARRAY_BUFFER, tile_vbo );
- glBufferData
- (
- GL_ARRAY_BUFFER,
- sizeof( quad_mesh ),
- quad_mesh,
- GL_STATIC_DRAW
- );
-
- glVertexAttribPointer( 0, 2, GL_FLOAT, GL_FALSE, 2 * sizeof(float), (void*)0 );
- glEnableVertexAttribArray( 0 );
-
- VG_CHECK_GL();
-
- map.tile_texture = vg_tex2d_rgba( "textures/rivertiles_flowm.tga" );
- map.flow_texture = vg_tex2d_rgba( "textures/rivertiles_ripple.tga" );
-
- map_load
- (
- "#####-#####;aa\n"
- "# #;\n"
- "# #;\n"
- "# -;bb\n"
- "# #;\n"
- "# #;\n"
- "#####+#####;abab\n"
- );
-}
-
-void vg_free(void)
-{
- map_free();
-
- glDeleteTextures( 1, &map.tile_texture );
- glDeleteTextures( 1, &map.flow_texture );
-}
-
-void vg_ui(void)
-{
-
-}