OpenGl Syntax

Previous topic - Next topic

quick2code

Would it be possible to have the OpenGl keywords also appear in the Auto Completion(Ctrl+Space) window?

J2ME can import images as arrays of integers so there's a way to simulate color palette swapping(change sprite colors in code). Can GlBasic support this in the future? And image reflection and rotation can be done in OpenGl so I'm thinking GlBasic could gain this ability, which would seriously cut down on the amount of images/resources required for a game.

And I'd like the final word on the whole Floating Point thing. First I hear that the mobile compilers have an integer foundation. Then I hear that GlBasic is based on Floating Point. The new INTEGER functions are great but how is that gonna help with a screen full of rotating, scaling, smooth moving, and pathfinding sprites? Especially if GlBasic is all Floating Point.

Everything else(namely IPhone) seems to be heading in the right direction. Thanks for any info.

MrTAToad

QuoteThe new INTEGER functions are great but how is that gonna help with a screen full of rotating, scaling, smooth moving, and pathfinding sprites?
Integers can be used to approximate floating-point values (using fixed-point routines), which may be faster than using floating-point variables on machines that have no maths unit.

Really, proper floating-point variables should be used as any reduction in speed would probably be minimal.

Schranz0r

Quote from: quick2code on 2009-May-08
Would it be possible to have the OpenGl keywords also appear in the Auto Completion(Ctrl+Space) window?


Yepp, use this: http://www.glbasic.com/files/gl.gbas
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard