DLL to extend B3D released

Blitz3D Forums/Blitz3D Userlibs/DLL to extend B3D released

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.

What I was thinking BP_ClampValue(Value#,-2,2) would do, would be a shorter version of doing this
If Value < -2 Then Value = -2
If Value > 2 Then Value = 2


But it didn't do that. It didn't do anything. Here's what I tried.

Graphics3D 800,600,0,2
SetBuffer BackBuffer()

Global Light = CreateLight()
	
	
Global Camera = CreateCamera()
	PositionEntity Camera,0,2,-5
	RotateEntity Camera,10,0,0
	
Global Cube = CreateCube()
	EntityColor Cube,127,127,0
	EntityShininess Cube,.5
	
Global Clamp# = 0

While Not KeyDown(1)

	Clamp = Clamp + (KeyHit(200)-KeyHit(208))
	
	BP_ClampValue(Clamp,-2,2)
	
	PositionEntity Cube,0,Clamp,0
	
	UpdateWorld
	RenderWorld
	
	Text 0,0,Clamp
	
	Flip
	
Wend
End


Heh, do I have the wrong idea of what this function is supposed to do?