anti aliasing

BlitzMax Forums/BlitzMax Beginners Area/anti aliasing

Hi !
Have some newbies questions about antialiasing...

1) today, could i consider that's a majority of player's config video card support it ?

2) how to init anti-alisaing in bmax (opengl and directx) i use this into my program :

		Case CTE_DRIVER_DIRECTX
			'Const D3DRS_ANTIALIAS = 2 ' ou 1
			'D3D7GraphicsDriver().Direct3DDevice7().SetRenderState D3DRS_MULTISAMPLEANTIALIAS,True
			'D3D7GraphicsDriver().Direct3DDevice7().SetRenderState D3DRS_ANTIALIAS,True
			
		Case CTE_DRIVER_OPENGL
			'GlEnable GL_POLYGON_SMOOTH
			'GlEnable GL_BLEND
			'glBlendFunc GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA
			'glHint GL_LINE_SMOOTH_HINT, GL_NICEST


...but if i use this code with my config i see the edges of the triangles when i draw an image (opengl) !!! Perhaps a driver bug ?

Thanks !

Thanks !