missing mod brl.blitzgl

BlitzMax Forums/BlitzMax Beginners Area/missing mod brl.blitzgl

Jake L.(Posted 2006) [#1]
Hi,

I'm new to BMax and wanted to try the NeHe-Tutorials. But they don't compile: "cant find interface for module brl.blitzgl".

I don't see a module called blitzgl (so this is the problem, right?). But where do I get it from?

Sorry in advance if this is a bloody noobish question ;)


Dreamora(Posted 2006) [#2]
It does not exist anymore. That was Pre BM 1.10
I think its now brl.glgraphics and the commands changed from bgl... to gl...


BerndWill(Posted 2006) [#3]
Hi everybody,

Same problem here.
Could someone please post a current version of the fabulous NeHe tutorials or send a link where to get it for BlitzMax 1.18 !?

Thanks in advance
Bernd


ImaginaryHuman(Posted 2006) [#4]
At the top of the forums page there is a link to the updated versions.


BerndWill(Posted 2006) [#5]
There you can download BlitzMax 1.18, but where do I get the updated NeHe tutorials from ?

Thanks in advance
Bernd


Dreamora(Posted 2006) [#6]
There aren't any updated tutorials. You will have to alter the commands manually. (most likely its only a bgl -> gl change if the command still exists.)


BerndWill(Posted 2006) [#7]
Thanks Dreamora, but your first post didnt help:

>>> I think its now brl.glgraphics and the commands changed from bgl... to gl...

Taking tutorial 2 or 3, the errors in their order of appearance:

1.) Can't find interface for module brl.blitzgl
2.) bglCreateContext not found
3.) bglDrawText not found
4.) FlushMem

... and so forth. It is a little more than just exchanging bgl/gl ...

Regards
Bernd


H&K(Posted 2006) [#8]
1) Change to brl.glgraphics (Or Just delete the framework stuff)

2)Change for
SetGraphicsDriver( GLGraphicsDriver( ))
Graphics ScreenWidth , ScreenHeight

3) Delete the b i.e. glDrawText

4) Is now automatic, just delete


Dreamora(Posted 2006) [#9]
Not much:

Its now brl.glgrahics instead of brl.blitzgl
bglcreatecontext -> glgraphics
bgldrawtext -> gldrawtext
flushmem is not needed anymore unless you use GCSetMode

all other error most likely result because of the interface problem.


DannyD(Posted 2006) [#10]
Ok:
brl.glgraPhics instead of brl.blitzgl
bglcreatecontext -> glgraphics
bgldrawtext -> gldrawtext
comment out flushmem

however this fails, I tried changing removing the b here but no difference:
bglSetMouseVisible False
bglSwapBuffers

I changed glSwapBuffers to flip , is this correct ?


tonyg(Posted 2006) [#11]
Yep. Does it not work for you then?


H&K(Posted 2006) [#12]
bglCreateContext ===>

SetGraphicsDriver( GLGraphicsDriver( ))
Graphics ScreenWidth , ScreenHeight

As said four posts and 5 (bloody hell time flies) months ago. (mind you its probably not right)


tonyg(Posted 2006) [#13]
@H&K, you can simply change bglcreatecontext to glgraphics
and it seems to work.

might be some additional changes required in later tutorials (e.g. bglSetMouseVisible False to hidemouse or comment it out) but that should be a start on 1.22


H&K(Posted 2006) [#14]
@Tony,

I was under the impression that if I didnt do it the way I did, then I couldnt use the ordinary max2d commands as well as the gl commands. might be wrong tho, as it was so long ago.


tonyg(Posted 2006) [#15]
just trying to get the Nehe tutorials working.


H&K(Posted 2006) [#16]
Oh yea, forgot that. Shutting up now.