-
-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement flecs script math functions
- Loading branch information
1 parent
894344f
commit ce89718
Showing
21 changed files
with
967 additions
and
187 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* @file addons/script_math.h | ||
* @brief Math functions for flecs script. | ||
*/ | ||
|
||
#ifdef FLECS_SCRIPT_MATH | ||
|
||
#ifndef FLECS_SCRIPT | ||
#define FLECS_SCRIPT | ||
#endif | ||
|
||
/** | ||
* @defgroup c_addons_script_math Script Math | ||
* @ingroup c_addons | ||
* Math functions for flecs script. | ||
* @{ | ||
*/ | ||
|
||
#ifndef FLECS_SCRIPT_MATH_H | ||
#define FLECS_SCRIPT_MATH_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** Script math import function. | ||
* Usage: | ||
* @code | ||
* ECS_IMPORT(world, FlecsScriptMath) | ||
* @endcode | ||
* | ||
* @param world The world. | ||
*/ | ||
FLECS_API | ||
void FlecsScriptMathImport( | ||
ecs_world_t *world); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif | ||
|
||
/** @} */ | ||
|
||
#endif |
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
2 changes: 1 addition & 1 deletion
2
src/addons/script/builtin_functions.c → src/addons/script/functions_builtin.c
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
Oops, something went wrong.