Skip to content

Commit

Permalink
Bit of the ol' reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Jul 26, 2021
1 parent 91c7910 commit 176e679
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 59 deletions.
7 changes: 4 additions & 3 deletions kawase.yyp

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

10 changes: 3 additions & 7 deletions scripts/__kawase_check_surface/__kawase_check_surface.gml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/// @param iterationArray
function __kawase_check_surface(argument0) {

var _array = argument0;

function __kawase_check_surface(_array)
{
var _width = _array[0];
var _height = _array[1];
var _surface = _array[2];
Expand Down Expand Up @@ -31,7 +30,4 @@ function __kawase_check_surface(argument0) {
}

return _surface;



}
}
4 changes: 2 additions & 2 deletions scripts/__kawase_check_surface/__kawase_check_surface.yy

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

3 changes: 2 additions & 1 deletion scripts/kawase_blur/kawase_blur.gml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/// @param kawaseArray
/// @param [iterations]
function kawase_blur() {

function kawase_blur()
{
var _root_array = argument[0];
var _iterations = (argument_count > 1)? argument[1] : undefined;

Expand Down
7 changes: 2 additions & 5 deletions scripts/kawase_create/kawase_create.gml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/// @param width
/// @param height
/// @param maxIterations
function kawase_create(argument0, argument1, argument2) {

var _width = argument0;
var _height = argument1;
var _iterations = argument2;

function kawase_create(_width, _height, _iterations)
{
global.__kawase_down_texel_uniform = shader_get_uniform(shd_kawase_down, "u_vTexel");
global.__kawase_up_texel_uniform = shader_get_uniform(shd_kawase_up , "u_vTexel");

Expand Down
9 changes: 3 additions & 6 deletions scripts/kawase_destroy/kawase_destroy.gml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
/// @param kawaseArray
function kawase_destroy(argument0) {

var _root_array = argument0;

function kawase_destroy(_root_array)
{
var _i = 0;
repeat(array_length(_root_array))
{
var _array = _root_array[_i];
surface_free(_array[2]);
++_i;
}


}
}
11 changes: 4 additions & 7 deletions scripts/kawase_draw_debug/kawase_draw_debug.gml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
/// @param kawaseArray
function kawase_draw_debug(argument0) {

var _root_array = argument0;

function kawase_draw_debug(_root_array)
{
var _i = 0;
var _x = 0;
repeat(array_length(_root_array))
{
var _array = _root_array[_i];
draw_surface(_array[2], _x, 0);

_x += _array[0];
++_i;
}


}
}
9 changes: 3 additions & 6 deletions scripts/kawase_get_height/kawase_get_height.gml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/// @param kawaseArray
function kawase_get_height(argument0) {

var _root_array = argument0;

function kawase_get_height(_root_array)
{
var _array = _root_array[0];
return _array[1];


}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/// @param kawaseArray
function kawase_get_max_iterations(argument0) {

var _root_array = argument0;

function kawase_get_max_iterations(_root_array)
{
return array_length(_root_array) - 1;


}
}
9 changes: 3 additions & 6 deletions scripts/kawase_get_surface/kawase_get_surface.gml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/// @param kawaseArray
function kawase_get_surface(argument0) {

var _root_array = argument0;

function kawase_get_surface(_root_array)
{
return __kawase_check_surface(_root_array[0]);


}
}
9 changes: 3 additions & 6 deletions scripts/kawase_get_width/kawase_get_width.gml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/// @param kawaseArray
function kawase_get_width(argument0) {

var _root_array = argument0;

function kawase_get_width(_root_array)
{
var _array = _root_array[0];
return _array[0];


}
}
4 changes: 2 additions & 2 deletions shaders/shd_kawase_down/shd_kawase_down.yy

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

4 changes: 2 additions & 2 deletions shaders/shd_kawase_up/shd_kawase_up.yy

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

0 comments on commit 176e679

Please sign in to comment.