Skip to content

Commit

Permalink
Added as and pt to DLL, increased version, added changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kraifpatrik committed Feb 4, 2023
1 parent b1d5f2e commit eac91c4
Show file tree
Hide file tree
Showing 20 changed files with 104 additions and 18 deletions.
Binary file modified BBMOD_GML/datafiles/Data/BBMOD/BBMOD
Binary file not shown.
Binary file modified BBMOD_GML/datafiles/Data/BBMOD/libBBMOD.dylib
Binary file not shown.
Binary file modified BBMOD_GML/datafiles/Data/BBMOD/libassimp.5.dylib
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/amazonfire/options_amazonfire.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/android/options_android.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/html5/options_html5.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/ios/options_ios.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/linux/options_linux.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/mac/options_mac.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/operagx/options_operagx.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/tvos/options_tvos.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/windows/options_windows.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BBMOD_GML/options/windowsuap/options_windowsuap.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 79 additions & 1 deletion BBMOD_GML/scripts/BBMOD_DLL/BBMOD_DLL.gml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function BBMOD_DLL()
///
/// @throws {BBMOD_Exception} If the operation fails.
///
/// @see BBMOD_DLL.get_disable_bone
/// @see BBMOD_DLL.get_disable_bone
static set_disable_bone = function (_disable) {
gml_pragma("forceinline");
static _fn = external_define(
Expand Down Expand Up @@ -687,6 +687,84 @@ function BBMOD_DLL()
return self;
};

/// @func get_apply_scale()
///
/// @desc Checks whether the "apply scale" option is enabled.
///
/// @return {Bool} If `true` then the "apply scale" option is enabled.
///
/// @see BBMOD_DLL.set_apply_scale
static get_apply_scale = function () {
gml_pragma("forceinline");
static _fn = external_define(
BBMOD_DLL_PATH, "bbmod_dll_get_apply_scale", dll_cdecl, ty_real, 0);
return external_call(_fn);
};

/// @func set_apply_scale(_enable)
///
/// @desc Enables/disables the "apply scale" option, which applies global
/// scaling factor defined in the model file if enabled.
/// This is by default **disabled**.
///
/// @param {Bool} _enable `true` to enable the option.
///
/// @return {Struct.BBMOD_DLL} Returns `self`.
///
/// @throws {BBMOD_Exception} If the operation fails.
///
/// @see BBMOD_DLL.get_apply_scale
static set_apply_scale = function (_enable) {
gml_pragma("forceinline");
static _fn = external_define(
BBMOD_DLL_PATH, "bbmod_dll_set_apply_scale", dll_cdecl, ty_real, 1, ty_real);
var _retval = external_call(_fn, _enable);
if (_retval != __BBMOD_DLL_SUCCESS)
{
throw new BBMOD_Exception();
}
return self;
};

/// @func get_pre_transform()
///
/// @desc Checks whether the "pre-transform" option is enabled.
///
/// @return {Bool} If `true` then the "pre-transform" option is enabled.
///
/// @see BBMOD_DLL.set_pre_transform
static get_pre_transform = function () {
gml_pragma("forceinline");
static _fn = external_define(
BBMOD_DLL_PATH, "bbmod_dll_get_pre_transform", dll_cdecl, ty_real, 0);
return external_call(_fn);
};

/// @func set_pre_transform(_enable)
///
/// @desc Enables/disables the "pre-transform" option, which pre-transforms
/// the models and collapses all nodes into one if possible.
/// This is by default **disabled**.
///
/// @param {Bool} _enable `true` to enable the option.
///
/// @return {Struct.BBMOD_DLL} Returns `self`.
///
/// @throws {BBMOD_Exception} If the operation fails.
///
/// @see BBMOD_DLL.get_pre_transform
static set_pre_transform = function (_enable) {
gml_pragma("forceinline");
static _fn = external_define(
BBMOD_DLL_PATH, "bbmod_dll_set_apply_scale", dll_cdecl, ty_real, 1, ty_real);
var _retval = external_call(_fn, _enable);
if (_retval != __BBMOD_DLL_SUCCESS)
{
throw new BBMOD_Exception();
}
return self;
};

/// @func get_optimize_animations()
///
/// @desc Retrieves the animation optimization level.
Expand Down
4 changes: 0 additions & 4 deletions ChangelogDev.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Changelog dev
> This file is used to accumulate changes before a changelog for a release is
> created.
* Added option `--apply-scale` (or `-as`), which applies global scaling factor defined in the model file if enabled. For backwards compatibility this is by default disabled.
* Added option `--pre-transform` (or `-as`), which pre-transforms the models and collapses all nodes into one if possible. For backwards compatibility this is by default disabled.
* Reconfigured Assimp to do less post-processing on the models by default, as the old settings caused issues with some models.
10 changes: 10 additions & 0 deletions docs_src/Changelog/Changelog3.16.7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog 3.16.7
This release reconfigures Assimp and adds new options to BBMOD CLI and DLL to give you more control over model conversion.

* Reconfigured Assimp to do less post-processing on models by default, as the old settings could sometime cause issues and make the model unusable.
* Added new option `--apply-scale` (or `-as`) to BBMOD CLI, which applies global scaling factor defined in the model file if enabled. For backwards compatibility this is by default disabled.
* Added new option `--pre-transform` (or `-pt`) to BBMOD CLI, which pre-transforms the models and collapses all nodes into one if possible. For backwards compatibility this is by default disabled.
* Added new method `get_apply_scale` to `BBMOD_DLL`, which checks whether the new "apply scale" option is enabled.
* Added new method `set_apply_scale` to `BBMOD_DLL`, which enables/disables the new "apply scale" option.
* Added new method `get_pre_transform` to `BBMOD_DLL`, which checks whether the new "pre-transform" option is enabled.
* Added new method `set_pre_transform` to `BBMOD_DLL`, which enables/disables the new "pre-transform" option.
1 change: 1 addition & 0 deletions docs_src/Changelog/Changelog_.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
In this section you can find changelogs for all releases of BBMOD since 3.0.0.

## Contents
* [3.16.7](./Changelog3.16.7.html)
* [3.16.6](./Changelog3.16.6.html)
* [3.16.5](./Changelog3.16.5.html)
* [3.16.4](./Changelog3.16.4.html)
Expand Down
2 changes: 1 addition & 1 deletion docs_src/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# BBMOD
Welcome to the official documentation of BBMOD 3.16.6!
Welcome to the official documentation of BBMOD 3.16.7!

BBMOD is an advanced 3D rendering solution for GameMaker. It consists of a
custom model and animation file formats (`*.bbmod`, `*.bbanim`), a model
Expand Down
3 changes: 2 additions & 1 deletion gmdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "BBMOD Docs",
"author": "BlueBurn",
"prefix": ["bbmod", "__bbmod"],
"version": "3.16.6",
"version": "3.16.7",
"analytics": "",
"api": {
"rating": "/bbmod/page_rating.php"
Expand All @@ -15,6 +15,7 @@
"Changelog": {
"file": "Changelog/Changelog_.md",
"pages": {
"3.16.7": "Changelog/Changelog3.16.7.md",
"3.16.6": "Changelog/Changelog3.16.6.md",
"3.16.5": "Changelog/Changelog3.16.5.md",
"3.16.4": "Changelog/Changelog3.16.4.md",
Expand Down

0 comments on commit eac91c4

Please sign in to comment.