Skip to content

Commit

Permalink
Update RSDKv4 Functions
Browse files Browse the repository at this point in the history
Reformatted function and callback lists to use tables, and fixed many typos, grammatical errors and missing/incorrect info.
  • Loading branch information
MegAmi24 committed Sep 11, 2024
1 parent 4aed845 commit 2e05a0c
Show file tree
Hide file tree
Showing 184 changed files with 919 additions and 886 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h1>
<a href="#hedgedocs">
<a href="#rsdk">
<img width="120" align="left" src="docs/assets/RSDK_Icon_Color.svg">
</a>
RSDK<span style="font-weight: 200;"> Modding Wiki</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/RSDKv4/Functions/3D/Draw3DScene.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ None.
## Return Value
None.

## Syntax
## Example
```
Draw3DScene()
```
21 changes: 0 additions & 21 deletions docs/RSDKv4/Functions/3D/InverseMatrix.md

This file was deleted.

24 changes: 24 additions & 0 deletions docs/RSDKv4/Functions/3D/MatrixInverse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# MatrixInverse

!!! note
This function does not exist in REV00.

## Description
Performs an inversion on `matrix`'s values.

## Parameters
- `matrix`
The matrix to invert, valid matrices are `MAT_WORLD`, `MAT_VIEW` and `MAT_TEMP`.

## Return Value
None.

## Syntax
```
MatrixInverse(int matrix)
```

## Example
```
MatrixInverse(MAT_WORLD)
```
2 changes: 1 addition & 1 deletion docs/RSDKv4/Functions/3D/MatrixMultiply.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The result will be stored in `matrixA`.
MatrixMultiply(mat matrixA, mat matrixB)
```

## Examples
## Example
```
MatrixMultiply(mat matrixA, mat matrixB)
```
2 changes: 1 addition & 1 deletion docs/RSDKv4/Functions/3D/MatrixRotateXYZ.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ None.
MatrixRotateXYZ(mat matrix, int angleX, int angleY, int angleZ)
```

## Examples
## Example
```
MatrixRotateXYZ(MAT_WORLD, 43, 85, 29)
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ None.
MatrixScaleXYZ(mat matrix, int scaleX, int scaleY, int scaleZ)
```

## Examples
## Example
```
MatrixScaleXYZ(MAT_VIEW, 0x200, 0x1A0, 0x180)
```
2 changes: 1 addition & 1 deletion docs/RSDKv4/Functions/3D/MatrixTranslateXYZ.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ None.
MatrixTranslateXYZ(mat matrix, int translateX, int translateY, int translateZ)
```

## Examples
## Example
```
MatrixTranslateXYZ(MAT_WORLD, -512, 720, temp0)
```
2 changes: 1 addition & 1 deletion docs/RSDKv4/Functions/3D/SetIdentityMatrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ None.
SetIdentityMatrix(mat matID)
```

## Examples
## Example
```
SetIdentityMatrix(MAT_WORLD)
```
2 changes: 1 addition & 1 deletion docs/RSDKv4/Functions/3D/TransformVertices.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ None.
TransformVertices(mat matrix, int startIndex, int endIndex)
```

## Examples
## Example
```
TransformVertices(MAT_VIEW, 0xFFE, 0x1000)
```
23 changes: 0 additions & 23 deletions docs/RSDKv4/Functions/Animations-Sprites/DrawObjectAnimation.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/RSDKv4/Functions/Animations-Sprites/DrawSprite.md

This file was deleted.

48 changes: 0 additions & 48 deletions docs/RSDKv4/Functions/Animations-Sprites/DrawSpriteFX.md

This file was deleted.

49 changes: 0 additions & 49 deletions docs/RSDKv4/Functions/Animations-Sprites/DrawSpriteScreenFX.md

This file was deleted.

37 changes: 0 additions & 37 deletions docs/RSDKv4/Functions/Animations-Sprites/EditFrame.md

This file was deleted.

23 changes: 0 additions & 23 deletions docs/RSDKv4/Functions/Animations-Sprites/ProcessAnimation.md

This file was deleted.

9 changes: 2 additions & 7 deletions docs/RSDKv4/Functions/Audio/PauseMusic.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# PauseMusic

## Description
Pauses the currently playing music track, if one is playing. The track can be resumed with `ResumeMusic()`.
Pauses the currently playing music track, if one is playing. The track can be resumed with [ResumeMusic()](ResumeMusic.md).

## Parameters
None.

## Return Value
None.

## Syntax
```
PauseMusic()
```

## Examples
## Example
```
PauseMusic()
```
2 changes: 1 addition & 1 deletion docs/RSDKv4/Functions/Audio/PlayMusic.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ None.
PlayMusic(int trackID)
```

## Examples
## Example
```
PlayMusic(0)
```
2 changes: 1 addition & 1 deletion docs/RSDKv4/Functions/Audio/PlaySfx.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ None.
PlaySfx(int sfx, bool loop)
```

## Examples
## Example
```
PlaySfx(SfxName[Test], false)
```
Loading

0 comments on commit 2e05a0c

Please sign in to comment.