direct x (7) stencils..

BlitzMax Forums/BlitzMax Programming/direct x (7) stencils..

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well im making slow progress...

I just figured out the way to fiddle with the direct x stuff in bmax..
...pusudo code...
'Direct x Display enable with the stencil buffer
SetGraphicsDriver(D3D7Max2DDriver(),(GRAPHICS_BACKBUFFER | GRAPHICS_STENCILBUFFER))
Local driver:TD3D7Max2DDriver=D3D7Max2DDriver:TD3D7Max2DDriver()    'Pull access to the directx7 device?
... later on ...
'Create the display..
Graphics 800,600,32,DISPLAY_HZ
... then ...
driver.SetMouseVisible(False)  'urika moment!
'direct x 7 ......
driver.device.SetRenderState D3DRS_ALPHAREF,$80   'an example of using direct x stuff!
...
Thats ment more as a hint for others, rather then something that should compile!