[Gambas-user] gb3 OpenGL example applications

Fabián Flores Vadell fabianfloresvadell at ...626...
Sun Jul 31 00:18:51 CEST 2011


2011/7/29 Benoît Minisini <gambas at ...1...>:
>> 2011/7/29 Kevin Fishburne <kevinfishburne at ...1887...>:
>> > Caveat was kind enough to provide me with a link to the OpenGL examples.
>> > I went through them all and converted them to gb3, cleaned up the code
>> > and corrected some bugs. They all work now in gb3 except for one, which
>> > I deleted. You can find them here:
>> >
>> > http://www.eightvirtues.com/misc/gb3_opengl_examples.tar.gz
>>
>> Very nice Kevin, and so useful of course.
>>
>> I found that the project 19_ParticleEngine give an error:
>>
>> 88-  colors[p - 1, i] = Val(rgb)
>>
>> I replace that line with:
>>
>> colors[p - 1, i] = Val(Replace(rgb, ".", ","))
>>
>> because decimal sign in my system is ","
>
> No, you must write:
>
>        colors[p - 1, i] = CFloat(Trim(rgb))
>
> You cannot decide the localization of the system where a program runs!
>

Of course, you are right. I just took the first idea came to my mind,
so that I could execute the example.


-- 
Fabián Flores Vadell
www.comoprogramarcongambas.blogspot.com
www.speedbooksargentina.blogspot.com




More information about the User mailing list