Autor Beitrag
Passi077
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 125

Win XP
D7 Pers
BeitragVerfasst: So 04.09.05 20:15 
Hi,

ich benutze die Textures.pas um Texturen mit

ausblenden Delphi-Quelltext
1:
LoadTexture('reiskorn.tga', reiskorn, False);					


zu laden. Nun würde ich gerne zur Laufzeit einige der geladenen Texturen wieder entladen, also vor allem aus dem Grafikspeicher löschen.

Wie geht das? Habe im Forum dazu nichts gefunden und eine ReadMe zur Textures.pas scheint es ja irgendwie nicht zu geben ;).

Grüße
Passi
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mo 05.09.05 02:11 
Hi,

du bekomsmt ja bei LoadTextures eine TextureID zurückgeliefert.
Das ist die, die du bei z.B. glBindTexture benutzt.

jetzt einfach via glDeleteTextures(1, @TexturID) die textur wieder löschen :)

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
Passi077 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 125

Win XP
D7 Pers
BeitragVerfasst: Mo 05.09.05 11:29 
Hi,

ok, Dankeschön!

Grüße