Quadric Draw Styles

BlitzMax Forums/OpenGL Module/Quadric Draw Styles

Clyde(Posted 2005) [#1]
I maybe missing something out with this example test with the preset shapes, and would love to know what's up with it.

Can anyone see why this code wont render the sphere with the QuadricDrawStyle command?



Thanks,
Thumbz


Extron(Posted 2005) [#2]
Maybe a bug!


col(Posted 2005) [#3]
The first thing I've found is GLU_SMOOTH and GLU_LINE aren't actually defined anywhere!!! Which means they are zreo.

Try putting

Strict

at the top of your programs to see any variables/functions that are not given any value etc.

Looking into now for ya..............

Colonel
NRG Studio


Clyde(Posted 2005) [#4]
Cheers Col! :)

I added Strict and it told me that the identifier GLU_LINE was not found.

Maybe I've got it inputted wrong???
gluQuadricDrawStyle (quadratic, GLU_LINE )



Thanks for checking it out!


col(Posted 2005) [#5]
I've found some values :)

GLU_POINT = 100010
GLU_LINE = 100011
GLU_FILL = 100012
GLU_SILHOUETTE = 100013

Works for me :)


col(Posted 2005) [#6]
Also you'll need these

GLU_SMOOTH = 100000
GLU_FLAT = 100001
GLU_NONE = 100002

Have fun


Clyde(Posted 2005) [#7]
Thanks mate!
So it this then a bug in BMAX?


col(Posted 2005) [#8]
Dunno mate. Only got bmax yesterday ! Still finding me feet as to what is included and what isn't.

Looks like BRL forgot to include them though eh!!!!


Clyde(Posted 2005) [#9]
I've only had it a few days too myself.
A big change in the approach.

Thanks for finding those values out mate!
Nice one :)


col(Posted 2005) [#10]
The reason why we don't have 'native' access to those parameters is because in the opengl.bmx file they are all REM'd out!!!!

Don't know why?? Is there anything we can do??

Anyone????


Extron(Posted 2005) [#11]
It's defined in glu.h under folder GL in glew.mod


col(Posted 2005) [#12]
@Extron:

I checked this and it looks like glew.mod doesn't load in glu.h . It looks like it will if you have a MAC but not pc!!

In the opengl.bmx file the constants are actually commented out!!

I'm still getting into this so I might be wrong?

This does need to be resolved though!

Cheers


Extron(Posted 2005) [#13]
It's not commented for me in opengl.bmx


col(Posted 2005) [#14]
Really? I'm on PC. You?

The ModuleInfo shows version 1.00

Is yours the same? I'm talking about 'mod/pub.mod/opengl.mod/opengl.bmx'

Regards


Extron(Posted 2005) [#15]
Sorry your are right (long block of rem :) ).
But it's defined Global and not constante.


Clyde(Posted 2005) [#16]
Any answers on a postcard to why these Open GL extensions arent properly introduced into BMAX yet (On Win OS)?