if you use the version at the first post it works! (without modifying)
http://www.thinbasic.com/community/s...ll=1#post60794
just want to refer that there is another great example using glTexImage2D, it is here http://www.thinbasic.com/community/s...ll=1#post60836
look example Abraxas_SineWave.tbasic . it runs now if we change texture to varptr(texture(1))
if you use the version at the first post it works! (without modifying)
http://www.thinbasic.com/community/s...ll=1#post60794
Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370
Thanks Michael for the note.
regarding the function glTexImage2D which producing errors in Abraxas_SineWave.tbasic if its parameter is texture instead of varptr(texture(1)) i have downloaded from archive.org thinbasic 1.8, 1.7, 1.6 and it seems they all refuse to consider texture as a pointer, they needs varptr(texture(1)). seems only tb v1.4 (from year 2007) which allow that.
Bookmarks