updated database with new functions
This commit is contained in:
76
rcbasic_build/intern_lib/actor.bas
Normal file
76
rcbasic_build/intern_lib/actor.bas
Normal file
@@ -0,0 +1,76 @@
|
||||
function CreateMeshActor( mesh )
|
||||
function CreateMeshOctreeActor( mesh )
|
||||
function CreateCubeActor( cube_size )
|
||||
function CreateSphereActor( radius )
|
||||
sub DeleteActor( actor )
|
||||
sub GetActorTransform( actor, matrix )
|
||||
function CreateTerrainActor( hmap_file$ )
|
||||
sub GetTerrainPatchAABB( actor, patchX, patchZ, ByRef minX, ByRef minY, ByRef minZ, ByRef maxX, ByRef maxY, ByRef maxZ )
|
||||
function GetTerrainPatchLOD( actor, patchX, patchZ )
|
||||
function GetTerrainHeight( actor, patchX, patchZ )
|
||||
sub GetTerrainCenter( actor, ByRef x, ByRef y, ByRef z )
|
||||
sub SetTerrainLODDistance( actor, LOD, distance )
|
||||
sub ScaleTerrainTexture( actor, scale, scale2 )
|
||||
sub SetTerrainCameraMovementDelta( actor, delta )
|
||||
sub SetTerrainCameraRotationDelta( actor, delta )
|
||||
sub SetTerrainPatchLOD( actor, patchX, patchZ, LOD )
|
||||
sub SetActorTexture( actor, layer, image_id )
|
||||
sub SetActorTextureEx( actor, material, layer, resource_type, resource_id )
|
||||
function GetActorTexture( actor, material, layer )
|
||||
function GetActorMaterialCount( actor )
|
||||
sub SetActorMaterialFlag( actor, flag, flag_value )
|
||||
sub SetActorMaterialFlagEx( actor, material, flag, flag_value)
|
||||
function GetActorMaterialFlag( actor, material, flag)
|
||||
sub SetActorMaterialType( actor, material_type)
|
||||
sub SetActorMaterialTypeEx( actor, material, material_type)
|
||||
function GetActorMaterialType( actor, material )
|
||||
sub SetActorMaterial( actor, material_num, material_id)
|
||||
function GetActorMaterial( actor, material_num)
|
||||
sub SetActorPosition( actor, x, y, z )
|
||||
sub TranslateActor( actor, x, y, z )
|
||||
sub TranslateActorWorld( actor, x, y, z )
|
||||
sub GetActorPosition( actor, ByRef x, ByRef y, ByRef z )
|
||||
sub SetActorScale( actor, x, y, z )
|
||||
sub ScaleActor( actor, x, y, z )
|
||||
sub GetActorScale( actor, ByRef x, ByRef y, ByRef z )
|
||||
sub SetActorRotation( actor, x, y, z )
|
||||
sub RotateActor( actor, x, y, z )
|
||||
sub GetActorRotation( actor, ByRef x, ByRef y, ByRef z )
|
||||
sub SetActorAnimation( actor, start_frame, end_frame)
|
||||
sub SetActorAnimationSpeed( actor, speed )
|
||||
sub SetActorFrame( actor, frame )
|
||||
function SetActorMD2Animation( actor, anim )
|
||||
function SetActorMD2AnimationByName( actor, anim_name$ )
|
||||
function GetActorAnimationSpeed( actor )
|
||||
function GetActorEndFrame( actor )
|
||||
function GetActorCurrentFrame( actor )
|
||||
function GetActorStartFrame( actor )
|
||||
sub SetActorVisible( actor, flag )
|
||||
function ActorIsVisible( actor )
|
||||
sub SetActorAutoCulling( actor, cull_type )
|
||||
function GetActorAutoCulling( actor )
|
||||
function actorAnimationIsLooped( actor )
|
||||
sub loopActorAnimation( actor, flag )
|
||||
sub AddActorShadow( actor )
|
||||
sub RemoveActorShadow( actor )
|
||||
sub StartActorTransition( actor, frame, transition_time )
|
||||
sub StopActorTransition( actor )
|
||||
function ActorIsInTransition( actor )
|
||||
function GetActorTransitionTime( actor )
|
||||
sub SetActorAnimation( actor, start_frame, end_frame)
|
||||
sub SetActorAnimationSpeed( actor, speed )
|
||||
sub SetActorFrame( actor, frame )
|
||||
sub SetActorJointMode( actor, mode )
|
||||
sub SetActorLoopMode( actor, mode )
|
||||
function SetActorMD2Animation( actor, anim )
|
||||
function SetActorMD2AnimationByName( actor, anim_name$ )
|
||||
sub SetActorMesh( actor, mesh )
|
||||
sub SetActorRenderFromIdentity( actor, flag )
|
||||
sub SetActorTransitionTime( actor )
|
||||
function GetActorLoopMode( actor )
|
||||
function GetActorAnimationSpeed( actor )
|
||||
function GetActorEndFrame( actor )
|
||||
function GetActorCurrentFrame( actor )
|
||||
function GetActorStartFrame( actor )
|
||||
sub SetActorVisible( actor, flag )
|
||||
function GetActorVisible( actor )
|
||||
58
rcbasic_build/intern_lib/actor_physics.bas
Normal file
58
rcbasic_build/intern_lib/actor_physics.bas
Normal file
@@ -0,0 +1,58 @@
|
||||
sub SetGravity3D(x, y, z)
|
||||
sub GetGravity3D(ByRef x, ByRef y, ByRef z)
|
||||
sub SetActorCollisionShape( actor, shape_type, mass)
|
||||
function GetActorCollisionShape(actor)
|
||||
sub SetActorSolid(actor, flag)
|
||||
function ActorIsSolid(actor)
|
||||
function GetActorCollision(actor1, actor2)
|
||||
sub SetActorGravity( actor, x, y, z )
|
||||
sub GetActorGravity( actor, ByRef x, ByRef y, ByRef z )
|
||||
sub setActorDamping( actor, lin_damping, ang_damping)
|
||||
function getActorLinearDamping( actor)
|
||||
function getActorAngularDamping( actor)
|
||||
function getActorLinearSleepThreshold( actor)
|
||||
function getActorAngularSleepThreshold( actor)
|
||||
sub applyActorDamping( actor, timeStep)
|
||||
sub setActorMassProperties( actor, mass, inertia_x, inertia_y, inertia_z)
|
||||
sub getActorLinearFactor( actor, ByRef x, ByRef y, ByRef z)
|
||||
sub setActorLinearFactor( actor, x, y, z)
|
||||
function getActorInverseMass( actor)
|
||||
sub integrateActorVelocities( actor, step)
|
||||
sub applyActorCentralForceLocal( actor, x, y, z)
|
||||
sub applyActorCentralForceWorld( actor, x, y, z)
|
||||
sub getActorTotalForce( actor, ByRef x, ByRef y, ByRef z)
|
||||
sub getActorTotalTorque( actor, ByRef x, ByRef y, ByRef z)
|
||||
sub getActorInverseInertiaDiagLocal( actor, ByRef x, ByRef y, ByRef z)
|
||||
sub setActorInverseInertiaDiagLocal( actor, x, y, z)
|
||||
sub setActorSleepThresholds( actor, linear, angular)
|
||||
sub applyActorTorqueLocal( actor, x, y, z)
|
||||
sub applyActorTorqueWorld( actor, x, y, z)
|
||||
sub applyActorForceLocal( actor, x, y, z, rel_x, rel_y, rel_z)
|
||||
sub applyActorForceWorld( actor, x, y, z, rel_x, rel_y, rel_z)
|
||||
sub applyActorCentralImpulseLocal( actor, x, y, z)
|
||||
sub applyActorCentralImpulseWorld( actor, x, y, z)
|
||||
sub applyActorTorqueImpulseLocal( actor, x, y, z)
|
||||
sub applyActorTorqueImpulseWorld( actor, x, y, z)
|
||||
sub applyActorImpulseLocal( actor, x, y, z, rel_x, rel_y, rel_z)
|
||||
sub applyActorImpulseWorld( actor, x, y, z, rel_x, rel_y, rel_z)
|
||||
sub clearActorForces( actor)
|
||||
sub updateActorInertiaTensor( actor)
|
||||
sub getActorCOMPosition( actor, ByRef x, ByRef y, ByRef z)
|
||||
sub getActorRotationQ( actor, ByRef x, ByRef y, ByRef z, ByRef w)
|
||||
sub getActorLinearVelocity( actor, ByRef x, ByRef y, ByRef z)
|
||||
sub getActorAngularVelocity( actor, ByRef x, ByRef y, ByRef z)
|
||||
sub setActorLinearVelocityLocal( actor, x, y, z)
|
||||
sub setActorLinearVelocityWorld( actor, x, y, z)
|
||||
sub setActorAngularVelocityLocal( actor, x, y, z)
|
||||
sub setActorAngularVelocityWorld( actor, x, y, z)
|
||||
sub getActorLocalPointVelocity( actor, rel_x, rel_y, rel_z, ByRef x, ByRef y, ByRef z)
|
||||
sub getActorLinearVelocityLocal( actor, ByRef x, ByRef y, ByRef z)
|
||||
sub getActorAngularVelocityLocal( actor, ByRef x, ByRef y, ByRef z)
|
||||
sub getActorAABB( actor, ByRef min_x, ByRef min_y, ByRef min_z, ByRef max_x, ByRef max_y, ByRef max_z)
|
||||
function computeActorImpulseDenominator( actor, pos_x, pos_y, pos_z, normal_x, normal_y, normal_z)
|
||||
function computeActorAngularImpulseDenominator( actor, x, y, z)
|
||||
sub setActorAngularFactor( actor, x, y, z)
|
||||
sub getActorAngularFactor( actor, ByRef x, ByRef y, ByRef z)
|
||||
sub computeActorGyroImpulseLocal( actor, step, ByRef x, ByRef y, ByRef z)
|
||||
sub computeActorGyroImpulseWorld( actor, dt, ByRef x, ByRef y, ByRef z)
|
||||
sub getActorLocalInertia( actor, ByRef x, ByRef y, ByRef z)
|
||||
16
rcbasic_build/intern_lib/arrays.bas
Normal file
16
rcbasic_build/intern_lib/arrays.bas
Normal file
@@ -0,0 +1,16 @@
|
||||
function ArrayDim(Byref id)
|
||||
function StringArrayDim(Byref id$)
|
||||
function NumberArrayDim(Byref id)
|
||||
function ArraySize(Byref id, array_dim)
|
||||
function StringArraySize(Byref id$, array_dim)
|
||||
function NumberArraySize(Byref id, array_dim)
|
||||
sub NumberArrayCopy(ByRef src, ByRef dst)
|
||||
sub StringArrayCopy(ByRef src$, ByRef dst$)
|
||||
sub ArrayCopy(ByRef src, ByRef dst)
|
||||
sub NumberArrayFill(ByRef src, fdata)
|
||||
sub StringArrayFill(ByRef src$, fdata$)
|
||||
sub ArrayFill(ByRef src, fdata)
|
||||
function TypeArrayDim(Byref id as empty)
|
||||
function TypeArraySize(Byref id as empty, array_dim)
|
||||
sub TypeArrayCopy(ByRef src as empty, ByRef dst as empty)
|
||||
sub TypeArrayFill(ByRef src as empty, fdata as empty)
|
||||
37
rcbasic_build/intern_lib/audio.bas
Normal file
37
rcbasic_build/intern_lib/audio.bas
Normal file
@@ -0,0 +1,37 @@
|
||||
function SoundFromBuffer(byref buffer, buffer_size, vol)
|
||||
function LoadSound(snd_file$)
|
||||
sub LoadMusic(music_file$)
|
||||
sub PlaySound(slot, channel, loops)
|
||||
sub PlaySoundTimed(slot, channel, loops, ms)
|
||||
sub PlayMusic(mLoops)
|
||||
sub PauseSound(channel)
|
||||
sub ResumeSound(channel)
|
||||
sub PauseMusic()
|
||||
sub ResumeMusic()
|
||||
sub DeleteSound(slot)
|
||||
sub DeleteMusic()
|
||||
sub FadeMusicIn(fade_time, loops)
|
||||
sub FadeMusicOut(fade_time)
|
||||
function MusicExists()
|
||||
sub SetMusicVolume(vol)
|
||||
function MusicVolume()
|
||||
sub SetMusicPosition(pos)
|
||||
function MusicPosition()
|
||||
sub RewindMusic()
|
||||
sub SetSoundChannels(max_channels)
|
||||
function NumSoundChannels()
|
||||
function SoundIsEnabled()
|
||||
function SoundExists(slot)
|
||||
sub SetChannelVolume(channel, vol)
|
||||
function ChannelVolume(channel)
|
||||
sub SetSoundVolume(slot, vol)
|
||||
function SoundVolume(slot)
|
||||
sub StopMusic()
|
||||
sub StopSound(channel)
|
||||
function SetChannelPanning(channel, left_value, right_value)
|
||||
function SetChannelDistance(channel, dist_value)
|
||||
function ChannelIsPlaying(channel)
|
||||
function ChannelIsPaused(channel)
|
||||
function QueryAudioSpec(ByRef freq, ByRef format, ByRef channels)
|
||||
function MusicIsPlaying()
|
||||
function SetChannelSpacePosition(channel, angle, distance)
|
||||
6
rcbasic_build/intern_lib/camera.bas
Normal file
6
rcbasic_build/intern_lib/camera.bas
Normal file
@@ -0,0 +1,6 @@
|
||||
sub SetCameraPosition( x, y, z)
|
||||
sub GetCameraPosition(ByRef x, ByRef y, ByRef z)
|
||||
sub TranslateCamera( x, y, z)
|
||||
sub SetCameraRotation( x, y, z)
|
||||
sub GetCameraRotation(ByRef x, ByRef y, ByRef z)
|
||||
sub RotateCamera( x, y, z)
|
||||
22
rcbasic_build/intern_lib/canvas.bas
Normal file
22
rcbasic_build/intern_lib/canvas.bas
Normal file
@@ -0,0 +1,22 @@
|
||||
function OpenCanvas( w, h, viewport_x, viewport_y, viewport_w, viewport_h, mode)
|
||||
Sub CloseCanvas(c_num)
|
||||
Sub SetCanvas3D(c_num, flag)
|
||||
sub SetCanvasVisible(c_num, flag)
|
||||
function CanvasIsVisible(c_num)
|
||||
sub SetCanvasViewport(cnum, x, y, w, h)
|
||||
sub GetCanvasViewport(c_num, byref x, byref y, byref w, byref h)
|
||||
sub Canvas(c_num)
|
||||
sub SetCanvasOffset(c_num, x, y)
|
||||
sub GetCanvasOffset(c_num, byref x, byref y)
|
||||
sub GetCanvasSize(c_num, byref w, byref h)
|
||||
sub ClearCanvas()
|
||||
sub SetCanvasAlpha(c_num, a)
|
||||
function CanvasAlpha(c_num)
|
||||
function SetCanvasColorMod(c_num, c)
|
||||
function CanvasColorMod(c_num)
|
||||
sub CopyCanvas(src, x, y, w, h, dst, dx, dy)
|
||||
sub CloneCanvas(src, dst)
|
||||
sub SetCanvasZ(c_num, z)
|
||||
function CanvasZ(c_num)
|
||||
function CanvasClip(x, y, w, h)
|
||||
function ActiveCanvas()
|
||||
3
rcbasic_build/intern_lib/clipboard.bas
Normal file
3
rcbasic_build/intern_lib/clipboard.bas
Normal file
@@ -0,0 +1,3 @@
|
||||
function ClipboardText$()
|
||||
sub SetClipboardText(txt$)
|
||||
function HasClipboardText()
|
||||
2
rcbasic_build/intern_lib/conio.bas
Normal file
2
rcbasic_build/intern_lib/conio.bas
Normal file
@@ -0,0 +1,2 @@
|
||||
sub FPrint(txt$)
|
||||
function Input$(prompt$)
|
||||
108
rcbasic_build/intern_lib/constraint3D.bas
Normal file
108
rcbasic_build/intern_lib/constraint3D.bas
Normal file
@@ -0,0 +1,108 @@
|
||||
function createPointConstraint( actorA, pxA, pyA, pzA)
|
||||
function createPointConstraintEx( actorA, actorB, pxA, pyA, pzA, pxB, pyB, pzB)
|
||||
sub setConstraintPivotA( constraint_id, x, y, z)
|
||||
sub setConstraintPivotB( constraint_id, x, y, z)
|
||||
function createHingeConstraint( actorA, pxA, pyA, pzA, axA, ayA, azA)
|
||||
function createHingeConstraintEx( actorA, actorB, pxA, pyA, pzA, pxB, pyB, pzB,
|
||||
function createSlideConstraint( actorA, frameInB_matrix, useLinearReferenceFrameA)
|
||||
function createSlideConstraintEx( actorA, actorB, frameInA_matrix, frameInB_matrix, useLinearReferenceFrameA)
|
||||
function createConeConstraint( actorA, rbAFrame_matrix)
|
||||
function createConeConstraintEx( actorA, actorB, rbAFrame_matrix, rbBFrame_matrix)
|
||||
sub deleteConstraint( constraint_id)
|
||||
sub getConstraintFrameOffsetA( constraint_id, ByRef x, ByRef y, ByRef z, ByRef rx, ByRef ry, ByRef rz)
|
||||
sub getConstraintFrameOffsetB( constraint_id, ByRef x, ByRef y, ByRef z, ByRef rx, ByRef ry, ByRef rz)
|
||||
sub useConstraintFrameOffset( constraint_id, flag)
|
||||
function getHingeAngle( constraint_id)
|
||||
function getHingeAngleEx( constraint_id, t_matrixA, t_matrixB)
|
||||
function getConstraintBreakingImpulseThreshold( constraint_id)
|
||||
function getConstraintAFrame( constraint_id, mA)
|
||||
function getConstraintBFrame( constraint_id, mA)
|
||||
sub setConstraintAxis( constraint_id, x, y, z)
|
||||
sub setConstraintBreakingImpulseThreshold( constraint_id, threshold)
|
||||
sub setConstraintFrames( constraint_id, frameA_matrix, frameB_matrix)
|
||||
sub setHingeLimit( constraint_id, low, high, softness, bias_factor, relaxation_factor)
|
||||
sub setConeLimit( constraint_id, swingSpan1, swingSpan2, twistSpan, softness, bias_factor, relaxation_factor)
|
||||
function getConstraintLimitBiasFactor( constraint_id)
|
||||
function getLimitRelaxationFactor( constraint_id)
|
||||
function getConstraintLimitSign( constraint_id)
|
||||
function getHingeSolveLimit( constraint_id)
|
||||
sub useHingeReferenceFrameA( constraint_id, flag)
|
||||
function getConstraintAppliedImpulse( constraint_id)
|
||||
function getConstraintFixedActor( constraint_id)
|
||||
sub getConstraintPivotA( constraint_id, ByRef x, ByRef y, ByRef z)
|
||||
sub getConstraintPivotB( constraint_id, ByRef x, ByRef y, ByRef z)
|
||||
function getConstraintActorA( constraint_id)
|
||||
function getConstraintActorB( constraint_id)
|
||||
sub setConstraintSolverIterations( constraint_id, num)
|
||||
function getConstraintBiasFactor( constraint_id)
|
||||
function getConstraintDamping( constraint_id)
|
||||
function getConstraintFixThresh( constraint_id)
|
||||
function getConstraintLimit( constraint_id, limit_index)
|
||||
function getConstraintLimitSoftness( constraint_id)
|
||||
function getConstraintSolverIterations( constraint_id)
|
||||
sub getConstraintAnglePoint( constraint_id, angle, len, ByRef x, ByRef y, ByRef z)
|
||||
function getConstraintAngularOnly( constraint_id)
|
||||
function getConstraintSolveSwingLimit( constraint_id)
|
||||
function getConstraintSolveTwistLimit( constraint_id)
|
||||
function getConstraintSolveLimit( constraint_id)
|
||||
function getConstraintSwingSpan1( constraint_id)
|
||||
function getConstraintSwingSpan2( constraint_id)
|
||||
function getConstraintTwistAngle( constraint_id)
|
||||
function getConstraintTwistLimitSign( constraint_id)
|
||||
function getConstraintTwistSpan( constraint_id)
|
||||
sub setConstraintAngularOnly( constraint_id, flag)
|
||||
sub setConstraintDamping( constraint_id, damping)
|
||||
sub setConstraintFixThresh( constraint_id, fixThresh)
|
||||
sub getConstraintAnchorA( constraint_id, ByRef x, ByRef y, ByRef z)
|
||||
sub getConstraintAnchorB( constraint_id, ByRef x, ByRef y, ByRef z)
|
||||
function getConstraintAngDepth( constraint_id)
|
||||
function getConstraintAngularPos( constraint_id)
|
||||
function getConstraintDampingDirAng( constraint_id)
|
||||
function getConstraintDampingDirLin( constraint_id)
|
||||
function getConstraintDampingLimAng( constraint_id)
|
||||
function getConstraintDampingLimLin( constraint_id)
|
||||
function getConstraintDampingOrthoAng( constraint_id)
|
||||
function getConstraintDampingOrthoLin( constraint_id)
|
||||
function getConstraintLinearPos( constraint_id)
|
||||
function getConstraintLinDepth( constraint_id)
|
||||
function getConstraintLowerAngLimit( constraint_id)
|
||||
function getConstraintLowerLinLimit( constraint_id)
|
||||
function getConstraintRestitutionDirAng( constraint_id)
|
||||
function getConstraintRestitutionDirLin( constraint_id)
|
||||
function getConstraintRestitutionLimAng( constraint_id)
|
||||
function getConstraintRestitutionLimLin( constraint_id)
|
||||
function getConstraintRestitutionOrthoAng( constraint_id)
|
||||
function getConstraintRestitutionOrthoLin( constraint_id)
|
||||
function getConstraintSoftnessDirAng( constraint_id)
|
||||
function getConstraintSoftnessDirLin( constraint_id)
|
||||
function getConstraintSoftnessLimAng( constraint_id)
|
||||
function getConstraintSoftnessLimLin( constraint_id)
|
||||
function getConstraintSoftnessOrthoAng( constraint_id)
|
||||
function getConstraintSoftnessOrthoLin( constraint_id)
|
||||
function getConstraintSolveAngLimit( constraint_id)
|
||||
function getConstraintSolveLinLimit( constraint_id)
|
||||
function getConstraintUpperAngLimit( constraint_id)
|
||||
function getConstraintUpperLinLimit( constraint_id)
|
||||
function getConstraintUseFrameOffset( constraint_id)
|
||||
sub setConstraintDampingDirAng( constraint_id, n)
|
||||
sub setConstraintDampingDirLin( constraint_id, n)
|
||||
sub setConstraintDampingLimAng( constraint_id, n)
|
||||
sub setConstraintDampingLimLin( constraint_id, n)
|
||||
sub setConstraintDampingOrthoAng( constraint_id, n)
|
||||
sub setConstraintDampingOrthoLin( constraint_id, n)
|
||||
sub setConstraintLowerAngLimit( constraint_id, n)
|
||||
sub setConstraintLowerLinLimit( constraint_id, n)
|
||||
sub setConstraintRestitutionDirAng( constraint_id, n)
|
||||
sub setConstraintRestitutionDirLin( constraint_id, n)
|
||||
sub setConstraintRestitutionLimAng( constraint_id, n)
|
||||
sub setConstraintRestitutionLimLin( constraint_id, n)
|
||||
sub setConstraintRestitutionOrthoAng( constraint_id, n)
|
||||
sub setConstraintRestitutionOrthoLin( constraint_id, n)
|
||||
sub setConstraintSoftnessDirAng( constraint_id, n)
|
||||
sub setConstraintSoftnessDirLin( constraint_id, n)
|
||||
sub setConstraintSoftnessLimAng( constraint_id, n)
|
||||
sub setConstraintSoftnessLimLin( constraint_id, n)
|
||||
sub setConstraintSoftnessOrthoAng( constraint_id, n)
|
||||
sub setConstraintSoftnessOrthoLin( constraint_id, n)
|
||||
sub setConstraintUpperAngLimit( constraint_id, n)
|
||||
sub setConstraintUpperLinLimit( constraint_id, n)
|
||||
6
rcbasic_build/intern_lib/datetime.bas
Normal file
6
rcbasic_build/intern_lib/datetime.bas
Normal file
@@ -0,0 +1,6 @@
|
||||
function Date$()
|
||||
function Easter$(year)
|
||||
function Ticks()
|
||||
function Time$()
|
||||
function Timer()
|
||||
sub Wait(m_sec)
|
||||
7
rcbasic_build/intern_lib/directories.bas
Normal file
7
rcbasic_build/intern_lib/directories.bas
Normal file
@@ -0,0 +1,7 @@
|
||||
sub ChangeDir(p$)
|
||||
function DirExists(p$)
|
||||
function DirFirst$()
|
||||
function Dir$()
|
||||
function DirNext$()
|
||||
function MakeDir(p$)
|
||||
function RemoveDir(p$)
|
||||
18
rcbasic_build/intern_lib/files.bas
Normal file
18
rcbasic_build/intern_lib/files.bas
Normal file
@@ -0,0 +1,18 @@
|
||||
function OpenFile(fileName$, mode)
|
||||
sub CloseFile( stream )
|
||||
function ReadByte(stream)
|
||||
sub WriteByte(stream, byte)
|
||||
function ReadLine$(stream)
|
||||
sub Write(stream, txt$)
|
||||
sub WriteLine(stream, txt$)
|
||||
sub CopyFile(src$, dst$)
|
||||
function RemoveFile(fileName$)
|
||||
function FileExists(fileName$)
|
||||
function MoveFile(src$, dst$)
|
||||
function RenameFile(src$, dst$)
|
||||
function FileLength(fileName$)
|
||||
function Tell(stream)
|
||||
function Seek(stream, pos)
|
||||
function EOF(stream)
|
||||
function WriteByteBuffer(stream, ByRef buf, buf_size)
|
||||
function ReadByteBuffer(stream, ByRef buf, buf_size)
|
||||
0
rcbasic_build/intern_lib/gfxconsole.bas
Normal file
0
rcbasic_build/intern_lib/gfxconsole.bas
Normal file
33
rcbasic_build/intern_lib/images.bas
Normal file
33
rcbasic_build/intern_lib/images.bas
Normal file
@@ -0,0 +1,33 @@
|
||||
function LoadImage( img$ )
|
||||
sub LoadImage_Ex(slot, img$, colkey)
|
||||
function createImage(w, h, byref buffer)
|
||||
function createImageEx(w, h, byref buffer, color)
|
||||
sub getImageBuffer(img_id, byref buffer)
|
||||
function ImageExists(slot)
|
||||
sub ColorKey(slot, c)
|
||||
sub setBilinearFilter( flag )
|
||||
function getBilinearFilter()
|
||||
function CopyImage( img_id )
|
||||
sub DeleteImage(slot)
|
||||
sub SetImageAlpha(slot, a)
|
||||
function getImageAlpha( img_id )
|
||||
sub GetImageSize(slot, byref w, byref h)
|
||||
sub SetBlendMode( blend_mode )
|
||||
function getBlendMode( blend_mode )
|
||||
function SetImageColorMod(slot, c)
|
||||
function ImageColorMod(slot)
|
||||
sub DrawImage(slot, x, y)
|
||||
sub DrawImage_Blit(slot, x, y, src_x, src_y, src_w, src_h)
|
||||
sub DrawImage_Blit_Ex(slot, x, y, w, h, src_x, src_y, src_w, src_h)
|
||||
sub DrawImage_Rotate(slot, x, y, angle)
|
||||
sub DrawImage_Rotate_Ex(slot, x, y, src_x, src_y, src_w, src_h, angle)
|
||||
sub DrawImage_Zoom(slot, x, y, zx, zy)
|
||||
sub DrawImage_Zoom_Ex(slot, x, y, src_x, src_y, src_w, src_h, zx, zy)
|
||||
sub DrawImage_Rotozoom(slot, x, y, angle, zx, zy)
|
||||
sub DrawImage_Rotozoom_Ex(slot, x, y, src_x, src_y, src_w, src_h, angle, zx, zy)
|
||||
sub DrawImage_Flip(slot, x, y, h, v)
|
||||
sub DrawImage_Flip_Ex(slot, x, y, src_x, src_y, src_w, src_h, h, v)
|
||||
function DrawGeometry(slot, num_vertices, ByRef vertices, num_indices, ByRef Indices)
|
||||
function SaveBMP(img, file$)
|
||||
function SavePNG(img, file$)
|
||||
function SaveJPG(img, file$)
|
||||
14
rcbasic_build/intern_lib/joystick.bas
Normal file
14
rcbasic_build/intern_lib/joystick.bas
Normal file
@@ -0,0 +1,14 @@
|
||||
function NumJoysticks()
|
||||
function NumJoyAxes(joy_num)
|
||||
function NumJoyButtons(joy_num)
|
||||
function NumJoyHats(joy_num)
|
||||
function NumJoyTrackBalls(joy_num)
|
||||
function JoyAxis(joy_num, joy_axis)
|
||||
function JoyButton(joy_num, joy_button)
|
||||
function JoyHat(joy_num, joy_hat)
|
||||
sub GetJoyTrackBall(joy_num, ball, byref dx, byref dy)
|
||||
function JoyName$(joy_num)
|
||||
function JoystickIsConnected(joy_num)
|
||||
sub JoyRumblePlay(joy_num, strength, duration)
|
||||
sub JoyRumbleStop(joy_num)
|
||||
function JoystickIsHaptic(joy_num)
|
||||
20
rcbasic_build/intern_lib/keyboard.bas
Normal file
20
rcbasic_build/intern_lib/keyboard.bas
Normal file
@@ -0,0 +1,20 @@
|
||||
function InKey()
|
||||
function Key(key_code)
|
||||
function WaitKey()
|
||||
sub HideMouse()
|
||||
sub ShowMouse()
|
||||
function MouseIsVisible()
|
||||
sub GetMouse(byref x, byref y, byref mb1, byref mb2, byref mb3)
|
||||
function MouseX()
|
||||
function MouseY()
|
||||
function MouseButton(mb)
|
||||
sub GetMouseWheel(byref x_axis, byref y_axis)
|
||||
function MouseWheelX()
|
||||
function MouseWheelY()
|
||||
sub GetGlobalMouse(ByRef x, ByRef y, ByRef mb1, ByRef mb2, ByRef mb3)
|
||||
function GlobalMouseX()
|
||||
function GlobalMouseY()
|
||||
sub WarpMouse(x, y)
|
||||
sub WarpMouseGlobal(x, y)
|
||||
sub SetMouseZone(x, y, w, h)
|
||||
sub ClearMouseZone()
|
||||
37
rcbasic_build/intern_lib/math.bas
Normal file
37
rcbasic_build/intern_lib/math.bas
Normal file
@@ -0,0 +1,37 @@
|
||||
function Abs(n)
|
||||
function ACos(n)
|
||||
function AndBit(a,b)
|
||||
function ASin(n)
|
||||
function ATan(n)
|
||||
function Bin$(n)
|
||||
function CInt32(i)
|
||||
function CInt64(i)
|
||||
function Cos(n)
|
||||
function Degrees(r)
|
||||
function Exp(n)
|
||||
function Frac(n)
|
||||
function Hex$(n)
|
||||
function HexVal(n$)
|
||||
function Int(n)
|
||||
function Log(n)
|
||||
function Max(a, b)
|
||||
function Min(a, b)
|
||||
function OrBit(a, b)
|
||||
function Radians(d)
|
||||
function Randomize(n)
|
||||
function Rand(n)
|
||||
function Round(n)
|
||||
function Sign(n)
|
||||
function Sin(n)
|
||||
function Sqrt(n)
|
||||
function Tan(n)
|
||||
function XOrBit(a, b)
|
||||
Function GetLineIntersection(p0_x, p0_y, p1_x, p1_y, p2_x, p2_y, p3_x, p3_y, ByRef i_x, ByRef i_y)
|
||||
Function Interpolate(min_a, max_a, mid_a, min_b, max_b)
|
||||
Function ATan2(y, x)
|
||||
function PointInQuad(x, y, x1, y1, x2, y2, x3, y3, x4, y4)
|
||||
function PointInTri(x, y, x1, y1, x2, y2, x3, y3)
|
||||
Function Distance2D(x1, y1, x2, y2)
|
||||
Function Distance3D(x1, y1, z1, x2, y2, z2)
|
||||
function GetCircleLineIntersection(circle_x, circle_y, radius, x1, y1, x2, y2, ByRef ix1, ByRef iy1, ByRef ix2, ByRef iy2)
|
||||
function GetLinePlaneIntersection(ByRef line_point, ByRef line_direction, ByRef plane_point_1, ByRef plane_point_2, ByRef plane_point_3, ByRef intersection)
|
||||
48
rcbasic_build/intern_lib/matrix.bas
Normal file
48
rcbasic_build/intern_lib/matrix.bas
Normal file
@@ -0,0 +1,48 @@
|
||||
function DimMatrix(m_rows, m_cols)
|
||||
Sub DeleteMatrix(mA)
|
||||
function AddMatrix(mA, mB, mC)
|
||||
function AugmentMatrix (mA, mB, mC)
|
||||
sub CopyMatrix(mA, mB)
|
||||
function InsertMatrixColumns(mA, c, num_cols)
|
||||
function InsertMatrixRows(mA, r, num_rows)
|
||||
function MultiplyMatrix (mA, mB, mC)
|
||||
function CubeMatrix(mA, mB)
|
||||
function DeleteMatrixColumns(mA, c, num_cols)
|
||||
function DeleteMatrixRows(mA, r, num_rows)
|
||||
sub ClearMatrix(mA)
|
||||
function ClearMatrixColumns (mA, c, num_cols)
|
||||
function ClearMatrixRows(mA, r, num_rows)
|
||||
sub FillMatrix(mA, v)
|
||||
function FillMatrixColumns(mA, c, num_cols, v)
|
||||
function FillMatrixRows(mA, r, num_rows, v)
|
||||
function CopyMatrixColumns(mA, mB, c, num_cols)
|
||||
function CopyMatrixRows (mA, mB, r, num_rows)
|
||||
sub IdentityMatrix(mA, n)
|
||||
function SolveMatrix(mA, mB, mC)
|
||||
function IsEqualMatrix(mA, mB, tolerance)
|
||||
function Determinant(mA)
|
||||
function AdjointMatrix(mA, mB)
|
||||
function InvertMatrix(mA, mB)
|
||||
sub MatrixFromBuffer(mA, r, c, ByRef buffer)
|
||||
sub GetMatrix(ByRef buffer, mA)
|
||||
sub RandomizeMatrix(mA, vmin, vmax)
|
||||
function MatrixValue(mA, r, c)
|
||||
sub SetMatrixValue(mA, r, c, v)
|
||||
sub ScalarMatrix (mA, mB, s_value)
|
||||
function ScalarMatrixColumns(mA, mB, c, num_cols, s_value)
|
||||
function ScalarMatrixRows(mA, mB, r, num_rows, s_value)
|
||||
function SquareMatrix(mA, mB)
|
||||
sub CofactorMatrix(mA, r, c)
|
||||
function SubtractMatrix (mA, mB, mC)
|
||||
sub SwapMatrix(mA, mB)
|
||||
function SwapMatrixColumn(mA, C1, C2)
|
||||
function SwapMatrixRow(mA, R1, R2)
|
||||
function TransposeMatrix(mA, mB)
|
||||
function UnAugmentMatrix(mA, mB, mC)
|
||||
sub ZeroMatrix(mA)
|
||||
sub GetMatrixSize(mA, ByRef r, ByRef c)
|
||||
sub IncrementMatrixRows(mA, mB, r, num_rows, value)
|
||||
sub IncrementMatrixColumns(mA, mB, c, num_cols, value)
|
||||
sub JoinMatrixRows(mA, mB, mC)
|
||||
sub JoinMatrixColumns(mA, mB, mC)
|
||||
sub ClipMatrix(mA, r, c, num_rows, num_cols, mB)
|
||||
5
rcbasic_build/intern_lib/mesh.bas
Normal file
5
rcbasic_build/intern_lib/mesh.bas
Normal file
@@ -0,0 +1,5 @@
|
||||
function LoadMesh( mesh_file$ )
|
||||
sub DeleteMesh( mesh )
|
||||
function CreateMesh( )
|
||||
sub AddMeshBuffer( mesh, vertex_count, ByRef vertex_data, ByRef normal_data, ByRef uv_data, index_count, ByRef index_data )
|
||||
function LoadMeshFromArchive( archive$, mesh_file$ )
|
||||
18
rcbasic_build/intern_lib/network.bas
Normal file
18
rcbasic_build/intern_lib/network.bas
Normal file
@@ -0,0 +1,18 @@
|
||||
function CheckSockets(timeout_ms)
|
||||
function TCP_SocketReady(socket)
|
||||
function UDP_SocketReady(socket)
|
||||
function TCP_OpenSocket(host$, port)
|
||||
sub TCP_CloseSocket(socket)
|
||||
function TCP_RemoteHost(socket)
|
||||
function TCP_RemotePort(socket)
|
||||
function TCP_GetData(socket, ByRef sData$, numBytes)
|
||||
sub TCP_SendData(socket, sData$)
|
||||
function TCP_AcceptSocket(server, client)
|
||||
function UDP_OpenSocket(port)
|
||||
sub UDP_CloseSocket(socket)
|
||||
function UDP_GetData(socket, byref sData$, byref host$, byref port)
|
||||
function UDP_Length()
|
||||
function UDP_MaxLength()
|
||||
function UDP_RemoteHost$(socket)
|
||||
function UDP_RemotePort(socket)
|
||||
sub UDP_SendData(socket, sData$, host$, port)
|
||||
14
rcbasic_build/intern_lib/prim2d.bas
Normal file
14
rcbasic_build/intern_lib/prim2d.bas
Normal file
@@ -0,0 +1,14 @@
|
||||
sub Circle(x,y,radius)
|
||||
sub CircleFill(x,y,radius)
|
||||
sub Ellipse(x,y,rx,ry)
|
||||
sub EllipseFill(x,y,rx,ry)
|
||||
sub FloodFill(x,y)
|
||||
function GetPixel(x,y)
|
||||
sub SetColor(c)
|
||||
sub Line(x1, y1, x2, y2)
|
||||
sub Poly(n, byref x, byref y)
|
||||
sub Rect(x, y, w, h)
|
||||
sub RectFill(x, y, w, h)
|
||||
function RGB(r,g,b)
|
||||
function RGBA(r,g,b,a)
|
||||
sub PSet(x,y)
|
||||
0
rcbasic_build/intern_lib/process.bas
Normal file
0
rcbasic_build/intern_lib/process.bas
Normal file
0
rcbasic_build/intern_lib/sprite_physics.bas
Normal file
0
rcbasic_build/intern_lib/sprite_physics.bas
Normal file
3
rcbasic_build/intern_lib/sprites.bas
Normal file
3
rcbasic_build/intern_lib/sprites.bas
Normal file
@@ -0,0 +1,3 @@
|
||||
function CreateSprite( img )
|
||||
Sub DeleteSprite( sprite )
|
||||
Sub SetSpritePosition( sprite, x, y )
|
||||
14
rcbasic_build/intern_lib/stacks.bas
Normal file
14
rcbasic_build/intern_lib/stacks.bas
Normal file
@@ -0,0 +1,14 @@
|
||||
function CreateStack_N( )
|
||||
function CreateStack_S()
|
||||
sub ClearStack_N()
|
||||
sub ClearStack_S()
|
||||
sub DeleteStack_N( stack_id )
|
||||
sub DeleteStack_S( stack_id )
|
||||
sub Stack_N(n)
|
||||
sub Stack_S(n)
|
||||
sub Push_N(n)
|
||||
function Pop_N()
|
||||
sub Push_S(s$)
|
||||
function Pop_S$()
|
||||
function Stack_Size_N()
|
||||
function Stack_Size_S()
|
||||
26
rcbasic_build/intern_lib/strings.bas
Normal file
26
rcbasic_build/intern_lib/strings.bas
Normal file
@@ -0,0 +1,26 @@
|
||||
function Asc(c$)
|
||||
function Chr$(n)
|
||||
function Insert$(src$, tgt$, pos)
|
||||
function InStr(src$, substr$)
|
||||
function LCase$(src$)
|
||||
function Left$(src$, n)
|
||||
function Length(src$)
|
||||
function Len(src$)
|
||||
function LTrim$(src$)
|
||||
function Mid$(src$, start, n)
|
||||
function ReplaceSubstr$(src$, rpc$, pos)
|
||||
function Replace$(src$, tgt$, rpc$)
|
||||
function Reverse$(src$)
|
||||
function Right$(src$, n)
|
||||
function RTrim$(src$)
|
||||
function StringFill$(src$, n)
|
||||
function Str$(n)
|
||||
function Str_F$(n)
|
||||
function Str_S$(n)
|
||||
function Tally(src$, substr$)
|
||||
function Trim$(src$)
|
||||
function UCase$(src$)
|
||||
function Val(n$)
|
||||
function Size(s$)
|
||||
function BufferFromString(s$, ByRef buffer)
|
||||
function StringFromBuffer$(ByRef buffer, buffer_size)
|
||||
21
rcbasic_build/intern_lib/system.bas
Normal file
21
rcbasic_build/intern_lib/system.bas
Normal file
@@ -0,0 +1,21 @@
|
||||
function System(cmd$)
|
||||
function OS$()
|
||||
function Command$(arg)
|
||||
function NumCommands()
|
||||
function Env$(v$)
|
||||
sub SetEnv(var$, value$, overwrite)
|
||||
function PrefPath$(org_name$, app_name$)
|
||||
function Android_GetExternalStoragePath$()
|
||||
function Android_GetExternalStorageState()
|
||||
function Android_GetInternalStoragePath$()
|
||||
function Android_JNI_Message$(arg$)
|
||||
function Runtime_Utility_Message$(arg$)
|
||||
Sub GetDesktopDisplayMode(index, ByRef w, ByRef h, ByRef freq)
|
||||
Sub GetPowerInfo(ByRef status, ByRef secs, ByRef pct)
|
||||
Function EvalJS$(js_code$) 'Only useable in Emscripten
|
||||
function SystemReturnStdOut$(cmd$) 'new
|
||||
function OpenURL(url$)
|
||||
function APIVersion$()
|
||||
function MessageBox(title$, msg$)
|
||||
function Runtime$()
|
||||
function NumCPUs()
|
||||
9
rcbasic_build/intern_lib/text.bas
Normal file
9
rcbasic_build/intern_lib/text.bas
Normal file
@@ -0,0 +1,9 @@
|
||||
function LoadFont(fnt_file$, size)
|
||||
sub DeleteFont(slot)
|
||||
Function FontExists(slot)
|
||||
sub Font(slot)
|
||||
sub DrawText(txt$, x, y)
|
||||
sub RenderText(slot, txt$)
|
||||
sub GetTextSize(txt$, byref w, byref h)
|
||||
function GetTextWidth(txt$)
|
||||
function GetTextHeight(txt$)
|
||||
5
rcbasic_build/intern_lib/textedit.bas
Normal file
5
rcbasic_build/intern_lib/textedit.bas
Normal file
@@ -0,0 +1,5 @@
|
||||
sub ReadInput_Start()
|
||||
sub ReadInput_Stop()
|
||||
function ReadInput_Text$()
|
||||
sub ReadInput_SetText(txt$)
|
||||
sub ReadInput_ToggleBackspace(flag)
|
||||
0
rcbasic_build/intern_lib/tilemaps.bas
Normal file
0
rcbasic_build/intern_lib/tilemaps.bas
Normal file
11
rcbasic_build/intern_lib/touch.bas
Normal file
11
rcbasic_build/intern_lib/touch.bas
Normal file
@@ -0,0 +1,11 @@
|
||||
function TouchPressure()
|
||||
sub GetTouch(byref status, byref x, byref y, byref dx, byref dy)
|
||||
sub GetMultiTouch(byref status, byref x, byref y, byref fingers, byref dist, byref theta)
|
||||
sub GetTouchFinger(finger, byref x, byref y, byref pressure)
|
||||
function NumFingers()
|
||||
sub GetAccel(accel_num, ByRef x, ByRef y, ByRef z)
|
||||
function AccelName$(accel_num)
|
||||
function NumAccels()
|
||||
sub GetGyro(gyro_num, ByRef x, ByRef y, ByRef z)
|
||||
function GyroName$(gyro_num)
|
||||
function NumGyros()
|
||||
16
rcbasic_build/intern_lib/video.bas
Normal file
16
rcbasic_build/intern_lib/video.bas
Normal file
@@ -0,0 +1,16 @@
|
||||
sub LoadVideo(vid$)
|
||||
sub PlayVideo(vLoops)
|
||||
sub PauseVideo()
|
||||
sub StopVideo()
|
||||
sub SetVideoPosition(pos)
|
||||
sub ResumeVideo()
|
||||
function VideoPosition()
|
||||
sub DeleteVideo()
|
||||
function VideoIsPlaying()
|
||||
function VideoEnd()
|
||||
sub GetVideoStats(vFile$, byref vLen, byref vfps, byref frame_w, byref frame_h)
|
||||
sub SetVideoDrawRect(x, y, w, h)
|
||||
sub GetVideoDrawRect(byref x, byref y, byref w, byref h)
|
||||
sub GetVideoSize(byref w, byref h)
|
||||
function VideoExists()
|
||||
sub SetVideoAlpha(a)
|
||||
51
rcbasic_build/intern_lib/window.bas
Normal file
51
rcbasic_build/intern_lib/window.bas
Normal file
@@ -0,0 +1,51 @@
|
||||
Function OpenWindow( title$, w, h, fullscreen, vsync )
|
||||
function OpenWindowEx(title$, x, y, w, h, mode, aa, stencil_buffer, vsync)
|
||||
sub CloseWindow( )
|
||||
sub RaiseWindow( )
|
||||
sub Update()
|
||||
sub Cls()
|
||||
sub SetClearColor(c)
|
||||
sub ShowWindow( )
|
||||
sub HideWindow( )
|
||||
sub SetWindowTitle( title$ )
|
||||
function WindowTitle$( )
|
||||
sub SetWindowPosition( x, y )
|
||||
sub GetWindowPosition( byref x, byref y )
|
||||
sub SetWindowSize( w, h )
|
||||
sub GetWindowSize( byref w, byref h )
|
||||
sub SetWindowMinSize( w, h)
|
||||
sub GetWindowMinSize( byref w, byref h)
|
||||
sub SetWindowMaxSize( w, h)
|
||||
sub GetWindowMaxSize( byref w, byref h)
|
||||
function WindowIsFullscreen()
|
||||
function WindowIsVisible()
|
||||
function WindowIsBordered()
|
||||
function WindowIsResizable()
|
||||
function WindowIsMinimized()
|
||||
function WindowIsMaximized()
|
||||
function WindowHasInputFocus()
|
||||
function WindowHasMouseFocus()
|
||||
sub SetWindowFullscreen( flag)
|
||||
sub MaximizeWindow()
|
||||
sub MinimizeWindow()
|
||||
sub SetWindowBorder( flag)
|
||||
function WindowClip(x, y, w, h)
|
||||
function WindowExists()
|
||||
function NumWindows()
|
||||
function WindowEvent_Close()
|
||||
function WindowEvent_Maximize()
|
||||
function WindowEvent_Minimize()
|
||||
function FPS()
|
||||
sub SetWindowIcon( slot)
|
||||
function WindowEvent_Resize()
|
||||
sub SetWindowAutoClose( exit_on_close )
|
||||
sub SetWindowResizable( flag )
|
||||
function WindowMode(visible, fullscreen, resizable, borderless, highDPI)
|
||||
function getWindowMode( )
|
||||
sub RestoreWindow( )
|
||||
sub GrabInput(flag)
|
||||
function GrabbedWindow()
|
||||
sub SetWindowAlwaysOnTop(win, flag)
|
||||
sub SetMouseRelative(flag)
|
||||
sub SetWindowVSync(win, flag)
|
||||
function FlashWindow(win)
|
||||
Reference in New Issue
Block a user