-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1edd80e
commit b5b3304
Showing
6 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
/** | ||
* @file bez.h | ||
* | ||
* @brief Bezier curves. | ||
* | ||
* @todo Add function parameters and documentation. | ||
*/ | ||
#ifndef BEZ_H | ||
#define BEZ_H | ||
|
||
#include "common.h" | ||
#include <vec.h> | ||
#include <mat.h> | ||
|
||
// ... | ||
void EvaluateBezierWeightedFloat(float, float, float, float, float, float, float, float, float, float *, float *, float *); | ||
void EvaluateBezierFloat(float, float, float, float, float, float, float, float *, float *, float *); | ||
void EvaluateBezierPos(float, float, float, VECTOR *, VECTOR *, VECTOR *, VECTOR *, VECTOR *, VECTOR *, VECTOR *); | ||
void EvaluateBezierMat(float, float, float, MATRIX3 *, VECTOR *, MATRIX3 *, VECTOR *, MATRIX3 *, VECTOR *, VECTOR *); | ||
void TesselateBezier(float, float, float, VECTOR *, VECTOR *, VECTOR *, VECTOR *, int, VECTOR *); | ||
float SBezierPosLength(float, float, VECTOR *, VECTOR *, VECTOR *, VECTOR *); | ||
|
||
void LimitBezierMulti(int c, ...); | ||
|
||
#endif // BEZ_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <basic.h> | ||
|
||
INCLUDE_ASM(const s32, "P2/basic", FIsBasicDerivedFrom__FP5BASIC3CID); | ||
|
||
INCLUDE_ASM(const s32, "P2/basic", EnsureBasicSidebag__FP5BASIC); | ||
|
||
INCLUDE_ASM(const s32, "P2/basic", func_00130158); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <bez.h> | ||
|
||
INCLUDE_ASM(const s32, "P2/bez", EvaluateBezierWeightedFloat__FfffffffffPfN29); | ||
|
||
INCLUDE_ASM(const s32, "P2/bez", EvaluateBezierFloat__FfffffffPfN27); | ||
|
||
INCLUDE_ASM(const s32, "P2/bez", EvaluateBezierPos__FfffP6VECTORN63); | ||
|
||
INCLUDE_ASM(const s32, "P2/bez", EvaluateBezierMat__FfffP7MATRIX3P6VECTORT3T4T3T4T4); | ||
|
||
INCLUDE_ASM(const s32, "P2/bez", TesselateBezier__FfffP6VECTORN33iT3); | ||
|
||
INCLUDE_ASM(const s32, "P2/bez", SBezierPosLength__FffP6VECTORN32); | ||
|
||
INCLUDE_ASM(const s32, "P2/bez", LimitBezierMulti__Fie); |