;-
;vividgl-3d lite.
;
;- main include
;
;You ONLY have to include THIS file to use vivid.
;It includes the other files.
;You do not have to access any global variables or custom
;types. ALL vivid functions return integer handles, as per b3d.

Include "includes\wgl_const.bb"
Include "includes\gl_const.bb"
Include "includes\glu_const.bb"
Include "includes\blitz_gl.bb"
Include "includes\vgl.bb"
Include "includes\2d.bb"
Include "includes\image.bb"
Include "includes\sim.bb"
Include "includes\text.bb"
Include "includes\fxskin.bb"
Include "includes\surface.bb"
Include "includes\math.bb"
Include "includes\fileio.bb"
Include "includes\collision.bb"
Include "includes\brush.bb"
Include "includes\text.bb"
Include "includes\camera.bb"
Include "includes\hullgl.bb"
Include "includes\entity.bb"
Include "includes\graphics.bb"
Include "includes\stencil.bb"
Include "includes\vividskins.bb"
Include "includes\lights.bb"
Include "includes\cg.bb"
Include "includes\coldetgl.bb"
Include "includes\b3dfile.bb"
Include "includes\batch.bb"
Include "includes\octal.bb"

;---[ official version tag. ]

Const vividvertsion$="VividGL 3D Lite V1.0"

;---[ consts & globals ]

Const max_entities_vivid=5000
Const gllistrender=1,Entity_Createrender=2
Const glmaxvpm =1200 
Const glmaxtpm =1200
Const glmaxppm =1
Const glmaxqpm =2 
Const glmaxspe = 255  
Const gltrisize=24
Global lvecx#[20],lvecy#[20],lvecz#[20] ;light vector stack(for shaders)
Global cvecx#,cvecy#,cvecz# ;camera vector
Global lsurfren.sdat,lastshade,lastblend
Global tqc,trc
Global tquat.quat[255],trot.rotation[255],tpiv[255]
Global tmat1#[16],tmat2#[16],tmat3#[16],tmat4#[16],tmat#[16]
Global tpitch#[16],tyaw#[16],troll#[16],tposition#[16]
Global world_scalex#=1,world_scaley#=1,world_scalez#=-1
Global vldisplaywidth,vldisplayheight,vlrangestart#,vlrangeend#,vlfov#
Global benchmark,dwidth#,dheight#
Global shadersareon
Global fogfilter[5]
fogfilter[1]=gl_exp1:fogfilter[2]=gl_exp2:fogfilter[3]=gl_linear
Global glsupportsvertexobjects
Global glusepixelbuffer,Graphics_PixelBufferstate
Global bsys.bufsys=New bufsys
Global hrc,hmaindc,bbhwnd,tecc
Global lookat,tempbank=CreateBank(500000)
Global 	amb%=glfloat(0,0,0)
Global	dif%=glfloat(0,0,0)
Global	spec%=glfloat(0,0,0)
Global  shin%=glfloat(0,0,0)
Global	emis%=glfloat(0,0,0)
Global tli=glfloat(0,0,0,0)	
Global tex[20]
Global glvividcamindex=0

Function gfloat(size)
Return CreateBank(size*4)
End Function
Texture_InitSystem();vital call.do not remove or texture support will not function at all.

