I've got the texture manager running. There is one issue to be fixed(before check in). It looks like I am deleting the textures at the wrong place:
Code:
"Texture ID deletion (../vdrift-data/tracks/rouen/objects/road1a.bmp.png)"
PS: Some debug output(loading ruudskogen
). One object reference is kept in the manager.
Code:
Texture manager debug print:
References: 56 Texture: ../vdrift-data/skins/simple/textures/box.png
References: 2 Texture: ../vdrift-data/skins/simple/textures/timerbox.png
References: 3 Texture: ../vdrift-data/cars/360/textures/wheel_rear.png
References: 2 Texture: ../vdrift-data/cars/360/textures/brake.png
References: 4 Texture: ../vdrift-data/skins/simple/textures/progressbar.png
References: 4 Texture: ../vdrift-data/tracks/ruudskogen/objects/ruudskog.tga.png
References: 24 Texture: ../vdrift-data/tracks/ruudskogen/objects/road03.jpg.png
References: 59 Texture: ../vdrift-data/skins/simple/textures/widgets/controls/key_sel.png
References: 2 Texture: ../vdrift-data/textures/hud/cardot0_focused.png
References: 2 Texture: ../vdrift-data/tracks/ruudskogen/objects/lave01.bmp.png
References: 2 Texture: ../vdrift-data/textures/smoke/particle1.png
References: 21 Texture: ../vdrift-data/skins/simple/textures/widgets/sld_cursor.png
References: 3 Texture: ../vdrift-data/skins/simple/textures/hudbox.png
References: 13 Texture: ../vdrift-data/skins/simple/textures/widgets/controls/mouse.png
References: 12 Texture: ../vdrift-data/tracks/ruudskogen/objects/road01.jpg.png
References: 2 Texture: ../vdrift-data/textures/smoke/particle5.png
References: 42 Texture: ../vdrift-data/skins/simple/textures/widgets/tog_on_up.png
References: 2 Texture: ../vdrift-data/textures/hud/cardot0.png
References: 2 Texture: ../vdrift-data/tracks/ruudskogen/objects/grid02.tga.png
References: 2 Texture: ../vdrift-data/skins/simple/fonts/freesans_noshaders.png
References: 3 Texture: ../vdrift-data/tracks/ruudskogen/objects/grass02.jpg.png
References: 15 Texture: ../vdrift-data/tracks/ruudskogen/objects/auto01.tga.png
References: 23 Texture: ../vdrift-data/tracks/ruudskogen/objects/grass01.jpg.png
References: 2 Texture: ../vdrift-data/tracks/ruudskogen/trackshot.png
References: 37 Texture: ../vdrift-data/skins/simple/textures/widgets/wheel_down_l.png
References: 2 Texture: ../vdrift-data/skins/simple/textures/accdec-marker.png
References: 2 Texture: ../vdrift-data/textures/smoke/particle4.png
References: 2 Texture: ../vdrift-data/cars/360/textures/glass.png
References: 5 Texture: ../vdrift-data/tracks/ruudskogen/objects/sand01.jpg.png
References: 2 Texture: ../vdrift-data/tracks/ruudskogen/objects/hus02.tga.png
References: 2 Texture: ../vdrift-data/skins/simple/textures/loadingbox.png
References: 42 Texture: ../vdrift-data/skins/simple/textures/widgets/tog_on_up_unsel.png
References: 4 Texture: ../vdrift-data/tracks/ruudskogen/objects/dekk01.bmp.png
References: 20 Texture: ../vdrift-data/tracks/ruudskogen/objects/tre06.bmp.png
References: 42 Texture: ../vdrift-data/skins/simple/textures/widgets/tog_off_down.png
References: 2 Texture: ../vdrift-data/textures/smoke/particle3.png
References: 2 Texture: ../vdrift-data/textures/hud/cardot1.png
References: 73 Texture: ../vdrift-data/skins/simple/textures/widgets/wheel_up_l.png
References: 2 Texture: ruudskogen
References: 37 Texture: ../vdrift-data/skins/simple/textures/widgets/wheel_down_r.png
References: 2 Texture: ../vdrift-data/drivers/driver2/textures/body.png
References: 7 Texture: ../vdrift-data/tracks/ruudskogen/objects/gjerde01.tga.png
References: 42 Texture: ../vdrift-data/skins/simple/textures/widgets/tog_off_up_unsel.png
References: 723 Texture: ../vdrift-data/skins/simple/fonts/futuresans_noshaders.png
References: 2 Texture: ../vdrift-data/tracks/ruudskogen/objects/grid01.tga.png
References: 547 Texture: ../vdrift-data/textures/effects/racingline.png
References: 2 Texture: ../vdrift-data/textures/smoke/particle0.png
References: 2 Texture: ../vdrift-data/drivers/driver2/textures/body-misc1.png
References: 3 Texture: ../vdrift-data/tracks/ruudskogen/objects/kollisjon02.dof-00.png
References: 42 Texture: ../vdrift-data/skins/simple/textures/widgets/tog_off_up.png
References: 2 Texture: ../vdrift-data/textures/smoke/particle2.png
References: 2 Texture: ../vdrift-data/tracks/ruudskogen/objects/lave02.bmp.png
References: 18 Texture: ../vdrift-data/tracks/ruudskogen/objects/Tre10.bmp.png
References: 2 Texture: ../vdrift-data/skins/simple/textures/ball2.png
References: 86 Texture: ../vdrift-data/skins/simple/textures/widgets/controls/add.png
References: 2 Texture: ../vdrift-data/cars/360/textures/interior.png
References: 2 Texture: ../vdrift-data/cars/360/textures/body-misc1.png
References: 3 Texture: ../vdrift-data/skins/simple/textures/loadingbar.png
References: 171 Texture: ../vdrift-data/skins/simple/textures/widgets/controls/add_sel.png
References: 2 Texture: ../vdrift-data/skins/simple/textures/accdec-slider.png
References: 73 Texture: ../vdrift-data/skins/simple/textures/widgets/wheel_up_r.png
References: 10 Texture: ../vdrift-data/tracks/ruudskogen/objects/road02.jpg.png
References: 3 Texture: ../vdrift-data/tracks/ruudskogen/objects/hytte01.bmp.png
References: 2 Texture: ../vdrift-data/cars/360/textures/body00.png
References: 7 Texture: ../vdrift-data/tracks/ruudskogen/objects/skilt01.jpg.png
References: 25 Texture: ../vdrift-data/skins/simple/textures/widgets/controls/mouse_sel.png
References: 2 Texture: ../vdrift-data/cars/360/textures/reverse.png
References: 2 Texture: ../vdrift-data/cars/360/textures/glass-misc1.png
References: 21 Texture: ../vdrift-data/skins/simple/textures/widgets/sld_wedge.png
References: 30 Texture: ../vdrift-data/skins/simple/textures/widgets/controls/key.png
References: 27 Texture: ../vdrift-data/skins/simple/fonts/lcd_noshaders.png
References: 2 Texture: ../vdrift-data/tracks/rouen/trackshot.png
References: 144 Texture: ../vdrift-data/skins/simple/textures/widgets/btn_up_unsel.png
References: 2 Texture: ../vdrift-data/tracks/ruudskogen/objects/himmel03.jpg.png
References: 144 Texture: ../vdrift-data/skins/simple/textures/widgets/btn_down.png
References: 2 Texture: ../vdrift-data/textures/hud/cardot1_focused.png
References: 23 Texture: ../vdrift-data/tracks/ruudskogen/objects/busk01.bmp.png
References: 3 Texture: ../vdrift-data/cars/360/textures/wheel_front.png
References: 2 Texture: ../vdrift-data/skins/simple/textures/logo.png
References: 22 Texture: ../vdrift-data/tracks/ruudskogen/objects/tre02.bmp.png
References: 144 Texture: ../vdrift-data/skins/simple/textures/widgets/btn_up.png
References: 2 Texture: ../vdrift-data/skins/simple/textures/slider2.png
References count: 2932
Objects count: 82, created: 44, reused: 186, deleted: 7