Free BASIC OGL Win32 Examples Updated for FB Compiler 0.13b

The forum for all of your Freebasic needs!

Moderators: Pete, Mods

Post Reply

Free BASIC OGL Win32 Examples Updated for FB Compiler 0.13b

Post by Glu » Sun May 15, 2005 2:21 pm


I've updated these examples to compile on the new FB 0.13b compiler.

Pretty much the same as the ones I Posted previously, which, I had compiled on FB 0.12. Little optimizing, maybe.

Base Code Example. Reuse over and over again to open up your OpenGL Windows :

Spotlight example. Shine a bright beam on a multiquad textured surface:

3d Golden Cube example. Includes Textures, Lighting, Fog :

Just copy and paste into your FB editor and save and compile.

Have fun!



Free Basic OpenGl Win32 Examples

Post by Glu » Mon May 16, 2005 8:26 pm

Hmmm.... did a little variation of the 3D Golden Cube. Different cube and floor textures.

Rotates differently, also.




Tweaked them all again and added one more example

Post by Glu » Wed May 25, 2005 2:23 am

Okay, tweaked them all "again" and added one more example.

Pretty much same as before. Just tweakings.

For example, Fullscreen should work much faster for all examples in WinXP. Changed that ShowMaximized to ShowNormal for the iCmdShow Variable. It really improved the performance in XP.

Open Up All your GL Windows with this BASE Code:

Cast a Bright Beam on a floor with this spotlight example:

A Golden 3D Spining Cube with Lighting and Fog and Floor:

A Blue 3D Cube with Lighting and Fog and Floor:

Same 3D Blue Cube as Above but this one demonstrates simple
movement in 3d space with a light faithfully following it around, as it
prances about the 3D Scene:

Hav sum Fun!



FB Win32 OpenGL Examples

Post by Glu » Fri May 27, 2005 5:11 pm

Hi again

Anybody that tried these with WinXP can give me some feedback would be appreciated.

1000 Thanks in advance!



Post by Kronck » Sun May 29, 2005 1:03 am

Those are nice looking demos. ;)

They work fine in XP, but it's alot of code just to open up a gl window that only works with Windows. Did you know that gfxlib has built in ogl initialization now? It's much easier that way... unless you just enjoy doing it the long way, which there is nothing wrong with. :P



Fb Gl Win32 Examples

Post by Glu » Sun May 29, 2005 11:37 pm


Those are nice looking demos.

They work fine in XP

Well, I tested them again in WinXp and I,m gettintg some weird notifications. Something like :

Ordinal number 63864 missing from User32.dll

So, not too sure about win Xp and these demos or on one or two of the gfglx, examples I tried, just yet.

just to open up a gl window that only works with Windows

Well, I would have set something up similar for Linux, except I've never worked with that OS.... Just as an alternative.

Some people, just like in C/C++, might want to do it in a similar way. Relying on their own code instead of some built in capabilities.

But, that's just me. there's nothing wrong with using what's available either. Whatever works.... works, I guess. Especially if your comfortable
with it.
gfxlib has built in ogl initialization

Nice. I need to try some more of those examples!

and.....thanks for your feedback.



FB isuues with XP

Post by Glu » Tue May 31, 2005 4:51 pm

Anybody else have any issues with any of the openGL API?s in WinXP ?

Hmmm. Weird.



Fb Win 32 OGL Examples

Post by Glu » Sun Jun 05, 2005 2:28 am

Okay, I went back to that Win XP Rig and found out that it has Data Execution Prevention Software and a compatible chip to run it.... What that Service Pack 2 (SP@) is coming out with for Win 2oo3 Server and Win XP.

What an "annoying" #!@#!!? thing it is. It tried to shut down MS Notepad because i was using it to code with! Can you beleive that!

Changing DEP from essential Windows processes to all programs "except those I select" even truned out worse.

This is serious and has all kinds of implications for the computing industry, users, programmers ect.

It can be truned off "permanently" from the root drive where boot.ini is at ...if not read only, that is.

Yep, that's what I heard. The setting should be set to =AllwaysOff But, I have'nt tried it, so don't try it yourself, if you have that SP2.

Anyways, it's not my machine, so I wont do it.

So, until later, Later then.


Post Reply