Skip to content

Commit 9ca2cc8

Browse files
committed
wrapper uses right spacing on new by-ref functions
1 parent c1ae12d commit 9ca2cc8

2 files changed

Lines changed: 1 addition & 46 deletions

File tree

src/generated/node-raylib.js

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8883,7 +8883,6 @@ function UpdateCamera (camera) {
88838883
if (typeof obj !== 'undefined') {
88848884
for (const key in obj) {
88858885
camera[key] = obj[key]
8886-
console.log(obj[key])
88878886
}
88888887
}
88898888
}
@@ -8909,7 +8908,6 @@ function ImageFormat (image, newFormat) {
89098908
if (typeof obj !== 'undefined') {
89108909
for (const key in obj) {
89118910
image[key] = obj[key]
8912-
console.log(obj[key])
89138911
}
89148912
}
89158913
}
@@ -8938,7 +8936,6 @@ function ImageToPOT (image, fill) {
89388936
if (typeof obj !== 'undefined') {
89398937
for (const key in obj) {
89408938
image[key] = obj[key]
8941-
console.log(obj[key])
89428939
}
89438940
}
89448941
}
@@ -8967,7 +8964,6 @@ function ImageCrop (image, crop) {
89678964
if (typeof obj !== 'undefined') {
89688965
for (const key in obj) {
89698966
image[key] = obj[key]
8970-
console.log(obj[key])
89718967
}
89728968
}
89738969
}
@@ -8993,7 +8989,6 @@ function ImageAlphaCrop (image, threshold) {
89938989
if (typeof obj !== 'undefined') {
89948990
for (const key in obj) {
89958991
image[key] = obj[key]
8996-
console.log(obj[key])
89978992
}
89988993
}
89998994
}
@@ -9024,7 +9019,6 @@ function ImageAlphaClear (image, color, threshold) {
90249019
if (typeof obj !== 'undefined') {
90259020
for (const key in obj) {
90269021
image[key] = obj[key]
9027-
console.log(obj[key])
90289022
}
90299023
}
90309024
}
@@ -9054,7 +9048,6 @@ function ImageAlphaMask (image, alphaMask) {
90549048
if (typeof obj !== 'undefined') {
90559049
for (const key in obj) {
90569050
image[key] = obj[key]
9057-
console.log(obj[key])
90589051
}
90599052
}
90609053
}
@@ -9078,7 +9071,6 @@ function ImageAlphaPremultiply (image) {
90789071
if (typeof obj !== 'undefined') {
90799072
for (const key in obj) {
90809073
image[key] = obj[key]
9081-
console.log(obj[key])
90829074
}
90839075
}
90849076
}
@@ -9106,7 +9098,6 @@ function ImageResize (image, newWidth, newHeight) {
91069098
if (typeof obj !== 'undefined') {
91079099
for (const key in obj) {
91089100
image[key] = obj[key]
9109-
console.log(obj[key])
91109101
}
91119102
}
91129103
}
@@ -9134,7 +9125,6 @@ function ImageResizeNN (image, newWidth, newHeight) {
91349125
if (typeof obj !== 'undefined') {
91359126
for (const key in obj) {
91369127
image[key] = obj[key]
9137-
console.log(obj[key])
91389128
}
91399129
}
91409130
}
@@ -9171,7 +9161,6 @@ function ImageResizeCanvas (image, newWidth, newHeight, offsetX, offsetY, fill)
91719161
if (typeof obj !== 'undefined') {
91729162
for (const key in obj) {
91739163
image[key] = obj[key]
9174-
console.log(obj[key])
91759164
}
91769165
}
91779166
}
@@ -9195,7 +9184,6 @@ function ImageMipmaps (image) {
91959184
if (typeof obj !== 'undefined') {
91969185
for (const key in obj) {
91979186
image[key] = obj[key]
9198-
console.log(obj[key])
91999187
}
92009188
}
92019189
}
@@ -9227,7 +9215,6 @@ function ImageDither (image, rBpp, gBpp, bBpp, aBpp) {
92279215
if (typeof obj !== 'undefined') {
92289216
for (const key in obj) {
92299217
image[key] = obj[key]
9230-
console.log(obj[key])
92319218
}
92329219
}
92339220
}
@@ -9251,7 +9238,6 @@ function ImageFlipVertical (image) {
92519238
if (typeof obj !== 'undefined') {
92529239
for (const key in obj) {
92539240
image[key] = obj[key]
9254-
console.log(obj[key])
92559241
}
92569242
}
92579243
}
@@ -9275,7 +9261,6 @@ function ImageFlipHorizontal (image) {
92759261
if (typeof obj !== 'undefined') {
92769262
for (const key in obj) {
92779263
image[key] = obj[key]
9278-
console.log(obj[key])
92799264
}
92809265
}
92819266
}
@@ -9299,7 +9284,6 @@ function ImageRotateCW (image) {
92999284
if (typeof obj !== 'undefined') {
93009285
for (const key in obj) {
93019286
image[key] = obj[key]
9302-
console.log(obj[key])
93039287
}
93049288
}
93059289
}
@@ -9323,7 +9307,6 @@ function ImageRotateCCW (image) {
93239307
if (typeof obj !== 'undefined') {
93249308
for (const key in obj) {
93259309
image[key] = obj[key]
9326-
console.log(obj[key])
93279310
}
93289311
}
93299312
}
@@ -9352,7 +9335,6 @@ function ImageColorTint (image, color) {
93529335
if (typeof obj !== 'undefined') {
93539336
for (const key in obj) {
93549337
image[key] = obj[key]
9355-
console.log(obj[key])
93569338
}
93579339
}
93589340
}
@@ -9376,7 +9358,6 @@ function ImageColorInvert (image) {
93769358
if (typeof obj !== 'undefined') {
93779359
for (const key in obj) {
93789360
image[key] = obj[key]
9379-
console.log(obj[key])
93809361
}
93819362
}
93829363
}
@@ -9400,7 +9381,6 @@ function ImageColorGrayscale (image) {
94009381
if (typeof obj !== 'undefined') {
94019382
for (const key in obj) {
94029383
image[key] = obj[key]
9403-
console.log(obj[key])
94049384
}
94059385
}
94069386
}
@@ -9426,7 +9406,6 @@ function ImageColorContrast (image, contrast) {
94269406
if (typeof obj !== 'undefined') {
94279407
for (const key in obj) {
94289408
image[key] = obj[key]
9429-
console.log(obj[key])
94309409
}
94319410
}
94329411
}
@@ -9452,7 +9431,6 @@ function ImageColorBrightness (image, brightness) {
94529431
if (typeof obj !== 'undefined') {
94539432
for (const key in obj) {
94549433
image[key] = obj[key]
9455-
console.log(obj[key])
94569434
}
94579435
}
94589436
}
@@ -9486,7 +9464,6 @@ function ImageColorReplace (image, color, replace) {
94869464
if (typeof obj !== 'undefined') {
94879465
for (const key in obj) {
94889466
image[key] = obj[key]
9489-
console.log(obj[key])
94909467
}
94919468
}
94929469
}
@@ -9515,7 +9492,6 @@ function ImageClearBackground (dst, color) {
95159492
if (typeof obj !== 'undefined') {
95169493
for (const key in obj) {
95179494
dst[key] = obj[key]
9518-
console.log(obj[key])
95199495
}
95209496
}
95219497
}
@@ -9548,7 +9524,6 @@ function ImageDrawPixel (dst, posX, posY, color) {
95489524
if (typeof obj !== 'undefined') {
95499525
for (const key in obj) {
95509526
dst[key] = obj[key]
9551-
console.log(obj[key])
95529527
}
95539528
}
95549529
}
@@ -9580,7 +9555,6 @@ function ImageDrawPixelV (dst, position, color) {
95809555
if (typeof obj !== 'undefined') {
95819556
for (const key in obj) {
95829557
dst[key] = obj[key]
9583-
console.log(obj[key])
95849558
}
95859559
}
95869560
}
@@ -9617,7 +9591,6 @@ function ImageDrawLine (dst, startPosX, startPosY, endPosX, endPosY, color) {
96179591
if (typeof obj !== 'undefined') {
96189592
for (const key in obj) {
96199593
dst[key] = obj[key]
9620-
console.log(obj[key])
96219594
}
96229595
}
96239596
}
@@ -9652,7 +9625,6 @@ function ImageDrawLineV (dst, start, end, color) {
96529625
if (typeof obj !== 'undefined') {
96539626
for (const key in obj) {
96549627
dst[key] = obj[key]
9655-
console.log(obj[key])
96569628
}
96579629
}
96589630
}
@@ -9687,7 +9659,6 @@ function ImageDrawCircle (dst, centerX, centerY, radius, color) {
96879659
if (typeof obj !== 'undefined') {
96889660
for (const key in obj) {
96899661
dst[key] = obj[key]
9690-
console.log(obj[key])
96919662
}
96929663
}
96939664
}
@@ -9721,7 +9692,6 @@ function ImageDrawCircleV (dst, center, radius, color) {
97219692
if (typeof obj !== 'undefined') {
97229693
for (const key in obj) {
97239694
dst[key] = obj[key]
9724-
console.log(obj[key])
97259695
}
97269696
}
97279697
}
@@ -9758,7 +9728,6 @@ function ImageDrawRectangle (dst, posX, posY, width, height, color) {
97589728
if (typeof obj !== 'undefined') {
97599729
for (const key in obj) {
97609730
dst[key] = obj[key]
9761-
console.log(obj[key])
97629731
}
97639732
}
97649733
}
@@ -9793,7 +9762,6 @@ function ImageDrawRectangleV (dst, position, size, color) {
97939762
if (typeof obj !== 'undefined') {
97949763
for (const key in obj) {
97959764
dst[key] = obj[key]
9796-
console.log(obj[key])
97979765
}
97989766
}
97999767
}
@@ -9827,7 +9795,6 @@ function ImageDrawRectangleRec (dst, rec, color) {
98279795
if (typeof obj !== 'undefined') {
98289796
for (const key in obj) {
98299797
dst[key] = obj[key]
9830-
console.log(obj[key])
98319798
}
98329799
}
98339800
}
@@ -9863,7 +9830,6 @@ function ImageDrawRectangleLines (dst, rec, thick, color) {
98639830
if (typeof obj !== 'undefined') {
98649831
for (const key in obj) {
98659832
dst[key] = obj[key]
9866-
console.log(obj[key])
98679833
}
98689834
}
98699835
}
@@ -9908,7 +9874,6 @@ function ImageDraw (dst, src, srcRec, dstRec, tint) {
99089874
if (typeof obj !== 'undefined') {
99099875
for (const key in obj) {
99109876
dst[key] = obj[key]
9911-
console.log(obj[key])
99129877
}
99139878
}
99149879
}
@@ -9945,7 +9910,6 @@ function ImageDrawText (dst, text, posX, posY, fontSize, color) {
99459910
if (typeof obj !== 'undefined') {
99469911
for (const key in obj) {
99479912
dst[key] = obj[key]
9948-
console.log(obj[key])
99499913
}
99509914
}
99519915
}
@@ -9994,7 +9958,6 @@ function ImageDrawTextEx (dst, font, text, position, fontSize, spacing, tint) {
99949958
if (typeof obj !== 'undefined') {
99959959
for (const key in obj) {
99969960
dst[key] = obj[key]
9997-
console.log(obj[key])
99989961
}
99999962
}
100009963
}
@@ -10018,7 +9981,6 @@ function GenTextureMipmaps (texture) {
100189981
if (typeof obj !== 'undefined') {
100199982
for (const key in obj) {
100209983
texture[key] = obj[key]
10021-
console.log(obj[key])
100229984
}
100239985
}
100249986
}
@@ -10054,7 +10016,6 @@ function UploadMesh (mesh, dynamic) {
1005410016
if (typeof obj !== 'undefined') {
1005510017
for (const key in obj) {
1005610018
mesh[key] = obj[key]
10057-
console.log(obj[key])
1005810019
}
1005910020
}
1006010021
}
@@ -10088,7 +10049,6 @@ function GenMeshTangents (mesh) {
1008810049
if (typeof obj !== 'undefined') {
1008910050
for (const key in obj) {
1009010051
mesh[key] = obj[key]
10091-
console.log(obj[key])
1009210052
}
1009310053
}
1009410054
}
@@ -10122,7 +10082,6 @@ function GenMeshBinormals (mesh) {
1012210082
if (typeof obj !== 'undefined') {
1012310083
for (const key in obj) {
1012410084
mesh[key] = obj[key]
10125-
console.log(obj[key])
1012610085
}
1012710086
}
1012810087
}
@@ -10169,7 +10128,6 @@ function SetModelMeshMaterial (model, meshId, materialId) {
1016910128
if (typeof obj !== 'undefined') {
1017010129
for (const key in obj) {
1017110130
model[key] = obj[key]
10172-
console.log(obj[key])
1017310131
}
1017410132
}
1017510133
}
@@ -10199,7 +10157,6 @@ function WaveFormat (wave, sampleRate, sampleSize, channels) {
1019910157
if (typeof obj !== 'undefined') {
1020010158
for (const key in obj) {
1020110159
wave[key] = obj[key]
10202-
console.log(obj[key])
1020310160
}
1020410161
}
1020510162
}
@@ -10227,7 +10184,6 @@ function WaveCrop (wave, initSample, finalSample) {
1022710184
if (typeof obj !== 'undefined') {
1022810185
for (const key in obj) {
1022910186
wave[key] = obj[key]
10230-
console.log(obj[key])
1023110187
}
1023210188
}
1023310189
}

tools/generate_templates/node-raylib-wrapper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ function ${func.name}(${!params ? '' : params.map(param => param.name).join(', '
103103
.map(param => { return FlattenArgument(structs, param) })
104104
.join(',\n ') + '\n '
105105
})
106-
if (typeof obj !== "undefined") {
106+
if (typeof obj !== 'undefined') {
107107
for (const key in obj) {
108108
${params[0].name}[key] = obj[key]
109-
console.log(obj[key])
110109
}
111110
}
112111
}

0 commit comments

Comments
 (0)