Compare commits
39 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
101e6a34c7 | ||
|
|
acdc78a149 | ||
|
|
eab4029642 | ||
|
|
a3b99950db | ||
|
|
979c946429 | ||
|
|
17b420578c | ||
|
|
8e161a1a22 | ||
|
|
4723ed8c6f | ||
|
|
a7f13b98ad | ||
|
|
b88688bea7 | ||
|
|
d91146db60 | ||
|
|
ff01fa83f4 | ||
|
|
f2af1d4045 | ||
|
|
a2c9d4952c | ||
|
|
070cbe2898 | ||
|
|
44eb4aa236 | ||
|
|
0ef552910a | ||
|
|
ac2cb91b18 | ||
|
|
0f24f30c38 | ||
|
|
9c5aaa8db6 | ||
|
|
33919725bf | ||
|
|
25e225ff96 | ||
|
|
94a9bb08fb | ||
|
|
8b8be85dea | ||
|
|
6f93be7a23 | ||
|
|
33edf29fd0 | ||
|
|
d3c508f149 | ||
|
|
a4e9fdd9fd | ||
|
|
4c4c4d4952 | ||
|
|
c30bade6c7 | ||
|
|
ba3bbd2fc8 | ||
|
|
7b87adc07e | ||
|
|
6bf8a310a1 | ||
|
|
c4af461e3d | ||
|
|
2381c84fe5 | ||
|
|
80435becff | ||
|
|
f9092efbba | ||
|
|
323e91e4df | ||
|
|
f963213013 |
190
RCBasic_Dev_Setup.bat
Normal file
190
RCBasic_Dev_Setup.bat
Normal file
@@ -0,0 +1,190 @@
|
||||
cd ..
|
||||
|
||||
set DEV_BASE_DIR=%CD%
|
||||
|
||||
git clone --branch sdl2_device https://github.com/n00b87/RCIrrlicht.git
|
||||
|
||||
git clone --branch irrlicht_loader https://github.com/n00b87/an8-parser.git
|
||||
|
||||
git clone https://github.com/n00b87/RCDocs.git
|
||||
git clone https://github.com/n00b87/IrrTheora.git
|
||||
git clone https://github.com/n00b87/irrBullet.git
|
||||
|
||||
git clone --branch "VER-2-13-3" https://github.com/freetype/freetype.git
|
||||
|
||||
curl -Lo SDL2-devel-2.30.10-mingw.zip "https://github.com/libsdl-org/SDL/releases/download/release-2.30.10/SDL2-devel-2.30.10-mingw.zip"
|
||||
tar -xf SDL2-devel-2.30.10-mingw.zip
|
||||
rename SDL2-2.30.10 SDL2-dev
|
||||
|
||||
curl -Lo SDL2_image-devel-2.8.3-mingw.zip "https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.3/SDL2_image-devel-2.8.3-mingw.zip"
|
||||
tar -xf SDL2_image-devel-2.8.3-mingw.zip
|
||||
rename SDL2_image-2.8.3 SDL2_image-dev
|
||||
|
||||
curl -Lo SDL2_mixer-devel-2.8.0-mingw.zip "https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.8.0/SDL2_mixer-devel-2.8.0-mingw.zip"
|
||||
tar -xf SDL2_mixer-devel-2.8.0-mingw.zip
|
||||
rename SDL2_mixer-2.8.0 SDL2_mixer-dev
|
||||
|
||||
curl -Lo SDL2_net-devel-2.2.0-mingw.zip "https://github.com/libsdl-org/SDL_net/releases/download/release-2.2.0/SDL2_net-devel-2.2.0-mingw.zip"
|
||||
tar -xf SDL2_net-devel-2.2.0-mingw.zip
|
||||
rename SDL2_net-2.2.0 SDL2_net-dev
|
||||
|
||||
git clone --branch "v1.1.1" https://github.com/xiph/theora.git
|
||||
git clone --branch "v1.1.1" https://github.com/xiph/theora.git theora64
|
||||
git clone --branch "v1.3.7" https://github.com/xiph/vorbis.git
|
||||
git clone --branch "v1.3.5" https://github.com/xiph/ogg.git
|
||||
|
||||
git clone --branch "v2.4.2" https://github.com/erincatto/box2d.git
|
||||
git clone --branch "3.25" https://github.com/bulletphysics/bullet3.git
|
||||
|
||||
cd ogg
|
||||
|
||||
set TMP_PATH=%PATH%
|
||||
|
||||
set PATH=%MINGW32%\bin;%PATH%
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "MinGW Makefiles" ..
|
||||
mingw32-make
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd ..
|
||||
|
||||
set PATH=%MINGW64%\bin;%PATH%
|
||||
mkdir build64
|
||||
cd build64
|
||||
cmake -G "MinGW Makefiles" ..
|
||||
mingw32-make
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd %DEV_BASE_DIR%
|
||||
|
||||
cd vorbis
|
||||
|
||||
set PATH=%MINGW32%\bin;%PATH%
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "MinGW Makefiles" .. -DOGG_INCLUDE_DIR=%DEV_BASE_DIR%\ogg\include -DOGG_LIBRARY=%DEV_BASE_DIR%\ogg\build\libogg.a
|
||||
mingw32-make
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd ..
|
||||
|
||||
set PATH=%MINGW64%\bin;%PATH%
|
||||
mkdir build64
|
||||
cd build64
|
||||
cmake -G "MinGW Makefiles" .. -DOGG_INCLUDE_DIR=%DEV_BASE_DIR%\ogg\include -DOGG_LIBRARY=%DEV_BASE_DIR%\ogg\build64\libogg.a
|
||||
mingw32-make
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd %DEV_BASE_DIR%
|
||||
|
||||
set PATH=%MINGW32%\bin;%PATH%
|
||||
cd theora\win32\xmingw32
|
||||
set bash="C:\Program Files\Git\bin\sh.exe"
|
||||
%bash% --login -i -c "export dev_dir=$PWD/../../.. && export C_INCLUDE_PATH=$dev_dir/ogg/include && export C_INCLUDE_PATH=$dev_dir/vorbis/include:$C_INCLUDE_PATH && export LIBRARY_PATH=$dev_dir/ogg/build:$LIBRARY_PATH && export LIBRARY_PATH=$dev_dir/vorbis/build/lib:$LIBRARY_PATH && mingw32-make libtheoradec.dll"
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd %DEV_BASE_DIR%
|
||||
|
||||
set PATH=%MINGW64%\bin;%PATH%
|
||||
cd theora64\win32\xmingw32
|
||||
set bash="C:\Program Files\Git\bin\sh.exe"
|
||||
%bash% --login -i -c "export dev_dir=$PWD/../../.. && export C_INCLUDE_PATH=$dev_dir/ogg/include && export C_INCLUDE_PATH=$dev_dir/vorbis/include:$C_INCLUDE_PATH && export LIBRARY_PATH=$dev_dir/ogg/build64:$LIBRARY_PATH && export LIBRARY_PATH=$dev_dir/vorbis/build64/lib:$LIBRARY_PATH && mingw32-make libtheoradec.dll"
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd %DEV_BASE_DIR%
|
||||
|
||||
|
||||
cd box2d
|
||||
|
||||
set PATH=%MINGW32%\bin;%PATH%
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "MinGW Makefiles" ..
|
||||
mingw32-make
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd ..
|
||||
|
||||
set PATH=%MINGW64%\bin;%PATH%
|
||||
mkdir build64
|
||||
cd build64
|
||||
cmake -G "MinGW Makefiles" ..
|
||||
mingw32-make
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd %DEV_BASE_DIR%
|
||||
|
||||
|
||||
|
||||
cd bullet3
|
||||
|
||||
cd src
|
||||
mklink /J bullet %CD%
|
||||
cd ..
|
||||
|
||||
set PATH=%MINGW32%\bin;%PATH%
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "MinGW Makefiles" .. -DBUILD_OPENGL3_DEMOS=OFF -DBUILD_BULLET2_DEMOS=OFF -DBUILD_UNIT_TESTS=OFF -DUSE_GRAPHICAL_BENCHMARK=OFF
|
||||
mingw32-make
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd ..
|
||||
|
||||
set PATH=%MINGW64%\bin;%PATH%
|
||||
mkdir build64
|
||||
cd build64
|
||||
cmake -G "MinGW Makefiles" .. -DBUILD_OPENGL3_DEMOS=OFF -DBUILD_BULLET2_DEMOS=OFF -DBUILD_UNIT_TESTS=OFF -DUSE_GRAPHICAL_BENCHMARK=OFF
|
||||
mingw32-make
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd %DEV_BASE_DIR%
|
||||
|
||||
|
||||
cd freetype
|
||||
|
||||
cd include
|
||||
mklink /J freetype2 %CD%
|
||||
cd ..
|
||||
|
||||
set PATH=%MINGW32%\bin;%PATH%
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "MinGW Makefiles" ..
|
||||
mingw32-make
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd ..
|
||||
|
||||
set PATH=%MINGW64%\bin;%PATH%
|
||||
mkdir build64
|
||||
cd build64
|
||||
cmake -G "MinGW Makefiles" ..
|
||||
mingw32-make
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd %DEV_BASE_DIR%
|
||||
|
||||
|
||||
cd RCIrrlicht\include
|
||||
del IrrCompileConfig.h
|
||||
rename IrrCompileConfig_win.h IrrCompileConfig.h
|
||||
cd %DEV_BASE_DIR%
|
||||
|
||||
cd RCIrrlicht\source\Irrlicht
|
||||
|
||||
set PATH=%CODEBLOCKS_DIR%;%PATH%
|
||||
|
||||
codeblocks --clean --target="Win32 - Release - accurate math - dll" Irrlicht-gcc.cbp
|
||||
codeblocks --clean --target="Release64 - accurate math - dll" Irrlicht-gcc.cbp
|
||||
|
||||
codeblocks --build --target="Win32 - Release - accurate math - dll" Irrlicht-gcc.cbp
|
||||
codeblocks --build --target="Release64 - accurate math - dll" Irrlicht-gcc.cbp
|
||||
|
||||
set PATH=%TMP_PATH%
|
||||
|
||||
cd %DEV_BASE_DIR%
|
||||
|
||||
echo ------------------------
|
||||
echo Setup Complete
|
||||
39
RCBasic_Dev_Setup.sh
Normal file
39
RCBasic_Dev_Setup.sh
Normal file
@@ -0,0 +1,39 @@
|
||||
sudo apt update
|
||||
|
||||
sudo apt install git
|
||||
sudo apt install make
|
||||
sudo apt install cmake
|
||||
sudo apt install g++
|
||||
sudo apt install geany
|
||||
sudo apt install spice-webdavd spice-client-gtk
|
||||
sudo apt install codeblocks
|
||||
sudo apt install python3
|
||||
sudo apt install openjdk-21-jdk
|
||||
|
||||
cd ..
|
||||
|
||||
git clone --branch "v2.4.2" https://github.com/erincatto/box2d.git
|
||||
git clone --branch "3.21" https://github.com/bulletphysics/bullet3.git
|
||||
|
||||
sudo apt install libsdl2-dev
|
||||
sudo apt install libsdl2-image-dev
|
||||
sudo apt install libsdl2-mixer-dev
|
||||
sudo apt install libsdl2-net-dev
|
||||
|
||||
sudo apt install libogg-dev
|
||||
sudo apt install libvorbis-dev
|
||||
sudo apt install libtheora-dev
|
||||
|
||||
git clone git@github.com:n00b87/RCBASIC4.git
|
||||
git clone git@github.com:n00b87/an8-parser.git --branch irrlicht_loader
|
||||
git clone git@github.com:n00b87/IrrTheora.git
|
||||
git clone git@github.com:n00b87/RCBasic-Studio.git
|
||||
git clone git@github.com:n00b87/RCIrrlicht.git --branch sdl2_device
|
||||
git clone git@github.com:n00b87/RCIrrlicht.git RCIrrlicht_em --branch ogles2_sdl2
|
||||
git clone git@github.com:n00b87/irrBullet.git
|
||||
git clone git@github.com:n00b87/RCDocs.git
|
||||
|
||||
git clone https://github.com/emscripten-core/emsdk.git
|
||||
cd emsdk
|
||||
./emsdk install 3.1.72
|
||||
./emsdk activate 3.1.72
|
||||
13
README.md
13
README.md
@@ -1,2 +1,15 @@
|
||||
# RCBASIC4
|
||||
Version 4 of the RCBasic Programming Language Compiler and Runtime
|
||||
|
||||
## Setup Build Environment
|
||||
|
||||
### On Windows
|
||||
1. Install the following software: Codeblocks, MinGW32, MinGW64, Git, and CMake
|
||||
2. Set MINGW32 and MINGW64 environment variables to the root of each tool
|
||||
3. Set CODEBLOCKS_DIR to Codeblocks root
|
||||
4. Run RCBasic_Dev_Setup.bat
|
||||
|
||||
### On Linux
|
||||
1. Run RCBasic_Dev_Setup.sh
|
||||
|
||||
NOTE: The linux setup script is still a work in progress.
|
||||
|
||||
@@ -12,19 +12,19 @@
|
||||
Returns the canvas that drawing commands are currently applied to
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_number">1</span> = OpenCanvas<b>(</b><span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span><b>)</b> <br>
|
||||
<span class="rc_number">2</span> = OpenCanvas<b>(</b><span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span><b>)</b> <br>
|
||||
c1 = OpenCanvas<b>(</b><span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span><b>)</b> <br>
|
||||
c2 = OpenCanvas<b>(</b><span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span><b>)</b> <br>
|
||||
<br>
|
||||
Canvas<b>(</b><span class="rc_number">1</span><b>)</b> <br>
|
||||
Canvas<b>(</b>c1<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">If</span> ActiveCanvas<b>(</b><b>)</b> = <span class="rc_number">1</span> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Active canvas is c1"</span> <br>
|
||||
<span class="rc_keyword">If</span> ActiveCanvas<b>(</b><b>)</b> = c1 <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Active canvas is c1"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
<br>
|
||||
Canvas<b>(</b><span class="rc_number">2</span><b>)</b> <br>
|
||||
Canvas<b>(</b>c2<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">If</span> ActiveCanvas<b>(</b><b>)</b> = <span class="rc_number">2</span> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Active canvas is now c2"</span> <br>
|
||||
<span class="rc_keyword">If</span> ActiveCanvas<b>(</b><b>)</b> = c2 <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Active canvas is now c2"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>actorAnimationIsLooped [RCBasic Doc] </title>
|
||||
<title>ActorAnimationIsLooped [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function actorAnimationIsLooped( actor ) </h2></p>
|
||||
<p><h2>function ActorAnimationIsLooped( actor ) </h2></p>
|
||||
<p>
|
||||
Returns true if an actors animation is set to looped.
|
||||
</p>
|
||||
<p>
|
||||
Note: Actor animation is set to looped with the loopActorAnimation() function.
|
||||
Note: Actor animation is set to looped with the LoopActorAnimation() function.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="loopactoranimation.html">loopActorAnimation</a>
|
||||
<a href="loopactoranimation.html">LoopActorAnimation</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
<body>
|
||||
<p><h2>function ActorExists( actor ) </h2></p>
|
||||
<p>
|
||||
Returns true if the id passed is a valid actor
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -12,7 +12,7 @@
|
||||
Cast a shadow on an actor during lighting calculations
|
||||
</p>
|
||||
<p>
|
||||
Note: Also check the section on lights for more info
|
||||
Note: Also check the section on lights for more info
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="removeactorshadow.html">RemoveActorShadow</a>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function AdjointMatrix(mA, mB) </h2></p>
|
||||
<p>
|
||||
Stores the adjoint matrix of mA in mB
|
||||
Stores the adjoint matrix of mA in mB
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</ul>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">If</span> AndBit<b>(</b> Android_GetExternalStorageState<b>(</b><b>)</b>, ANDROID_EXTERNAL_STORAGE_READ <b>)</b> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Can read from external storage"</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Can read from external storage"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
</code></p>
|
||||
<br><p>Related:
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
ApplyActorCentralImpulse<b>(</b>actor, <span class="rc_number">300</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span><b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">True</span> <br>
|
||||
<span class="rc_keyword">If</span> <span class="rc_keyword">Not</span> init_damping <span class="rc_keyword">Then</span> <br>
|
||||
ApplyActorDamping<b>(</b>actor, <span class="rc_number">5.0</span><b>)</b> <span class="rc_comment">'Will apply the damping effect for 5 seconds </span><br>
|
||||
init_damping = <span class="rc_keyword">True</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
<span class="rc_keyword">If</span> <span class="rc_keyword">Not</span> init_damping <span class="rc_keyword">Then</span> <br>
|
||||
ApplyActorDamping<b>(</b>actor, <span class="rc_number">5.0</span><b>)</b> <span class="rc_comment">'Will apply the damping effect for 5 seconds </span><br>
|
||||
init_damping = <span class="rc_keyword">True</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<br><p>Related:
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>applyActorImpulseWorld [RCBasic Doc] </title>
|
||||
<title>ApplyActorImpulseWorld [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub applyActorImpulseWorld( actor, x, y, z, rel_x, rel_y, rel_z) </h2></p>
|
||||
<p><h2>Sub ApplyActorImpulseWorld( actor, x, y, z, rel_x, rel_y, rel_z) </h2></p>
|
||||
<p>
|
||||
Applies an impulse to an actor at a specific point. Unlike ApplyActorCentralImpulse(local/world), which applies impulse only at the center of mass (affecting linear velocity), this can generate both linear motion and rotation (torque), depending on where the force is applied relative to the center of mass.
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>applyActorTorqueImpulseLocal [RCBasic Doc] </title>
|
||||
<title>ApplyActorTorqueImpulseLocal [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub applyActorTorqueImpulseLocal( actor, x, y, z) </h2></p>
|
||||
<p><h2>Sub ApplyActorTorqueImpulseLocal( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies an impulse that directly affects the angular velocity of an actor, causing it to rotate. This is similar to applying an impulse, but instead of changing the linear velocity (which applyActorCentralImpulse does), it alters the body's rotational motion (angular velocity) instantaneously.
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>applyActorTorqueImpulseWorld [RCBasic Doc] </title>
|
||||
<title>ApplyActorTorqueImpulseWorld [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub applyActorTorqueImpulseWorld( actor, x, y, z) </h2></p>
|
||||
<p><h2>Sub ApplyActorTorqueImpulseWorld( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies an impulse that directly affects the angular velocity of an actor, causing it to rotate. This is similar to applying an impulse, but instead of changing the linear velocity (which applyActorCentralImpulse does), it alters the body's rotational motion (angular velocity) instantaneously.
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>applyActorTorqueLocal [RCBasic Doc] </title>
|
||||
<title>ApplyActorTorqueLocal [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub applyActorTorqueLocal( actor, x, y, z) </h2></p>
|
||||
<p><h2>Sub ApplyActorTorqueLocal( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies a continuous torque to an actor, causing it to accelerate its rotational motion over time. Unlike applyActorTorqueImpulse, which causes an immediate change in angular velocity, this applies a torque force gradually, leading to a continuous rotational effect, similar to applying a force to linear motion.
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>applyActorTorqueWorld [RCBasic Doc] </title>
|
||||
<title>ApplyActorTorqueWorld [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub applyActorTorqueWorld( actor, x, y, z) </h2></p>
|
||||
<p><h2>Sub ApplyActorTorqueWorld( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies a continuous torque to an actor, causing it to accelerate its rotational motion over time. Unlike applyActorTorqueImpulse, which causes an immediate change in angular velocity, this applies a torque force gradually, leading to a continuous rotational effect, similar to applying a force to linear motion.
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ArrayFill(ByRef src, fdata) </h2></p>
|
||||
<p><h2>Sub ArrayFill(ByRef src, fdata) </h2></p>
|
||||
<p>
|
||||
Fills all the elements in an array with the value in fdata
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ArraySize(Byref id, array_dim) </h2></p>
|
||||
<p><h2>Function ArraySize(Byref id, array_dim) </h2></p>
|
||||
<p>
|
||||
Returns the number of elements in the given dimension of an array
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Asc(c$) </h2></p>
|
||||
<p><h2>Function Asc(c$) </h2></p>
|
||||
<p>
|
||||
Returns the ASCII value of a character.
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Asin(n) </h2></p>
|
||||
<p><h2>Function Asin(n) </h2></p>
|
||||
<p>
|
||||
Returns the ArcSine of a number.
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Atan(n) </h2></p>
|
||||
<p><h2>Function Atan(n) </h2></p>
|
||||
<p>
|
||||
Returns the ArcTangent of a number.
|
||||
</p>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
Appends the columns of matrix mB onto matrix mA and stores the result in mC.
|
||||
</p>
|
||||
<p>
|
||||
NOTE: Must mA and mB must be the same number of rows.
|
||||
NOTE: Must mA and mB must be the same number of rows.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
Saves the matrix mA in an array
|
||||
</p>
|
||||
<p>
|
||||
NOTE: buffer must have the same number of dimensions as the desired matrix for the structure to remain intact.
|
||||
NOTE: buffer must have the same number of dimensions as the desired matrix for the structure to remain intact.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="matrixfrombuffer.html">MatrixFromBuffer</a>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function BufferFromString(s$, ByRef buffer) </h2></p>
|
||||
<p>
|
||||
Stores the byte value of a string into a number buffer
|
||||
Stores the byte value of a string into a number buffer
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="stringfrombuffer.html">StringFromBuffer$</a>
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
<body>
|
||||
<p><h2>function CheckSockets(timeout_ms) </h2></p>
|
||||
<p>
|
||||
Checks all connected sockets for activity. If timeout_ms is greater than 0 than it will wait that many milliseconds. If less than 0 it will wait for over 49 days (hint: there is no reason what so ever to set this less than 0).
|
||||
Checks all connected sockets for activity. If timeout_ms is greater than 0 than it will wait that many milliseconds. If less than 0 it will wait for over 49 days (hint: there is no reason what so ever to set this less than 0).
|
||||
</p>
|
||||
<p>
|
||||
Returns the number of sockets that have activity (ie. a connection was made or data was sent)
|
||||
Returns the number of sockets that have activity (ie. a connection was made or data was sent)
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
Clears the active drawing canvas
|
||||
</p>
|
||||
<p>
|
||||
NOTE: This is only for drawing canvases (ie. Those opened with OpenCanvas())
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ComputeActorAngularImpulseDenominator( actor, x, y, z) </h2></p>
|
||||
<p><h2>function ComputeActorAngularImpulseDenominator( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Computes a scalar value that represents how an actor will respond to an angular impulse at a given point, taking into account the actor's inertia tensor (which governs how the object resists rotation). This function is particularly useful in calculating the actor's rotational response to an impulse, typically during collision resolution or constraints involving rotation.
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ComputeActorGyroImpulseLocal( actor, dt, ByRef x, ByRef y, ByRef z) </h2></p>
|
||||
<p><h2>sub ComputeActorGyroImpulseLocal( actor, dt, ByRef x, ByRef y, ByRef z) </h2></p>
|
||||
<p>
|
||||
Computes the gyroscopic impulse for an actor in an implicit manner, based on the actor's current angular velocity and inertia. This function is used to simulate the gyroscopic effect—also known as gyroscopic precession—which occurs when a rotating object experiences a torque that causes its axis of rotation to change.
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ComputeActorGyroImpulseWorld( actor, dt, ByRef x, ByRef y, ByRef z) </h2></p>
|
||||
<p><h2>sub ComputeActorGyroImpulseWorld( actor, dt, ByRef x, ByRef y, ByRef z) </h2></p>
|
||||
<p>
|
||||
Computes the gyroscopic impulse for an actor in an implicit manner, but in this case, it performs the calculation relative to the world frame of reference, rather than the actor’s local frame. This function is used to handle the gyroscopic effects (i.e., gyroscopic precession) of a rotating object when a torque is applied, affecting its axis of rotation.
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ComputeActorImpulseDenominator( actor, pos_x, pos_y, pos_z, normal_x, normal_y, normal_z) </h2></p>
|
||||
<p><h2>function ComputeActorImpulseDenominator( actor, pos_x, pos_y, pos_z, normal_x, normal_y, normal_z) </h2></p>
|
||||
<p>
|
||||
Computes a scalar value related to how a rigid body will respond to an applied impulse at a given point. It’s primarily used internally in the physics engine to calculate how an object’s mass, inertia, and shape will affect the outcome of impulses, particularly in collisions or constraints like contact points between objects.
|
||||
</p>
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">If</span> <span class="rc_number">5</span> > <span class="rc_number">6</span> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL NOT PRINT"</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL NOT PRINT"</span> <br>
|
||||
<span class="rc_keyword">ElseIf</span> <span class="rc_number">5</span> < <span class="rc_number">6</span> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL PRINT"</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL PRINT"</span> <br>
|
||||
<span class="rc_keyword">Else</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS ALSO WILL NOT PRINT"</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS ALSO WILL NOT PRINT"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
@@ -29,13 +29,13 @@
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Select</span> <span class="rc_keyword">Case</span> <span class="rc_number">5</span> <br>
|
||||
<span class="rc_keyword">Case</span> <span class="rc_number">6</span> <br>
|
||||
<span class="rc_keyword">Print</span> THIS WILL <span class="rc_keyword">NOT</span> <span class="rc_string">"<span class="rc_keyword">PRINT</span> <br>
|
||||
<span class="rc_keyword">Print</span> THIS WILL <span class="rc_keyword">NOT</span> <span class="rc_string">"<span class="rc_keyword">PRINT</span> <br>
|
||||
<span class="rc_keyword">Case</span> <span class="rc_number">5</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL PRINT"</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL PRINT"</span> <br>
|
||||
Default <br>
|
||||
<span class="rc_comment">'Note: Default will be true if every other case is false. </span><br>
|
||||
<span class="rc_comment">' Default is optional and can be excluded if you don't need it </span><br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL NOT PRINT"</span> <br>
|
||||
<span class="rc_comment">'Note: Default will be true if every other case is false. </span><br>
|
||||
<span class="rc_comment">' Default is optional and can be excluded if you don't need it </span><br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL NOT PRINT"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">Select</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
@@ -44,15 +44,15 @@
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Select</span> <span class="rc_keyword">Case</span> <span class="rc_number">5</span> <br>
|
||||
<span class="rc_keyword">Case</span> <span class="rc_number">6</span> <br>
|
||||
<span class="rc_keyword">Print</span> THIS WILL <span class="rc_keyword">NOT</span> <span class="rc_string">"<span class="rc_keyword">PRINT</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL NOT PRINT"</span> <br>
|
||||
<span class="rc_keyword">Case</span> <span class="rc_number">4</span>, <span class="rc_number">5</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL PRINT"</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL PRINT"</span> <br>
|
||||
Default <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL NOT PRINT"</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"THIS WILL NOT PRINT"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">Select</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
The above example is mostly the same as the previous example. The difference is that in our second <b>CASE</b> we are comparing both 4 and 5. If either of them are equal to our <b>SELECT</b> argument then the code inside the <b>CASE</b> block will execute.
|
||||
The above example is mostly the same as the previous example. The difference is that in our second <b>CASE</b> we are comparing both 4 and 5. If either of them are equal to our <b>SELECT</b> argument then the code inside the <b>CASE</b> block will execute.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
<body>
|
||||
<p><h2>function ConstraintExists( constraint_id ) </h2></p>
|
||||
<p>
|
||||
Returns true if the id passed is a valid constraint
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>copyActorMaterial [RCBasic Doc] </title>
|
||||
<title>CopyActorMaterial [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function copyActorMaterial( actor, material_num) </h2></p>
|
||||
<p><h2>function CopyActorMaterial( actor, material_num) </h2></p>
|
||||
<p>
|
||||
Returns a material id for a copy of an actor's material
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>copyMaterial [RCBasic Doc] </title>
|
||||
<title>CopyMaterial [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function copyMaterial( smaterial_id) </h2></p>
|
||||
<p><h2>function CopyMaterial( smaterial_id) </h2></p>
|
||||
<p>
|
||||
Returns a copy of a material
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>createHingeConstraint [RCBasic Doc] </title>
|
||||
<title>CreateHingeConstraint [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function createHingeConstraint( actorA, frameA, useReferenceFrameA ) </h2></p>
|
||||
<p><h2>function CreateHingeConstraint( actorA, frameA, useReferenceFrameA ) </h2></p>
|
||||
<p>
|
||||
Simulates a hinge joint, which allows two actors (or an actor and the world) to rotate around a single axis while restricting movement along the other axes. This is similar to the way a door swings on its hinges or how an elbow joint functions in the human body.
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>createHingeConstraintEx [RCBasic Doc] </title>
|
||||
<title>CreateHingeConstraintEx [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function createHingeConstraintEx( actorA, actorB, frameA, frameB, useReferenceFrameA) </h2></p>
|
||||
<p><h2>Function CreateHingeConstraintEx( actorA, actorB, frameA, frameB, useReferenceFrameA) </h2></p>
|
||||
<p>
|
||||
Simulates a hinge joint, which allows two actors (or an actor and the world) to rotate around a single axis while restricting movement along the other axes. This is similar to the way a door swings on its hinges or how an elbow joint functions in the human body.
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>createPointConstraint [RCBasic Doc] </title>
|
||||
<title>CreatePointConstraint [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function createPointConstraint( actorA, pxA, pyA, pzA) </h2></p>
|
||||
<p><h2>Function CreatePointConstraint( actorA, pxA, pyA, pzA) </h2></p>
|
||||
<p>
|
||||
A type of constraint that allows two actors (or an actor and the world) to move freely relative to each other while ensuring that one point on each body remains coincident. Essentially, it ensures that the two actors stay connected at a single point, but without restricting their relative rotations. This kind of constraint is useful when you need a connection that allows full rotation in all directions, such as a pendulum, ball joint, or even some suspension systems.
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>createPointConstraintEx [RCBasic Doc] </title>
|
||||
<title>CreatePointConstraintEx [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function createPointConstraintEx( actorA, actorB, pxA, pyA, pzA, pxB, pyB, pzB) </h2></p>
|
||||
<p><h2>function CreatePointConstraintEx( actorA, actorB, pxA, pyA, pzA, pxB, pyB, pzB) </h2></p>
|
||||
<p>
|
||||
A type of constraint that allows two actors (or an actor and the world) to move freely relative to each other while ensuring that one point on each body remains coincident. Essentially, it ensures that the two actors stay connected at a single point, but without restricting their relative rotations. This kind of constraint is useful when you need a connection that allows full rotation in all directions, such as a pendulum, ball joint, or even some suspension systems.
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>createSlideConstraint [RCBasic Doc] </title>
|
||||
<title>CreateSlideConstraint [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function createSlideConstraint( actorA, frameInB_matrix, useLinearReferenceFrameA) </h2></p>
|
||||
<p><h2>function CreateSlideConstraint( actorA, frameInB_matrix, useLinearReferenceFrameA) </h2></p>
|
||||
<p>
|
||||
A type of constraint that restricts the motion between two actors (or between an actor and the world) in such a way that they can slide along a specific axis and rotate around the same axis, while limiting or allowing movement along other axes. This constraint is similar to a prismatic joint with added rotational freedom, making it useful for simulating objects like pistons, sliding doors, or rail systems.
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>createSlideConstraintEx [RCBasic Doc] </title>
|
||||
<title>CreateSlideConstraintEx [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function createSlideConstraintEx( actorA, actorB, frameInA_matrix, frameInB_matrix, useLinearReferenceFrameA) </h2></p>
|
||||
<p><h2>function CreateSlideConstraintEx( actorA, actorB, frameInA_matrix, frameInB_matrix, useLinearReferenceFrameA) </h2></p>
|
||||
<p>
|
||||
A type of constraint that restricts the motion between two actors (or between an actor and the world) in such a way that they can slide along a specific axis and rotate around the same axis, while limiting or allowing movement along other axes. This constraint is similar to a prismatic joint with added rotational freedom, making it useful for simulating objects like pistons, sliding doors, or rail systems.
|
||||
</p>
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
Removes an actor from the scene and frees its memory
|
||||
</p>
|
||||
<p>
|
||||
NOTE: Actors are all removed on clearScene so make sure you don't continue using the id after that.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>deleteConstraint [RCBasic Doc] </title>
|
||||
<title>DeleteConstraint [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub deleteConstraint( constraint_id) </h2></p>
|
||||
<p><h2>Sub DeleteConstraint( constraint_id) </h2></p>
|
||||
<p>
|
||||
Removes a constraint
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub DeleteFont(font_id) </h2></p>
|
||||
<p><h2>Sub DeleteFont(font_id) </h2></p>
|
||||
<p>
|
||||
Frees a font from memory
|
||||
</p>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub DeleteImage(img) </h2></p>
|
||||
<p><h2>Sub DeleteImage(img) </h2></p>
|
||||
<p>
|
||||
Removes an image from memory
|
||||
</p>
|
||||
|
||||
@@ -3,15 +3,18 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>deleteMaterial [RCBasic Doc] </title>
|
||||
<title>DeleteMaterial [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub deleteMaterial( material_id) </h2></p>
|
||||
<p><h2>Sub DeleteMaterial( material_id) </h2></p>
|
||||
<p>
|
||||
Removes a material from memory
|
||||
</p>
|
||||
<p>
|
||||
NOTE: In the case of actor materials, this will simple drop the reference to it but it will not remove the material from the actor.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -12,6 +12,52 @@
|
||||
Removes a sprite from memory
|
||||
</p>
|
||||
<p>
|
||||
Here is an example:
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
isFullScreen = <span class="rc_keyword">false</span> <br>
|
||||
vSync = <span class="rc_keyword">true</span> <br>
|
||||
winWidth = <span class="rc_number">640</span> <br>
|
||||
winHeight = <span class="rc_number">480</span> <br>
|
||||
canViewPortX = <span class="rc_number">0</span> <br>
|
||||
canViewPortY = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
OpenWindow<b>(</b><span class="rc_string">"CreateSprite"</span>, winWidth, winHeight, isFullScreen, vSync<b>)</b> <br>
|
||||
sCanvas = OpenCanvasSpriteLayer<b>(</b>canViewPortX, canViewPortY, winWidth, winHeight<b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> eye <br>
|
||||
<span class="rc_keyword">DIM</span> eyeW <br>
|
||||
<span class="rc_keyword">DIM</span> eyeH <br>
|
||||
<br>
|
||||
eye = LoadImage<b>(</b><span class="rc_string">"theEye.png"</span><b>)</b> <br>
|
||||
GetImageSize<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
<br>
|
||||
eyeSprite = CreateSprite<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite, <span class="rc_number">100</span>, <span class="rc_number">100</span><b>)</b> <br>
|
||||
<br>
|
||||
eyeSprite2 = CreateSprite<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite2, <span class="rc_number">150</span>, <span class="rc_number">100</span><b>)</b> <br>
|
||||
<br>
|
||||
timePassed = Timer<b>(</b><b>)</b> <br>
|
||||
timePassedDiff = <span class="rc_number">2000</span> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_ESCAPE<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">If</span> Timer<b>(</b><b>)</b> - timePassed > timePassedDiff <span class="rc_keyword">Then</span> <span class="rc_comment">'After 2 seconds eyeSprite2 will be deleted </span><br>
|
||||
DeleteSprite<b>(</b>eyeSprite2<b>)</b> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
<br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<p><img src="images/theEye.png" ></p>
|
||||
<br><p>Related:
|
||||
<a href="opencanvasspritelayer.html">OpenCanvasSpriteLayer</a>
|
||||
<a href="setspriteposition.html">SetSpritePosition</a>
|
||||
<a href="createsprite.html">CreateSprite</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function Determinant(mA) </h2></p>
|
||||
<p>
|
||||
Returns the determinant of matrix mA
|
||||
Returns the determinant of matrix mA
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub DrawImage_RotateEx(slot, x, y, src_x, src_y, src_w, src_h, angle) </h2></p>
|
||||
<p>
|
||||
Draws a portion of an image to the current canvas rotated by a given angle.
|
||||
Draws a portion of an image to the current canvas rotated by a given angle.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub DrawImage_Rotozoom(slot, x, y, angle, zx, zy) </h2></p>
|
||||
<p>
|
||||
Draws an image to the current canvas rotated and scaled
|
||||
Draws an image to the current canvas rotated and scaled
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub DrawImage_RotozoomEx(slot, x, y, src_x, src_y, src_w, src_h, angle, zx, zy) </h2></p>
|
||||
<p>
|
||||
Draws a portion of an image to the current canvas rotated and scaled
|
||||
Draws a portion of an image to the current canvas rotated and scaled
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub DrawImage_Zoom(slot, x, y, zx, zy) </h2></p>
|
||||
<p>
|
||||
Draws an image to the current canvas scaled by a given factor
|
||||
Draws an image to the current canvas scaled by a given factor
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="drawimage_zoomex.html">DrawImage_ZoomEx</a>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub DrawText(txt$, x, y) </h2></p>
|
||||
<p>
|
||||
Draws text to the current canvas
|
||||
Draws text to the current canvas
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function FileLength(fileName$) </h2></p>
|
||||
<p>
|
||||
Returns the size of a file in bytes.
|
||||
Returns the size of a file in bytes.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub FillMatrix(mA, v) </h2></p>
|
||||
<p>
|
||||
Fills matrix with the given value
|
||||
Fills matrix with the given value
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function FillMatrixColumns(mA, c, num_cols, v) </h2></p>
|
||||
<p>
|
||||
Fills matrix columns with the given value starting at the given column
|
||||
Fills matrix columns with the given value starting at the given column
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function FillMatrixRows(mA, r, num_rows, v) </h2></p>
|
||||
<p>
|
||||
Fills matrix rows with the given value starting at the given row
|
||||
Fills matrix rows with the given value starting at the given row
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
Fills a closed shape in with the current draw color
|
||||
</p>
|
||||
<p>
|
||||
NOTE: It is not recommended to floodfill the full screen since its prone to stack overload
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -12,6 +12,9 @@
|
||||
Outputs text to the console
|
||||
</p>
|
||||
<p>
|
||||
NOTE: It does the exact same thing as Print. This is here for legacy reasons (ie. I am too lazy to remove it.)
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -54,8 +54,8 @@
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Function</span> MyFunc<b>(</b>a, b<b>)</b> <br>
|
||||
c = a + b <br>
|
||||
<span class="rc_keyword">Return</span> c <br>
|
||||
c = a + b <br>
|
||||
<span class="rc_keyword">Return</span> c <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">Function</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
@@ -72,7 +72,7 @@
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Function</span> MyString$ <b>(</b> G$ <b>)</b> <br>
|
||||
<span class="rc_keyword">Return</span> <span class="rc_string">"YOU ENTERED "</span> + G$ <br>
|
||||
<span class="rc_keyword">Return</span> <span class="rc_string">"YOU ENTERED "</span> + G$ <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">Function</span> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">Print</span> MyString<b>(</b><span class="rc_string">"SOMETHING"</span><b>)</b> <br>
|
||||
@@ -88,15 +88,15 @@
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Type</span> test_type <br>
|
||||
<span class="rc_keyword">Dim</span> a$ <br>
|
||||
<span class="rc_keyword">Dim</span> b <br>
|
||||
<span class="rc_keyword">Dim</span> a$ <br>
|
||||
<span class="rc_keyword">Dim</span> b <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">Type</span> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">Function</span> test<b>(</b>a$, b<b>)</b> <span class="rc_keyword">As</span> test_type <br>
|
||||
<span class="rc_keyword">Dim</span> ret_val <span class="rc_keyword">As</span> test_type <br>
|
||||
ret_val.a = a <br>
|
||||
ret_val.b = b <br>
|
||||
<span class="rc_keyword">Return</span> ret_val <br>
|
||||
<span class="rc_keyword">Dim</span> ret_val <span class="rc_keyword">As</span> test_type <br>
|
||||
ret_val.a = a <br>
|
||||
ret_val.b = b <br>
|
||||
<span class="rc_keyword">Return</span> ret_val <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">Function</span> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">Dim</span> myVar <span class="rc_keyword">as</span> test_type <br>
|
||||
@@ -107,8 +107,8 @@
|
||||
You can also have a UDT as a parameter in a function:
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Function</span> <span class="rc_number">2</span><b>(</b>n <span class="rc_keyword">as</span> test_type, j<b>)</b> <br>
|
||||
<span class="rc_keyword">Return</span> <span class="rc_number">0</span> <br>
|
||||
<span class="rc_keyword">Function</span> test2<b>(</b>n <span class="rc_keyword">as</span> test_type, j<b>)</b> <br>
|
||||
<span class="rc_keyword">Return</span> <span class="rc_number">0</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">Function</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
@@ -116,9 +116,9 @@
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Sub</span> MySub <b>(</b> <b>)</b> <br>
|
||||
<span class="rc_keyword">For</span> i = <span class="rc_number">1</span> <span class="rc_keyword">To</span> <span class="rc_number">5</span> <br>
|
||||
<span class="rc_keyword">Print</span> i <br>
|
||||
<span class="rc_keyword">Next</span> <br>
|
||||
<span class="rc_keyword">For</span> i = <span class="rc_number">1</span> <span class="rc_keyword">To</span> <span class="rc_number">5</span> <br>
|
||||
<span class="rc_keyword">Print</span> i <br>
|
||||
<span class="rc_keyword">Next</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">Sub</span> <br>
|
||||
<br>
|
||||
MySub <b>(</b> <b>)</b> <br>
|
||||
@@ -131,7 +131,7 @@
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Sub</span> MySub <b>(</b> a <b>)</b> <br>
|
||||
a = <span class="rc_number">5</span> <br>
|
||||
a = <span class="rc_number">5</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">Sub</span> <br>
|
||||
<br>
|
||||
n = <span class="rc_number">0</span> <br>
|
||||
@@ -144,7 +144,7 @@
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Sub</span> MySub <b>(</b> <span class="rc_keyword">ByRef</span> a <b>)</b> <br>
|
||||
a = <span class="rc_number">5</span> <br>
|
||||
a = <span class="rc_number">5</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">Sub</span> <br>
|
||||
<br>
|
||||
n = <span class="rc_number">0</span> <br>
|
||||
@@ -153,7 +153,7 @@
|
||||
<span class="rc_keyword">Print</span> n <br>
|
||||
</code></p>
|
||||
<p>
|
||||
The above code is the same as the previous example except that now we use the <b>BYREF</b> keyword to change a to a reference rather than a value. This means the when we pass the variable N to MYSUB, instead of the value stored in N being used as A, whatever we do to A will be done to N directly. This example will output 5 to the console.
|
||||
The above code is the same as the previous example except that now we use the <b>BYREF</b> keyword to change a to a reference rather than a value. This means the when we pass the variable N to MYSUB, instead of the value stored in N being used as A, whatever we do to A will be done to N directly. This example will output 5 to the console.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
Gets the actors rotation as a quaternion.
|
||||
</p>
|
||||
<p>
|
||||
Note: This is useful for calculations that require quaternion but most developers should just use GetActorRotation()
|
||||
Note: This is useful for calculations that require quaternion but most developers should just use GetActorTransform()
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="getactorrotation.html">GetActorRotation</a>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
Calculates the points where a circle and line intersect and stores the intersection points in (ix1, iy1) and (ix2, iy2)
|
||||
</p>
|
||||
<p>
|
||||
NOTE: This function returns 0 if there is no intersection and 1 or 2 if there is 1 or 2 intersection points. If it only returns 1 then only (ix1, iy1) will be set.
|
||||
NOTE: This function returns 0 if there is no intersection and 1 or 2 if there is 1 or 2 intersection points. If it only returns 1 then only (ix1, iy1) will be set.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub getConeAnglePoint( constraint_id, angle, c_len, ByRef x, ByRef y, ByRef z) </h2></p>
|
||||
<p>
|
||||
Computes or retrieves a point based on a given angle relative to the constraint’s twist axis.
|
||||
Computes or retrieves a point based on a given angle relative to the constraint’s twist axis.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
w, h - The width and height of the display will be stored in these variables
|
||||
</li>
|
||||
<li>
|
||||
freq - The refresh rate will be stored in this variable
|
||||
freq - The refresh rate will be stored in this variable
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
LIGHT_TYPE_POINT
|
||||
</li>
|
||||
<li>
|
||||
LIGHT_TYPE_POINT
|
||||
LIGHT_TYPE_DIRECTIONAL
|
||||
</li>
|
||||
<li>
|
||||
LIGHT_TYPE_POINT
|
||||
LIGHT_TYPE_SPOT
|
||||
<br><p>Related:
|
||||
<a href="setlighttype.html">SetLightType</a>
|
||||
</p>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
plane_point_2 - An array with an (x,y,z) point representing a point on a plane in 3D space
|
||||
</li>
|
||||
<li>
|
||||
plane_point_3 - An array with an (x,y,z) point representing a point on a plane in 3D space
|
||||
plane_point_3 - An array with an (x,y,z) point representing a point on a plane in 3D space
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
|
||||
@@ -19,31 +19,31 @@
|
||||
BLEND_MODE_NONE
|
||||
</li>
|
||||
<li>
|
||||
BLEND_MODE_ADD
|
||||
BLEND_MODE_ADD
|
||||
</li>
|
||||
<li>
|
||||
BLEND_MODE_SUBTRACT
|
||||
BLEND_MODE_SUBTRACT
|
||||
</li>
|
||||
<li>
|
||||
BLEND_MODE_REVSUBTRACT
|
||||
</li>
|
||||
<li>
|
||||
BLEND_MODE_MIN
|
||||
BLEND_MODE_MIN
|
||||
</li>
|
||||
<li>
|
||||
BLEND_MODE_MAX
|
||||
BLEND_MODE_MAX
|
||||
</li>
|
||||
<li>
|
||||
BLEND_MODE_MIN_FACTOR
|
||||
BLEND_MODE_MIN_FACTOR
|
||||
</li>
|
||||
<li>
|
||||
BLEND_MODE_MAX_FACTOR
|
||||
BLEND_MODE_MAX_FACTOR
|
||||
</li>
|
||||
<li>
|
||||
BLEND_MODE_MIN_ALPHA
|
||||
BLEND_MODE_MIN_ALPHA
|
||||
</li>
|
||||
<li>
|
||||
BLEND_MODE_MAX_ALPHA
|
||||
BLEND_MODE_MAX_ALPHA
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
|
||||
@@ -11,6 +11,67 @@
|
||||
<p>
|
||||
Gets the position of a sprite on the canvas
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
isFullScreen = <span class="rc_keyword">false</span> <br>
|
||||
vSync = <span class="rc_keyword">true</span> <br>
|
||||
winWidth = <span class="rc_number">640</span> <br>
|
||||
winHeight = <span class="rc_number">480</span> <br>
|
||||
canViewPortX = <span class="rc_number">0</span> <br>
|
||||
canViewPortY = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
OpenWindow<b>(</b><span class="rc_string">"GetSpritePosition"</span>, winWidth, winHeight, isFullScreen, vSync<b>)</b> <br>
|
||||
pCanvas = OpenCanvas<b>(</b><span class="rc_number">200</span>, <span class="rc_number">80</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">200</span>, <span class="rc_number">80</span>, <span class="rc_number">1</span><b>)</b> <span class="rc_comment">'Need to open a canvas for drawing the text </span><br>
|
||||
sCanvas = OpenCanvasSpriteLayer<b>(</b>canViewPortX, canViewPortY, winWidth, winHeight<b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> font1 <br>
|
||||
<br>
|
||||
Font1 = LoadFont<b>(</b><span class="rc_string">"DripOctober.ttf"</span>, <span class="rc_number">16</span><b>)</b> <br>
|
||||
SetFont<b>(</b>Font1<b>)</b> <br>
|
||||
SetColor<b>(</b>RGB<b>(</b><span class="rc_number">100</span>, <span class="rc_number">200</span>, <span class="rc_number">200</span><b>)</b><b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> eye <br>
|
||||
<span class="rc_keyword">DIM</span> eyeW <br>
|
||||
<span class="rc_keyword">DIM</span> eyeH <br>
|
||||
<span class="rc_keyword">DIM</span> eyeX <span class="rc_comment">'Variables to pass into the function for holding the x and y values </span><br>
|
||||
<span class="rc_keyword">DIM</span> eyeY <br>
|
||||
eyeSpriteX = <span class="rc_number">100</span> <br>
|
||||
eyeSpriteY = <span class="rc_number">100</span> <br>
|
||||
destX = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
eye = LoadImage<b>(</b><span class="rc_string">"theEye.png"</span><b>)</b> <br>
|
||||
GetImageSize<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
<br>
|
||||
eyeSprite = CreateSprite<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite, eyeSpriteX, eyeSpriteY<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_ESCAPE<b>)</b> <br>
|
||||
clearcanvas<b>(</b><b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <span class="rc_comment">'change to the sprite canvas for drawing sprites </span><br>
|
||||
<span class="rc_keyword">If</span> SpriteX<b>(</b>eyeSprite<b>)</b> < <span class="rc_number">450</span> <span class="rc_keyword">And</span> destX = <span class="rc_number">0</span> <span class="rc_keyword">Then</span> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite, eyeSpriteX, eyeSpriteY<b>)</b> <br>
|
||||
eyeSpriteX = eyeSpriteX + <span class="rc_number">0.5</span> <br>
|
||||
<span class="rc_keyword">ElseIf</span> SpriteX<b>(</b>eyeSprite<b>)</b> >= <span class="rc_number">440</span> <span class="rc_keyword">And</span> destX = <span class="rc_number">0</span> <span class="rc_keyword">Then</span> <br>
|
||||
destX = <span class="rc_number">1</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">If</span> destX = <span class="rc_number">1</span> <span class="rc_keyword">Then</span> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite, eyeSpriteX, eyeSpriteY<b>)</b> <br>
|
||||
eyeSpriteX = eyeSpriteX - <span class="rc_number">0.5</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
<br>
|
||||
GetSpritePosition<b>(</b>eyeSprite, eyeX, eyeY<b>)</b> <br>
|
||||
Canvas<b>(</b>pCanvas<b>)</b> <span class="rc_comment">'change to the standard drawing canvas for drawing text </span><br>
|
||||
DrawText<b>(</b><span class="rc_string">"Sprite X: "</span> + STR$<b>(</b>eyeX<b>)</b>, <span class="rc_number">10</span>, <span class="rc_number">30</span><b>)</b> <br>
|
||||
DrawText<b>(</b><span class="rc_string">"Sprite Y: "</span> + STR$<b>(</b>eyeY<b>)</b>, <span class="rc_number">10</span>, <span class="rc_number">50</span><b>)</b> <br>
|
||||
<br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<p><img src="images/theEye.png" ></p>
|
||||
<p>
|
||||
<br> <a href="../doc_files/images/DripOctober.ttf">Link to Font (It's locally on your computer, your not downloading anything from the internet)</a> <br>
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="translatesprite.html">TranslateSprite</a>
|
||||
<a href="setspriteposition.html">SetSpritePosition</a>
|
||||
|
||||
@@ -11,6 +11,63 @@
|
||||
<p>
|
||||
Returns the angle the sprite is rotated by
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
isFullScreen = <span class="rc_keyword">false</span> <br>
|
||||
vSync = <span class="rc_keyword">true</span> <br>
|
||||
winWidth = <span class="rc_number">640</span> <br>
|
||||
winHeight = <span class="rc_number">480</span> <br>
|
||||
canViewPortX = <span class="rc_number">0</span> <br>
|
||||
canViewPortY = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
OpenWindow<b>(</b><span class="rc_string">"GetSpriteRotation"</span>, winWidth, winHeight, isFullScreen, vSync<b>)</b> <br>
|
||||
pCanvas = OpenCanvas<b>(</b><span class="rc_number">200</span>, <span class="rc_number">80</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">200</span>, <span class="rc_number">80</span>, <span class="rc_number">1</span><b>)</b> <span class="rc_comment">'Need to open a canvas for drawing the text </span><br>
|
||||
sCanvas = OpenCanvasSpriteLayer<b>(</b>canViewPortX, canViewPortY, winWidth, winHeight<b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> font1 <br>
|
||||
<br>
|
||||
Font1 = LoadFont<b>(</b><span class="rc_string">"DripOctober.ttf"</span>, <span class="rc_number">16</span><b>)</b> <br>
|
||||
SetFont<b>(</b>Font1<b>)</b> <br>
|
||||
SetColor<b>(</b>RGB<b>(</b><span class="rc_number">100</span>, <span class="rc_number">200</span>, <span class="rc_number">200</span><b>)</b><b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> eye <br>
|
||||
<span class="rc_keyword">DIM</span> eyeW <br>
|
||||
<span class="rc_keyword">DIM</span> eyeH <br>
|
||||
<span class="rc_keyword">DIM</span> eyeAngle <span class="rc_comment">'Variable to hold the sprites angle value </span><br>
|
||||
<span class="rc_keyword">DIM</span> displayAngle <br>
|
||||
ReleaseKey = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
eye = LoadImage<b>(</b><span class="rc_string">"theEye.png"</span><b>)</b> <br>
|
||||
GetImageSize<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
<br>
|
||||
eyeSprite = CreateSprite<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite, <span class="rc_number">100</span>, <span class="rc_number">100</span><b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_comment">'RotateSprite(eyeSprite, eyeAngle) </span><br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_ESCAPE<b>)</b> <br>
|
||||
ClearCanvas<b>(</b><b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">If</span> Key<b>(</b>K_SPACE<b>)</b> <span class="rc_keyword">And</span> ReleaseKey = <span class="rc_number">0</span> <span class="rc_keyword">Then</span> <br>
|
||||
eyeAngle = <span class="rc_number">30</span> <br>
|
||||
RotateSprite<b>(</b>eyeSprite, eyeAngle<b>)</b> <br>
|
||||
ReleaseKey = <span class="rc_number">1</span> <br>
|
||||
<span class="rc_keyword">ElseIf</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_SPACE<b>)</b> <span class="rc_keyword">And</span> ReleaseKey = <span class="rc_number">1</span> <span class="rc_keyword">then</span> <br>
|
||||
ReleaseKey = <span class="rc_number">0</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
<br>
|
||||
displayAngle = GetSpriteRotation<b>(</b>eyeSprite<b>)</b> <br>
|
||||
Canvas<b>(</b>pCanvas<b>)</b> <span class="rc_comment">'change to the standard drawing canvas for drawing text </span><br>
|
||||
DrawText<b>(</b><span class="rc_string">"Sprite Angle: "</span> + STR$<b>(</b>displayAngle<b>)</b>, <span class="rc_number">10</span>, <span class="rc_number">30</span><b>)</b> <br>
|
||||
<br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<p><img src="images/theEye.png" ></p>
|
||||
<p>
|
||||
<br> <a href="../doc_files/images/DripOctober.ttf">Link to Font (It's locally on your computer, your not downloading anything from the internet)</a> <br>
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="setspriterotation.html">SetSpriteRotation</a>
|
||||
<a href="rotatesprite.html">RotateSprite</a>
|
||||
|
||||
@@ -11,6 +11,73 @@
|
||||
<p>
|
||||
Gets the scale of a sprite
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
isFullScreen = <span class="rc_keyword">false</span> <br>
|
||||
vSync = <span class="rc_keyword">true</span> <br>
|
||||
winWidth = <span class="rc_number">640</span> <br>
|
||||
winHeight = <span class="rc_number">480</span> <br>
|
||||
canViewPortX = <span class="rc_number">0</span> <br>
|
||||
canViewPortY = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
OpenWindow<b>(</b><span class="rc_string">"GetSpriteScale"</span>, winWidth, winHeight, isFullScreen, vSync<b>)</b> <br>
|
||||
pCanvas = OpenCanvas<b>(</b><span class="rc_number">200</span>, <span class="rc_number">80</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">200</span>, <span class="rc_number">80</span>, <span class="rc_number">1</span><b>)</b> <span class="rc_comment">'Need to open a canvas for drawing the text </span><br>
|
||||
sCanvas = OpenCanvasSpriteLayer<b>(</b>canViewPortX, canViewPortY, winWidth, winHeight<b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> font1 <br>
|
||||
<br>
|
||||
Font1 = LoadFont<b>(</b><span class="rc_string">"DripOctober.ttf"</span>, <span class="rc_number">16</span><b>)</b> <br>
|
||||
SetFont<b>(</b>Font1<b>)</b> <br>
|
||||
SetColor<b>(</b>RGB<b>(</b><span class="rc_number">100</span>, <span class="rc_number">200</span>, <span class="rc_number">200</span><b>)</b><b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> eye <br>
|
||||
<span class="rc_keyword">DIM</span> eyeW <br>
|
||||
<span class="rc_keyword">DIM</span> eyeH <br>
|
||||
<span class="rc_keyword">DIM</span> eyeScale <span class="rc_comment">'Variable to hold the sprites scale </span><br>
|
||||
ReleaseKey = <span class="rc_number">0</span> <br>
|
||||
eyeScale = <span class="rc_number">2</span> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> eyeScaleX <br>
|
||||
<span class="rc_keyword">DIM</span> eyeScaleY <br>
|
||||
<br>
|
||||
eye = LoadImage<b>(</b><span class="rc_string">"theEye.png"</span><b>)</b> <br>
|
||||
GetImageSize<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
<br>
|
||||
eyeSprite = CreateSprite<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite, <span class="rc_number">100</span>, <span class="rc_number">100</span><b>)</b> <br>
|
||||
<br>
|
||||
eyeSprite2 = CreateSprite<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite2, <span class="rc_number">200</span>, <span class="rc_number">100</span><b>)</b> <br>
|
||||
<br>
|
||||
SetSpriteScale<b>(</b>eyeSprite2, eyeScale, eyeScale<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_ESCAPE<b>)</b> <br>
|
||||
ClearCanvas<b>(</b><b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">If</span> Key<b>(</b>K_UP<b>)</b> <span class="rc_keyword">And</span> ReleaseKey = <span class="rc_number">0</span> <span class="rc_keyword">Then</span> <br>
|
||||
eyeScale = <span class="rc_number">1.1</span> <br>
|
||||
ScaleSprite<b>(</b>eyeSprite2, eyeScale, eyeScale<b>)</b> <br>
|
||||
ReleaseKey = <span class="rc_number">1</span> <br>
|
||||
<span class="rc_keyword">ElseIf</span> Key<b>(</b>K_DOWN<b>)</b> <span class="rc_keyword">And</span> ReleaseKey = <span class="rc_number">0</span> <span class="rc_keyword">Then</span> <br>
|
||||
eyeScale = <span class="rc_number">0.9</span> <br>
|
||||
ScaleSprite<b>(</b>eyeSprite2, eyeScale, eyeScale<b>)</b> <br>
|
||||
ReleaseKey = <span class="rc_number">1</span> <br>
|
||||
<span class="rc_keyword">ElseIf</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_UP<b>)</b> <span class="rc_keyword">And</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_DOWN<b>)</b> <span class="rc_keyword">And</span> ReleaseKey = <span class="rc_number">1</span> <span class="rc_keyword">then</span> <br>
|
||||
ReleaseKey = <span class="rc_number">0</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
<br>
|
||||
GetSpriteScale<b>(</b>eyeSprite2, eyeScaleX, eyeScaleY<b>)</b> <br>
|
||||
Canvas<b>(</b>pCanvas<b>)</b> <span class="rc_comment">'change to the standard drawing canvas for drawing text </span><br>
|
||||
DrawText<b>(</b><span class="rc_string">"Sprite Scale X: "</span> + STR$<b>(</b>eyeScaleX<b>)</b>, <span class="rc_number">10</span>, <span class="rc_number">30</span><b>)</b> <br>
|
||||
<br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<p><img src="images/theEye.png" ></p>
|
||||
<p>
|
||||
<br> <a href="../doc_files/images/DripOctober.ttf">Link to Font (It's locally on your computer, your not downloading anything from the internet)</a> <br>
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="scalesprite.html">ScaleSprite</a>
|
||||
<a href="setspritescale.html">SetSpriteScale</a>
|
||||
|
||||
@@ -11,6 +11,51 @@
|
||||
<p>
|
||||
Gets the size of a sprite's frames
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
isFullScreen = <span class="rc_keyword">false</span> <br>
|
||||
vSync = <span class="rc_keyword">true</span> <br>
|
||||
winWidth = <span class="rc_number">640</span> <br>
|
||||
winHeight = <span class="rc_number">480</span> <br>
|
||||
canViewPortX = <span class="rc_number">0</span> <br>
|
||||
canViewPortY = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
OpenWindow<b>(</b><span class="rc_string">"ScaleSprite"</span>, winWidth, winHeight, isFullScreen, vSync<b>)</b> <br>
|
||||
pCanvas = OpenCanvas<b>(</b><span class="rc_number">200</span>, <span class="rc_number">80</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">200</span>, <span class="rc_number">80</span>, <span class="rc_number">1</span><b>)</b> <span class="rc_comment">'Need to open a canvas for drawing the text </span><br>
|
||||
sCanvas = OpenCanvasSpriteLayer<b>(</b>canViewPortX, canViewPortY, winWidth, winHeight<b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> eye <br>
|
||||
<span class="rc_keyword">DIM</span> eyeW <br>
|
||||
<span class="rc_keyword">DIM</span> eyeH <br>
|
||||
<span class="rc_keyword">DIM</span> eSpriteWidth <br>
|
||||
<span class="rc_keyword">DIM</span> eSpriteHeight <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> font1 <br>
|
||||
<br>
|
||||
Font1 = LoadFont<b>(</b><span class="rc_string">"DripOctober.ttf"</span>, <span class="rc_number">16</span><b>)</b> <br>
|
||||
SetFont<b>(</b>Font1<b>)</b> <br>
|
||||
SetColor<b>(</b>RGB<b>(</b><span class="rc_number">100</span>, <span class="rc_number">200</span>, <span class="rc_number">200</span><b>)</b><b>)</b> <br>
|
||||
<br>
|
||||
eye = LoadImage<b>(</b><span class="rc_string">"theEye.png"</span><b>)</b> <br>
|
||||
GetImageSize<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
<br>
|
||||
eyeSprite = CreateSprite<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite, <span class="rc_number">100</span>, <span class="rc_number">100</span><b>)</b> <br>
|
||||
<br>
|
||||
GetSpriteSize<b>(</b>eyeSprite, eSpriteWidth, eSpriteHeight<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_ESCAPE<b>)</b> <br>
|
||||
Canvas<b>(</b>pCanvas<b>)</b> <span class="rc_comment">'change to the standard drawing canvas for drawing text </span><br>
|
||||
DrawText<b>(</b><span class="rc_string">"EyeSprite Width "</span> + STR$<b>(</b>eSpriteWidth<b>)</b>, <span class="rc_number">10</span>, <span class="rc_number">30</span><b>)</b> <br>
|
||||
DrawText<b>(</b><span class="rc_string">"EyeSprite Height "</span> + STR$<b>(</b>eSpriteHeight<b>)</b>, <span class="rc_number">10</span>, <span class="rc_number">50</span><b>)</b> <br>
|
||||
<br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<p><img src="images/theEye.png" ></p>
|
||||
<p>
|
||||
<br> <a href="../doc_files/images/DripOctober.ttf">Link to Font (It's locally on your computer, your not downloading anything from the internet)</a> <br>
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="createsprite.html">CreateSprite</a>
|
||||
</p>
|
||||
|
||||
@@ -11,6 +11,41 @@
|
||||
<p>
|
||||
Returns the source image the sprite renders its frames from
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
isFullScreen = <span class="rc_keyword">false</span> <br>
|
||||
vSync = <span class="rc_keyword">true</span> <br>
|
||||
winWidth = <span class="rc_number">640</span> <br>
|
||||
winHeight = <span class="rc_number">480</span> <br>
|
||||
canViewPortX = <span class="rc_number">0</span> <br>
|
||||
canViewPortY = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
OpenWindow<b>(</b><span class="rc_string">"GetSpriteSource"</span>, winWidth, winHeight, isFullScreen, vSync<b>)</b> <br>
|
||||
sCanvas = OpenCanvasSpriteLayer<b>(</b>canViewPortX, canViewPortY, winWidth, winHeight<b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> frown <br>
|
||||
<span class="rc_keyword">DIM</span> frownW <br>
|
||||
<span class="rc_keyword">DIM</span> frownH <br>
|
||||
<span class="rc_keyword">DIM</span> spSource$ <br>
|
||||
<br>
|
||||
frowny1 = LoadImage<b>(</b><span class="rc_string">"frowny1.png"</span><b>)</b> <br>
|
||||
frowny2 = LoadImage<b>(</b><span class="rc_string">"frowny2.png"</span><b>)</b> <br>
|
||||
GetImageSize<b>(</b>frown, frownW, frownH<b>)</b> <br>
|
||||
<br>
|
||||
frownSprite = CreateSprite<b>(</b>frown, frownW, frownH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>frownSprite, <span class="rc_number">100</span>, <span class="rc_number">100</span><b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_ESCAPE<b>)</b> <br>
|
||||
<span class="rc_keyword">If</span> KEY<b>(</b>K_SPACE<b>)</b> <span class="rc_keyword">Then</span> <br>
|
||||
SetSpriteSource<b>(</b>frownSprite, frowny2<b>)</b> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
spSource$ = STR$<b>(</b>GetSpriteSource<b>(</b>frown<b>)</b><b>)</b> <br>
|
||||
<span class="rc_keyword">Print</span> spSource$ <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<p><img src="images/frowny1.png" ></p>
|
||||
<p><img src="images/frowny2.png" ></p>
|
||||
<br><p>Related:
|
||||
<a href="setspritesource.html">SetSpriteSource</a>
|
||||
<a href="createsprite.html">CreateSprite</a>
|
||||
|
||||
@@ -19,15 +19,74 @@
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
SPRITE_TYPE_STATIC
|
||||
SPRITE_TYPE_STATIC (0)
|
||||
</li>
|
||||
<li>
|
||||
SPRITE_TYPE_KINEMATIC
|
||||
SPRITE_TYPE_KINEMATIC (1)
|
||||
</li>
|
||||
<li>
|
||||
SPRITE_TYPE_DYNAMIC
|
||||
SPRITE_TYPE_DYNAMIC (2)
|
||||
</li>
|
||||
</ul>
|
||||
<p id="rc_code"><code>
|
||||
isFullScreen = <span class="rc_keyword">false</span> <br>
|
||||
vSync = <span class="rc_keyword">true</span> <br>
|
||||
winWidth = <span class="rc_number">640</span> <br>
|
||||
winHeight = <span class="rc_number">480</span> <br>
|
||||
canViewPortX = <span class="rc_number">0</span> <br>
|
||||
canViewPortY = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
OpenWindow<b>(</b><span class="rc_string">"GetSpriteType"</span>, winWidth, winHeight, isFullScreen, vSync<b>)</b> <br>
|
||||
pCanvas = OpenCanvas<b>(</b><span class="rc_number">200</span>, <span class="rc_number">80</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">200</span>, <span class="rc_number">80</span>, <span class="rc_number">1</span><b>)</b> <span class="rc_comment">'Need to open a canvas for drawing the text </span><br>
|
||||
sCanvas = OpenCanvasSpriteLayer<b>(</b>canViewPortX, canViewPortY, winWidth, winHeight<b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> eye <br>
|
||||
<span class="rc_keyword">DIM</span> eyeW <br>
|
||||
<span class="rc_keyword">DIM</span> eyeH <br>
|
||||
eyeSpriteX = <span class="rc_number">100</span> <br>
|
||||
eyeSpriteY = <span class="rc_number">100</span> <br>
|
||||
eyeSprite2X = <span class="rc_number">400</span> <br>
|
||||
eyeSprite2Y = <span class="rc_number">125</span> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> font1 <br>
|
||||
<br>
|
||||
Font1 = LoadFont<b>(</b><span class="rc_string">"DripOctober.ttf"</span>, <span class="rc_number">16</span><b>)</b> <br>
|
||||
SetFont<b>(</b>Font1<b>)</b> <br>
|
||||
SetColor<b>(</b>RGB<b>(</b><span class="rc_number">100</span>, <span class="rc_number">200</span>, <span class="rc_number">200</span><b>)</b><b>)</b> <br>
|
||||
<br>
|
||||
eye = LoadImage<b>(</b><span class="rc_string">"theEye.png"</span><b>)</b> <br>
|
||||
GetImageSize<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
<br>
|
||||
eyeSprite = CreateSprite<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite, eyeSpriteX, eyeSpriteY<b>)</b> <br>
|
||||
SetSpriteSolid<b>(</b>eyeSprite, <span class="rc_number">1</span><b>)</b> <br>
|
||||
SetSpriteType<b>(</b>eyeSprite, SPRITE_TYPE_KINEMATIC<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_comment">'The flags for each type are SPRITE_TYPE_STATIC = 0 </span><br>
|
||||
<span class="rc_comment">' SPRITE_TYPE_KINEMATIC = 1 </span><br>
|
||||
<span class="rc_comment">' SPRITE_TYPE_DYNAMIC = 2 </span><br>
|
||||
<br>
|
||||
eyeSprite2 = CreateSprite<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite2, eyeSprite2X, eyeSprite2Y<b>)</b> <br>
|
||||
SetSpriteSolid<b>(</b>eyeSprite2, <span class="rc_number">1</span><b>)</b> <br>
|
||||
SetSpriteType<b>(</b>eyeSprite2, SPRITE_TYPE_DYNAMIC<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_ESCAPE<b>)</b> <br>
|
||||
ClearCanvas<b>(</b><b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
Canvas<b>(</b>pCanvas<b>)</b> <span class="rc_comment">'change to the standard drawing canvas for drawing text </span><br>
|
||||
<br>
|
||||
DrawText<b>(</b><span class="rc_string">"Sprite on left type: "</span> + STR$<b>(</b>GetSpriteType<b>(</b>eyeSprite<b>)</b><b>)</b>, <span class="rc_number">10</span>, <span class="rc_number">30</span><b>)</b> <br>
|
||||
<br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<p><img src="images/theEye.png" ></p>
|
||||
<p>
|
||||
<br> <a href="../doc_files/images/DripOctober.ttf">Link to Font (It's locally on your computer, your not downloading anything from the internet)</a> <br>
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="setspritetype.html">SetSpriteType</a>
|
||||
</p>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub GrabInput(flag) </h2></p>
|
||||
<p>
|
||||
Sets whether the currently active window will grab user input
|
||||
Sets whether the currently active window will grab user input
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -335,22 +335,22 @@
|
||||
Given we have two number stored in variables a and b.
|
||||
</p>
|
||||
<p>
|
||||
•.a = b : Test if a is equal to b
|
||||
•.a = b : Test if a is equal to b
|
||||
</p>
|
||||
<p>
|
||||
•.a < b : Test if a is less than b
|
||||
•.a < b : Test if a is less than b
|
||||
</p>
|
||||
<p>
|
||||
•.a > b : Test if a is greater than b
|
||||
•.a > b : Test if a is greater than b
|
||||
</p>
|
||||
<p>
|
||||
•.a <= b : Test if a is less than or equal to b
|
||||
•.a <= b : Test if a is less than or equal to b
|
||||
</p>
|
||||
<p>
|
||||
•.a >= b : Test if a is greater than or equal to b
|
||||
•.a >= b : Test if a is greater than or equal to b
|
||||
</p>
|
||||
<p>
|
||||
•.a <> b : Test if a is not equal to b
|
||||
•.a <> b : Test if a is not equal to b
|
||||
</p>
|
||||
<p>
|
||||
Here is a few examples of doing some of these comparisons with a <b>IF</b> statement.
|
||||
@@ -424,7 +424,7 @@
|
||||
This code will write "This is true" to the console because 1 is equal to 1 and 4 is greater than 2. Yes it is that simple.
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">If</span> <span class="rc_number">1</span><span class="rc_number">1</span> <span class="rc_keyword">AND</span> <span class="rc_number">4</span>><span class="rc_number">2</span> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">If</span> <span class="rc_number">1</span>=1 <span class="rc_keyword">AND</span> <span class="rc_number">4</span>><span class="rc_number">2</span> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"This is true"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
</code></p>
|
||||
@@ -435,7 +435,7 @@
|
||||
This code will write "This is true" to the console because although 1 is not equal to 2, 5 is less than or equal to 6.
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">If</span> <span class="rc_number">1</span><span class="rc_number">2</span> <span class="rc_keyword">AND</span> <span class="rc_number">5</span><<span class="rc_number">6</span> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">If</span> <span class="rc_number">1</span>=2 <span class="rc_keyword">AND</span> <span class="rc_number">5</span><<span class="rc_number">6</span> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"This is true"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
</code></p>
|
||||
@@ -446,7 +446,7 @@
|
||||
This code will write "This is true" to the console because 1 is equal to 1 and 2 is equal to 2 ( 2 <> 2 is false because 2=2. Remember <> is the NOT EQUAL operator). Basically one condition in the <b>XOR</b> expression has to be true and the other has to be false otherwise the whole expression is false. If this is slightly confusing don't worry. In my 15+ years of programming experience I have never once used this operator.
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">If</span> <span class="rc_number">1</span><span class="rc_number">1</span> <span class="rc_keyword">XOR</span> <span class="rc_number">2</span> <> <span class="rc_number">2</span> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">If</span> <span class="rc_number">1</span>=1 <span class="rc_keyword">XOR</span> <span class="rc_number">2</span> <> <span class="rc_number">2</span> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"This is true"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
</code></p>
|
||||
@@ -457,7 +457,7 @@
|
||||
This code will write "This is true" to the screen because the expression 1=3 is false. The <b>NOT</b> statement reverses the false and makes it true.
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">If</span> <span class="rc_keyword">NOT</span> <b>(</b><span class="rc_number">1</span><span class="rc_number">3</span><b>)</b> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">If</span> <span class="rc_keyword">NOT</span> <b>(</b><span class="rc_number">1</span>=3<b>)</b> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"This is true"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
</code></p>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub IncrementMatrixColumns(mA, mB, c, num_cols, value) </h2></p>
|
||||
<p>
|
||||
Increments all the values in a specified number of columns in matrix mA, starting from column c. The result is stored in matrix mB
|
||||
Increments all the values in a specified number of columns in matrix mA, starting from column c. The result is stored in matrix mB
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub IncrementMatrixRows(mA, mB, r, num_rows, value) </h2></p>
|
||||
<p>
|
||||
Increments all the values in a specified number of rows in matrix mA, starting from row r. The result is stored in matrix mB
|
||||
Increments all the values in a specified number of rows in matrix mA, starting from row r. The result is stored in matrix mB
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function InsertMatrixRows(mA, r, num_rows) </h2></p>
|
||||
<p>
|
||||
Insert a number of empty rows into matrix mA starting at the specified row.
|
||||
Insert a number of empty rows into matrix mA starting at the specified row.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>Function Interpolate(min_a, max_a, mid_a, min_b, max_b) </h2></p>
|
||||
<p>
|
||||
This function returns a value interpolated based on the comparison between a mid value in a range of given min and max values
|
||||
This function returns a value interpolated based on the comparison between a mid value in a range of given min and max values
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
<body>
|
||||
<p><h2>INTRODUCTION TO RCBASIC </h2></p>
|
||||
<p>
|
||||
First I would like to say thank you for taking an interest in RCBASIC ( I use all caps because I think it looks more retro that way). RCBASIC is a variant of the BASIC programming language. It consist of a compiler, interpreter, and a code editor. This version of BASIC was mostly influenced by sdlBasic and QBasic. My main reason for writing this software was just to have fun and challenge myself. This language is not as full featured as C++ or Java but you can still create some awesome stuff with it. I hope you have as much fun using this software as I had making it.
|
||||
First I would like to say thank you for taking an interest in RCBASIC ( I use all caps because I think it looks more retro that way). RCBASIC is a variant of the BASIC programming language. It consist of a compiler, interpreter, and a code editor. This version of BASIC was mostly influenced by sdlBasic and QBasic. My main reason for writing this software was just to have fun and challenge myself. This language is not as full featured as C++ or Java but you can still create some awesome stuff with it. I hope you have as much fun using this software as I had making it.
|
||||
</p>
|
||||
<p>
|
||||
Rodney Cunningham (aka. n00b)
|
||||
Rodney Cunningham (aka. n00b)
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function InvertMatrix(mA, mB) </h2></p>
|
||||
<p>
|
||||
Stores the inverse matrix of mA in mB
|
||||
Stores the inverse matrix of mA in mB
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
USER_NAME$ = INPUT$<b>(</b><span class="rc_string">"WHAT IS YOUR NAME? "</span><b>)</b> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
The above example will ask the user WHAT IS YOUR NAME? and then store whatever the user types in into the variable USER_NAME$.
|
||||
The above example will ask the user WHAT IS YOUR NAME? and then store whatever the user types in into the variable USER_NAME$.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function IsEqualMatrix(mA, mB, tolerance) </h2></p>
|
||||
<p>
|
||||
Returns true if matrix mA is within tolerance of matrix mB
|
||||
Returns true if matrix mA is within tolerance of matrix mB
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub JoinMatrixColumns(mA, mB, mC) </h2></p>
|
||||
<p>
|
||||
Appends the columns in matrix mB below matrix mA.
|
||||
Appends the columns in matrix mB below matrix mA.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>sub JoinMatrixRows(mA, mB, mC) </h2></p>
|
||||
<p>
|
||||
Appends the rows in matrix mB onto the right of matrix mA.
|
||||
Appends the rows in matrix mB onto the right of matrix mA.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Lcase$ [RCBasic Doc] </title>
|
||||
<title>LCase$ [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Lcase$(src$) </h2></p>
|
||||
<p><h2>function LCase$(src$) </h2></p>
|
||||
<p>
|
||||
Returns src$ converted to a completely lower-case string
|
||||
</p>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>LICENSE </h2></p>
|
||||
<p>
|
||||
RCBasic is available under the zlib license :
|
||||
RCBasic is available under the zlib license :
|
||||
</p>
|
||||
<p>
|
||||
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>loopActorAnimation [RCBasic Doc] </title>
|
||||
<title>LoopActorAnimation [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub loopActorAnimation( actor, flag ) </h2></p>
|
||||
<p><h2>sub LoopActorAnimation( actor, flag ) </h2></p>
|
||||
<p>
|
||||
Enables or disables actor animation loop
|
||||
</p>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">For</span> I = <span class="rc_number">1</span> <span class="rc_keyword">To</span> <span class="rc_number">5</span> <br>
|
||||
<span class="rc_keyword">Print</span> I <br>
|
||||
<span class="rc_keyword">Print</span> I <br>
|
||||
<span class="rc_keyword">Next</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
@@ -24,7 +24,7 @@
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">For</span> I = <span class="rc_number">1</span> <span class="rc_keyword">To</span> <span class="rc_number">5</span> Step <span class="rc_number">2</span> <br>
|
||||
<span class="rc_keyword">Print</span> I <br>
|
||||
<span class="rc_keyword">Print</span> I <br>
|
||||
<span class="rc_keyword">Next</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
@@ -36,8 +36,8 @@
|
||||
<p id="rc_code"><code>
|
||||
I = <span class="rc_number">0</span> <br>
|
||||
<span class="rc_keyword">While</span> I < <span class="rc_number">5</span> <br>
|
||||
<span class="rc_keyword">Print</span> I <br>
|
||||
I = I + <span class="rc_number">1</span> <br>
|
||||
<span class="rc_keyword">Print</span> I <br>
|
||||
I = I + <span class="rc_number">1</span> <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
@@ -51,7 +51,7 @@
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Do</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"HELLO WORLD"</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"HELLO WORLD"</span> <br>
|
||||
<span class="rc_keyword">Loop</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
@@ -60,8 +60,8 @@
|
||||
<p id="rc_code"><code>
|
||||
I = <span class="rc_number">0</span> <br>
|
||||
<span class="rc_keyword">Do</span> <br>
|
||||
<span class="rc_keyword">Print</span> I <br>
|
||||
I = I + <span class="rc_number">1</span> <br>
|
||||
<span class="rc_keyword">Print</span> I <br>
|
||||
I = I + <span class="rc_number">1</span> <br>
|
||||
<span class="rc_keyword">Loop</span> <span class="rc_keyword">While</span> I < <span class="rc_number">5</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
@@ -70,12 +70,12 @@
|
||||
<p id="rc_code"><code>
|
||||
I = <span class="rc_number">0</span> <br>
|
||||
<span class="rc_keyword">Do</span> <br>
|
||||
<span class="rc_keyword">Print</span> I <br>
|
||||
I = I + <span class="rc_number">1</span> <br>
|
||||
<span class="rc_keyword">Print</span> I <br>
|
||||
I = I + <span class="rc_number">1</span> <br>
|
||||
<span class="rc_keyword">Loop</span> <span class="rc_keyword">Until</span> I = <span class="rc_number">5</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
The above code will output the numbers 0 to 4 to the console. This form of the <b>DO</b> loop will continue to loop until the loop condition is true.
|
||||
The above code will output the numbers 0 to 4 to the console. This form of the <b>DO</b> loop will continue to loop until the loop condition is true.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -3,14 +3,18 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Ltrim$ [RCBasic Doc] </title>
|
||||
<title>LTrim$ [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Ltrim$(src$) </h2></p>
|
||||
<p><h2>function LTrim$(src$) </h2></p>
|
||||
<p>
|
||||
Returns src$ with all the spaces before the first non-space character removed.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="rtrim.html">RTrim</a>
|
||||
<a href="trim.html">Trim</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
<body>
|
||||
<p><h2>function MaterialExists( material ) </h2></p>
|
||||
<p>
|
||||
Returns true if the material id is an existing material
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>materialIsAplhaBlend [RCBasic Doc] </title>
|
||||
<title>MaterialIsAplhaBlend [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function materialIsAplhaBlend( material_id) </h2></p>
|
||||
<p><h2>function MaterialIsAplhaBlend( material_id) </h2></p>
|
||||
<p>
|
||||
Returns true if alpha blending is enabled for a material
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>materialIsGouraudShaded [RCBasic Doc] </title>
|
||||
<title>MaterialIsGouraudShaded [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function materialIsGouraudShaded( material_id) </h2></p>
|
||||
<p><h2>function MaterialIsGouraudShaded( material_id ) </h2></p>
|
||||
<p>
|
||||
Returns true if material is set to goraud shading
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>materialIsLit [RCBasic Doc] </title>
|
||||
<title>MaterialIsLit [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function materialIsLit( material_id) </h2></p>
|
||||
<p><h2>function MaterialIsLit( material_id ) </h2></p>
|
||||
<p>
|
||||
Returns true if a material is affected by lights in the scene
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>materialIsNormalized [RCBasic Doc] </title>
|
||||
<title>MaterialIsNormalized [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function materialIsNormalized( material_id) </h2></p>
|
||||
<p><h2>function MaterialIsNormalized( material_id ) </h2></p>
|
||||
<p>
|
||||
Returns true if material has normalized normals
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>materialIsPointCloud [RCBasic Doc] </title>
|
||||
<title>MaterialIsPointCloud [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function materialIsPointCloud( material_id) </h2></p>
|
||||
<p><h2>function MaterialIsPointCloud( material_id ) </h2></p>
|
||||
<p>
|
||||
Returns true if material is set to render with point cloud
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>materialIsTransparent [RCBasic Doc] </title>
|
||||
<title>MaterialIsTransparent [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function materialIsTransparent( material_id) </h2></p>
|
||||
<p><h2>function MaterialIsTransparent( material_id) </h2></p>
|
||||
<p>
|
||||
Returns true if material is transparent
|
||||
</p>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>materialIsWireframe [RCBasic Doc] </title>
|
||||
<title>MaterialIsWireframe [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function materialIsWireframe( material_id) </h2></p>
|
||||
<p><h2>function MaterialIsWireframe( material_id ) </h2></p>
|
||||
<p>
|
||||
Returns true if the material is rendered with non-filled triangles
|
||||
</p>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
Creates a matrix from an array.
|
||||
</p>
|
||||
<p>
|
||||
NOTE: buffer must have the same number of dimensions as the desired matrix for the structure to remain intact.
|
||||
NOTE: buffer must have the same number of dimensions as the desired matrix for the structure to remain intact.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function MatrixValue(mA, r, c) </h2></p>
|
||||
<p>
|
||||
Returns the value stored at the given row and column in the matrix
|
||||
Returns the value stored at the given row and column in the matrix
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<p><h2>function MultiplyMatrix(mA, mB, mC) </h2></p>
|
||||
<p>
|
||||
Multiply matrix mA and mB and store the result in mC
|
||||
Multiply matrix mA and mB and store the result in mC
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -487,12 +487,16 @@ ul, #myUL {
|
||||
|
||||
<li><a href="setmouserelative.html" target="main">SetMouseRelative</a></li>
|
||||
|
||||
<li><a href="setwindowvsync.html" target="main">SetWindowVSync</a></li>
|
||||
|
||||
<li><a href="flashwindow.html" target="main">FlashWindow</a></li>
|
||||
|
||||
<li><a href="windowisgrabbed.html" target="main">WindowIsGrabbed</a></li>
|
||||
|
||||
<li><a href="preupdate.html" target="main">PreUpdate</a></li>
|
||||
|
||||
<li><a href="setfps.html" target="main">SetFPS</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
@@ -657,6 +661,10 @@ ul, #myUL {
|
||||
|
||||
<li><a href="drawimage_flipex.html" target="main">DrawImage_FlipEx</a></li>
|
||||
|
||||
<li><a href="setantialiasmode.html" target="main">SetAntiAliasMode</a></li>
|
||||
|
||||
<li><a href="getantialiasmode.html" target="main">GetAntiAliasMode</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
@@ -1221,6 +1229,16 @@ ul, #myUL {
|
||||
|
||||
<li><a href="getspritesource.html" target="main">GetSpriteSource</a></li>
|
||||
|
||||
<li><a href="spriteexists.html" target="main">SpriteExists</a></li>
|
||||
|
||||
<li><a href="setspritecolormod.html" target="main">SetSpriteColorMod</a></li>
|
||||
|
||||
<li><a href="setspritealpha.html" target="main">SetSpriteAlpha</a></li>
|
||||
|
||||
<li><a href="getspritecolormod.html" target="main">GetSpriteColorMod</a></li>
|
||||
|
||||
<li><a href="getspritealpha.html" target="main">GetSpriteAlpha</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
@@ -1519,6 +1537,8 @@ ul, #myUL {
|
||||
|
||||
<li><a href="deletejoint.html" target="main">DeleteJoint</a></li>
|
||||
|
||||
<li><a href="jointexists.html" target="main">JointExists</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
@@ -1587,6 +1607,14 @@ ul, #myUL {
|
||||
|
||||
<li><a href="getan8scenename.html" target="main">GetAN8SceneName$</a></li>
|
||||
|
||||
<li><a href="createconemesh.html" target="main">CreateConeMesh</a></li>
|
||||
|
||||
<li><a href="createcylindermesh.html" target="main">CreateCylinderMesh</a></li>
|
||||
|
||||
<li><a href="createvolumelightmesh.html" target="main">CreateVolumeLightMesh</a></li>
|
||||
|
||||
<li><a href="deletean8.html" target="main">DeleteAN8</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user