create info buffer
authorhgn <hgodden00@gmail.com>
Wed, 3 Nov 2021 18:13:46 +0000 (18:13 +0000)
committerhgn <hgodden00@gmail.com>
Wed, 3 Nov 2021 18:13:46 +0000 (18:13 +0000)
fishladder.c

index 7c243bb2a6adccf282b94cf12f513c738d4b0c4d..1bc0d5cf02591af208d25bb2cb997cadba0fc6ff 100644 (file)
@@ -190,6 +190,8 @@ struct world
        
        struct mesh tile, circle;
        
+       GLuint background_data;
+       
        int selected, tile_x, tile_y;
        v2f tile_pos;
        
@@ -403,6 +405,12 @@ void vg_start(void)
                init_mesh( &world.circle, circle_mesh, vg_list_size( circle_mesh ) );
        }
        
+       // Create info data texture
+       glGenTextures( &world.background_data );
+       glBindTexture( GL_TEXTURE_2D, texture_name );
+       glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, 64, 64, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL );
+       vg_tex2d_nearest();
+       
        resource_load_main();
        
        map_load( level_pack[ 0 ] );