Blitz3D Plus


Tweet blitz3d graphics effects miscellaneous toolbox
(Posted 10 months ago) RonTek

DLL to extend B3D

DECLS file is already included in the zip file, the below is for online reference purposes.

Author: Billp

Download: MediaFire | Dropbox

;Camera

BP_GetCamClsMode%( camera,index$ ) : "[email protected]" ; index$ = "Color" Or "Zbuffer" returns 0 Or 1
BP_GetCamClsColorR%( camera ) : "[email protected]" ; returns red component of CameraClsColor
BP_GetCamClsColorG%( camera ) : "[email protected]" ; returns green component of CameraClsColor
BP_GetCamClsColorB%( camera ) : "[email protected]" ; returns blue component of CameraClsColor
BP_GetCamProjMode%( camera ) : "[email protected]"   ; returns CameraProjMode 0-2
BP_GetCamRangeNear#( camera ) : "[email protected]" ; returns CameraRange "near"
BP_GetCamRangeFar#( camera ) : "[email protected]"   ; returns CameraRange "far"
BP_GetCamZoom#( camera ) : "[email protected]"   ; returns CameraZoom
BP_GetCamViewPortX%( camera ) : "[email protected]" ; returns CameraViewport "x"
BP_GetCamViewPortY%( camera ) : "[email protected]" ; returns CameraViewport "y"
BP_GetCamViewPortW%( camera ) : "[email protected]" ; returns CameraViewport "width"
BP_GetCamViewPortH%( camera ) : "[email protected]" ; returns CameraViewport "height"
BP_GetCamFogMode%( camera ) : "[email protected]" ; returns CameraFogMode 0 (none) Or 1 (linear)
BP_GetCamFogNear#( camera ) : "[email protected]" ; returns CameraFogRange "near"
BP_GetCamFogFar#( camera ) : "[email protected]"   ; returns CameraFogRange "far"
BP_GetCamFogColorR%( camera ) : "[email protected]" ; returns red component of CameraFogColor
BP_GetCamFogColorG%( camera ) : "[email protected]" ; returns green component of CameraFogColor
BP_GetCamFogColorB%( camera ) : "[email protected]" ; returns blue component of CameraFogColor
BP_GetCamFOV#( camera ) : "[email protected]" ; returns CameraZoom as degrees FOV
BP_SetCamFOV%( camera,FOV# ) : "[email protected]"    ; sets CameraZoom as degrees FOV

;Light

BP_SetLightType%( light,style ) : "[email protected]"  ; changes LightType on the fly
BP_SetLightDiffuse%( light,red,green,blue,alpha# ) : "[email protected]"   ;   sets diffuse rgba ( same as LightColor + alpha component )
BP_SetLightSpecular%( light,red,green,blue,alpha# ) : "[email protected]" ;   sets specular rgba ( not normally accessable in b3d )
BP_SetLightAmbient%( light,red,green,blue,alpha# ) : "[email protected]"   ;   sets specular rgba ( not normally accessable in b3d )
BP_SetLightMaxRange%( light,range# ) : "[email protected]" ; sets absolute LightRange ( not normally accessable in b3d )
BP_SetLightAtten0( light,value# ) : "[email protected]"  ; attenuation value 0 effects light fall off ( not normally accessable in b3d )
BP_SetLightAtten1( light,value# ) : "[email protected]"  ; attenuation value 1 effects light fall off ( Not normally accessable in b3d ) 
BP_SetLightFallOff( light,value# ) : "[email protected]"    ; effects lightcone fall off for spot lights ( not normally accessable in b3d ) 
BP_GetLightType%( light ) : "[email protected]"    ; returns LightType
BP_GetLightMaxRange#( light ) : "[email protected]"    ; returns absolute LightRange ( not normally accessable in b3d )
BP_GetLightRange#( light ) : "[email protected]"  ; returns LightRange
BP_GetLightInner#( light ) : "[email protected]"  ; returns LightConeAngles "inner angle"
BP_GetLightOuter#( light ) : "[email protected]"  ; returns LightConeAngles "outer angle" 
BP_GetLightDiffuseR%( light ) : "[email protected]"    ; returns red component of lights diffuse Color
BP_GetLightDiffuseG%( light ) : "[email protected]"    ; returns green component of lights diffuse color
BP_GetLightDiffuseB%( light ) : "[email protected]"    ; returns blue component of lights diffuse color
BP_GetLightDiffuseA#( light ) : "[email protected]"    ; returns alpha component of lights diffuse color
BP_GetLightSpecularR%( light ) : "[email protected]"  ; returns red component of lights specular color
BP_GetLightSpecularG%( light ) : "[email protected]"  ; returns green component of lights specular color
BP_GetLightSpecularB%( light ) : "[email protected]"  ; returns blue component of lights specular color
BP_GetLightSpecularA#( light ) : "[email protected]"  ; returns alpha component of lights specular Color
BP_GetLightAmbientR%( light ) : "[email protected]"    ; returns red component of lights ambient Color
BP_GetLightAmbientG%( light ) : "[email protected]"    ; returns green component of lights ambient Color
BP_GetLightAmbientB%( light ) : "[email protected]"    ; returns blue component of lights ambient Color
BP_GetLightAmbientA#( light ) : "[email protected]"    ; returns alpha component of lights ambient Color
BP_GetLightAtten0#( light ) : "[email protected]"    ; returns light attenuation value 0
BP_GetLightAtten1#( light ) : "[email protected]"    ; returns light attenuation value 1
BP_GetLightFallOff#( light ) : "[email protected]"  ; returns lightcone falloff for spot lights

;Entity

BP_GetEntityAlpha#( entity ) : "[email protected]"   ; returns EntityAlpha
BP_GetEntityScaleX#( entity ) : "[email protected]" ; returns EntityScale "x"
BP_GetEntityScaleY#( entity ) : "[email protected]" ; returns EntityScale "y"
BP_GetEntityScaleZ#( entity ) : "[email protected]" ; returns EntityScale "z"
BP_GetEntityAutoFade%( entity ) : "[email protected]" ; returns true if EntityAutoFade has been set
BP_ClrEntityAutoFade%( entity ) : "[email protected]" ; Cls EntityAutoFade if set
BP_GetEntityAutoNear#( entity ) : "[email protected]" ; returns EntityAutoFade "near"
BP_GetEntityAutoFar#( entity ) : "[email protected]"   ; returns EntityAutoFade "far"
BP_GetEntityOrder%( entity ) : "[email protected]"   ; returns EntityOrder
BP_GetNextEntity%( entity ) : "[email protected]" ; returns entity following this one
BP_GetLastEntity%( entity ) : "[email protected]" ; returns entity before this one
BP_GetEntityHidden%( entity ) : "[email protected]" ; returns true if entity is hidden
BP_GetEntityRadiusX#( entity ) : "[email protected]"   ; returns EntityRadius "x"  
BP_GetEntityRadiusY#( entity ) : "[email protected]"   ; returns EntityRadius "y"
BP_GetEntityBoxX#( entity ) : "[email protected]" ; returns EntityBox "x"
BP_GetEntityBoxY#( entity ) : "[email protected]" ; returns EntityBox "y"
BP_GetEntityBoxZ#( entity ) : "[email protected]" ; returns EntityBox "z"
BP_GetEntityBoxW#( entity ) : "[email protected]" ; returns EntityBox "width"
BP_GetEntityBoxH#( entity ) : "[email protected]" ; returns EntityBox "height"
BP_GetEntityBoxD#( entity ) : "[email protected]" ; returns EntityBox "depth"
BP_GetEntityPickmode%( entity ) : "[email protected]" ; returns EntityPickMode 0-3
BP_GetEntityObscurer%( entity ) : "[email protected]" ; returns true if entity obscures others, set by EntityPickMode
BP_GetEntityColorR%( entity ) : "[email protected]" ; returns red component of EntityColor
BP_GetEntityColorG%( entity ) : "[email protected]" ; returns green component of EntityColor
BP_GetEntityColorB%( entity ) : "[email protected]" ; returns blue component of EntityColor
BP_GetEntityShine#( entity ) : "[email protected]"   ; returns EntityShininess
BP_GetEntityBlend%( entity ) : "[email protected]"   ; returns EntityBlend
BP_GetEntityFX%( entity ) : "[email protected]" ; returns EntityFX


;Texture

BP_GetTextureBlend%( texture ) : "[email protected]"    ; returns TextureBlend
BP_GetTextureCoords%( texture ) : "[email protected]"  ; returns TextureCoords
BP_GetTextureScaleU#( texture ) : "[email protected]"  ; returns ScaleTexture "u"
BP_GetTextureScaleV#( texture ) : "[email protected]"  ; returns ScaleTexture "v"
BP_GetTexturePositionU#( texture ) : "[email protected]"    ; returns PositionTexture "u"
BP_GetTexturePositionV#( texture ) : "[email protected]"    ; returns PositionTexture "v"
BP_GetTextureRotation#( texture ) : "[email protected]"  ; returns texture rotation
BP_GetTextureFlags%( texbuffer ) : "[email protected]"  ; returns texture flags
BP_ScrollTexture#( texture,u#,v# ) : "[email protected]" ; scrolls texture by relative amount

;Brush

BP_GetBrushBlend%( brush ) : "[email protected]"  ; returns BrushBlend 1-3
BP_GetBrushColorRGB%( brush ) : "[email protected]"    ; returns BrushColor as an integer
BP_GetBrushColorR%( brush ) : "[email protected]"    ; returns red component of BrushColor
BP_GetBrushColorG%( brush ) : "[email protected]"    ; returns green component of BrushColor
BP_GetBrushColorB%( brush ) : "[email protected]"    ; returns blue component of BrushColor
BP_GetBrushFX%( brush ) : "[email protected]"    ; returns BrushFX
BP_GetBrushShininess#( brush ) : "[email protected]"  ; returns BrushShininess
BP_GetBrushAlpha#( brush ) : "[email protected]"  ; returns BrushAlpha
BP_GetBrushNumTextures%( brush ) : "[email protected]"  ; returns number of textures used by this brush
BP_SetBrushTexture%( brush,index,texture ) : "[email protected]"   ; Changes Brush texture on the fly, texture=0 to clear texture
; If already applied to entity use RefreshEntityBrush() to update entity
BP_RefreshEntityBrush%( entity ) : "[email protected]"   ; updates entity brush structure
;Sprite

BP_GetSpriteHandleX#( sprite ) : "[email protected]"   ; returns HandleSprite "x"
BP_GetSpriteHandleY#( sprite ) : "[email protected]"   ; returns HandleSprite "y"
BP_GetSpriteAngle#( sprite ) : "[email protected]"   ; returns angle set by RotateSprite
BP_GetSpriteScaleX#( sprite ) : "[email protected]" ; returns ScaleSprite "x"
BP_GetSpriteScaleY#( sprite ) : "[email protected]" ; returns ScaleSprite "y"
BP_GetSpriteViewMode%( sprite ) : "[email protected]" ; returns SpriteViewMode

;Color Conversion

BP_GetIntRed%( IntColor ) : "[email protected]"   ; returns red component of an integer 
BP_GetIntGreen%( IntColor ) : "[email protected]"   ; returns green component of an integer
BP_GetIntBlue%( IntColor ) : "[email protected]" ; returns blue component of an integer
BP_GetIntAlpha%( IntColor ) : "[email protected]"   ; returns alpha component of an integer
BP_GetRGBInt%( r,g,b ) : "[email protected]" ; converts r,g,b to integer
BP_GetRGBAInt%( r,g,b,a ) : "[email protected]" ; converts r,g,b,a To integer

;Math

BP_CurveValue#( newvalue#,oldvalue#,increments# ) : "[email protected]"
BP_WrapValue#( value#,lo#,hi# ) : "[email protected]"
BP_ClampValue#( value#,lo#,hi# ) : "[email protected]"
BP_Min#( value1#,value2# ) : "[email protected]"
BP_Max#( value1#,value2# ) : "[email protected]"
BP_Distance2d#( x1#,y1#,x2#,y2# ) : "[email protected]"
BP_Distance3d#( x1#,y1#,z1#,x2#,y2#,z2# ) : "[email protected]"
BP_PointInRect#( x1#,y1#,rx#,ry#,rw#,rh# ) : "[email protected]"

;Memory

BP_PeekByte%( address ) : "[email protected]"
BP_PeekShort%( address ) : "[email protected]"
BP_PeekInt%( address ) : "[email protected]"
BP_PeekFloat#( address ) : "[email protected]"

BP_PokeByte( address,value% ) : "[email protected]"
BP_PokeShort( address,value% ) : "[email protected]"
BP_PokeInt( address,value% ) : "[email protected]"
BP_PokeFloat( address,value# ) : "[email protected]" 

Reply To Topic (minimum 10 characters)

Please log in to reply