From: p <pe...@gm...> - 2000-05-31 01:11:37
|
Hi, im new to this mailinglist. ive done an applet showing a textured flat eric modell, that uses either the software-renderer anfy3d or (if installed) GL4Java to show the animation. you can see it on http://www.jzone.de programming it i met a problem: for the animation the applet starts an own thread. if i do the texture-loading things ( glBindTexture(..);glu.gluBuild2DMipmaps(...);gl.glTexParameteri(...);...) within the "init"-method or "paint"-method of the class (from GLCanvas extended) all works fine. but if i do these things in another method it dont works and i get an error from "gljCheckGL" : GL ERROR : 1282 == 0x502. i think that error occures because i invoke this methods from another thread. but it would be nice if i could schange texture-data form another thread, than from the thread, that does the animation loop. can sb. give me some hints ? thanks peter -- (((http://jzone.de))) |