BlitzGL

BlitzMax Forums/BlitzMax Beginners Area/BlitzGL

Hi, I'm new to BlitzMax so please bare with me ;-) I've noticed that if you compile a tutorial program in a window (as opposed to fullscreen) the title bar displays BlitzGL. Now does this mean that the game is using opengl to run the app? I thought you had to use specific commands to use OpenGL as opposed to DirectX?

Thanks for any help

Mine say "Blitzmax Application"
Are you using version 1.10?

The default Blitz installer is v1.09, it is imperative that you grab 1.10 and -then- do a syncmods!

Then you do have to use a specific command to use OpenGL (on Windows)... but it doesn't say BlitzGL. I think BlitzGL will be/has been retired, maimed and shot.

Ok guys I updated to v1.10 and every time I run a sample program the error Unhandled Excpetion: Attempt to access field or method of Null Object message appears.

It seems to dislike the 'graphics' command...any ideas what the problem could be?
Thanks again

Could you show your code?

btw:
If you try to use BGL create context you have to set first OpenGL drivers on windows, just to mention.

Does this compile and run?
Graphics 640,480,0,0
while not keydown(KEY_ESCAPE)
flushmem
wend
end


if not, did you do a syncmods from the IDE as well as updating the version?

Graphics 640,480,0,0
while not keydown(KEY_ESCAPE)
flushmem
wend
end

This works no problem. If you take the snowfall.bmx included in BlitzMax, it generates the error here:

Strict

Global width=800
Global height=600

Graphics width,height,16 ' Error generated here

I've double checked and all my modules are up to date...
Thanks guys

Try changing the graphics commands to

Graphics width, height, 0

also, what are the specs of the system your are trying to run it on?

This is odd. I've just switched from 16 bit to 32 bit colour for my desktop, re ran the snowfall program and it now doesn't generate an error - even without adding a 0 parameter. In fact all the programs seem to work ok - I really dont understand this!

- specs are a 2GHz Laptop, 64MB Nvidia Go gfx card, 384MB RAM

It is probably a result of running it on a laptop, but hey, look on the bright side - it works! :)

Indeed! Still very odd though - but thanks to everyone for your help. Lets hope it doesnt crop up again!