This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
/
zzz_BaseTexture.go
835 lines (704 loc) · 26 KB
/
zzz_BaseTexture.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
// Code generated by docs2go. DO NOT EDIT.
package babylon
import (
"syscall/js"
)
// BaseTexture represents a babylon.js BaseTexture.
// Base class of all the textures in babylon.
// It groups all the common properties the materials, post process, lights... might need
// in order to make a correct use of the texture.
type BaseTexture struct {
p js.Value
ctx js.Value
}
// JSObject returns the underlying js.Value.
func (b *BaseTexture) JSObject() js.Value { return b.p }
// BaseTexture returns a BaseTexture JavaScript class.
func (ba *Babylon) BaseTexture() *BaseTexture {
p := ba.ctx.Get("BaseTexture")
return BaseTextureFromJSObject(p, ba.ctx)
}
// BaseTextureFromJSObject returns a wrapped BaseTexture JavaScript class.
func BaseTextureFromJSObject(p js.Value, ctx js.Value) *BaseTexture {
return &BaseTexture{p: p, ctx: ctx}
}
// BaseTextureArrayToJSArray returns a JavaScript Array for the wrapped array.
func BaseTextureArrayToJSArray(array []*BaseTexture) []interface{} {
var result []interface{}
for _, v := range array {
result = append(result, v.JSObject())
}
return result
}
// NewBaseTexture returns a new BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#constructor
func (ba *Babylon) NewBaseTexture(scene *Scene) *BaseTexture {
args := make([]interface{}, 0, 1+0)
args = append(args, scene.JSObject())
p := ba.ctx.Get("BaseTexture").New(args...)
return BaseTextureFromJSObject(p, ba.ctx)
}
// Clone calls the Clone method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#clone
func (b *BaseTexture) Clone() *BaseTexture {
retVal := b.p.Call("clone")
return BaseTextureFromJSObject(retVal, b.ctx)
}
// DelayLoad calls the DelayLoad method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#delayload
func (b *BaseTexture) DelayLoad() {
b.p.Call("delayLoad")
}
// Dispose calls the Dispose method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#dispose
func (b *BaseTexture) Dispose() {
b.p.Call("dispose")
}
// GetBaseSize calls the GetBaseSize method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#getbasesize
func (b *BaseTexture) GetBaseSize() *ISize {
retVal := b.p.Call("getBaseSize")
return ISizeFromJSObject(retVal, b.ctx)
}
// GetClassName calls the GetClassName method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#getclassname
func (b *BaseTexture) GetClassName() string {
retVal := b.p.Call("getClassName")
return retVal.String()
}
// GetInternalTexture calls the GetInternalTexture method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#getinternaltexture
func (b *BaseTexture) GetInternalTexture() *InternalTexture {
retVal := b.p.Call("getInternalTexture")
return InternalTextureFromJSObject(retVal, b.ctx)
}
// GetReflectionTextureMatrix calls the GetReflectionTextureMatrix method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#getreflectiontexturematrix
func (b *BaseTexture) GetReflectionTextureMatrix() *Matrix {
retVal := b.p.Call("getReflectionTextureMatrix")
return MatrixFromJSObject(retVal, b.ctx)
}
// GetScene calls the GetScene method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#getscene
func (b *BaseTexture) GetScene() *Scene {
retVal := b.p.Call("getScene")
return SceneFromJSObject(retVal, b.ctx)
}
// GetSize calls the GetSize method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#getsize
func (b *BaseTexture) GetSize() *ISize {
retVal := b.p.Call("getSize")
return ISizeFromJSObject(retVal, b.ctx)
}
// GetTextureMatrix calls the GetTextureMatrix method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#gettexturematrix
func (b *BaseTexture) GetTextureMatrix() *Matrix {
retVal := b.p.Call("getTextureMatrix")
return MatrixFromJSObject(retVal, b.ctx)
}
// IsReady calls the IsReady method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#isready
func (b *BaseTexture) IsReady() bool {
retVal := b.p.Call("isReady")
return retVal.Bool()
}
// IsReadyOrNotBlocking calls the IsReadyOrNotBlocking method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#isreadyornotblocking
func (b *BaseTexture) IsReadyOrNotBlocking() bool {
retVal := b.p.Call("isReadyOrNotBlocking")
return retVal.Bool()
}
// BaseTextureReadPixelsOpts contains optional parameters for BaseTexture.ReadPixels.
type BaseTextureReadPixelsOpts struct {
FaceIndex *float64
Level *float64
Buffer js.Value
}
// ReadPixels calls the ReadPixels method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#readpixels
func (b *BaseTexture) ReadPixels(opts *BaseTextureReadPixelsOpts) js.Value {
if opts == nil {
opts = &BaseTextureReadPixelsOpts{}
}
args := make([]interface{}, 0, 0+3)
if opts.FaceIndex == nil {
args = append(args, js.Undefined())
} else {
args = append(args, *opts.FaceIndex)
}
if opts.Level == nil {
args = append(args, js.Undefined())
} else {
args = append(args, *opts.Level)
}
args = append(args, opts.Buffer)
retVal := b.p.Call("readPixels", args...)
return retVal
}
// ReleaseInternalTexture calls the ReleaseInternalTexture method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#releaseinternaltexture
func (b *BaseTexture) ReleaseInternalTexture() {
b.p.Call("releaseInternalTexture")
}
// Scale calls the Scale method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#scale
func (b *BaseTexture) Scale(ratio float64) {
args := make([]interface{}, 0, 1+0)
args = append(args, ratio)
b.p.Call("scale", args...)
}
// Serialize calls the Serialize method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#serialize
func (b *BaseTexture) Serialize() js.Value {
retVal := b.p.Call("serialize")
return retVal
}
// ToString calls the ToString method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#tostring
func (b *BaseTexture) ToString() string {
retVal := b.p.Call("toString")
return retVal.String()
}
// UpdateSamplingMode calls the UpdateSamplingMode method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#updatesamplingmode
func (b *BaseTexture) UpdateSamplingMode(samplingMode float64) {
args := make([]interface{}, 0, 1+0)
args = append(args, samplingMode)
b.p.Call("updateSamplingMode", args...)
}
// WhenAllReady calls the WhenAllReady method on the BaseTexture object.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#whenallready
func (b *BaseTexture) WhenAllReady(textures []*BaseTexture, callback JSFunc) {
args := make([]interface{}, 0, 2+0)
args = append(args, BaseTextureArrayToJSArray(textures))
args = append(args, js.FuncOf(callback))
b.p.Call("WhenAllReady", args...)
}
// Animations returns the Animations property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#animations
func (b *BaseTexture) Animations() []*Animation {
retVal := b.p.Get("animations")
result := []*Animation{}
for ri := 0; ri < retVal.Length(); ri++ {
result = append(result, AnimationFromJSObject(retVal.Index(ri), b.ctx))
}
return result
}
// SetAnimations sets the Animations property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#animations
func (b *BaseTexture) SetAnimations(animations []*Animation) *BaseTexture {
b.p.Set("animations", animations)
return b
}
// AnisotropicFilteringLevel returns the AnisotropicFilteringLevel property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#anisotropicfilteringlevel
func (b *BaseTexture) AnisotropicFilteringLevel() float64 {
retVal := b.p.Get("anisotropicFilteringLevel")
return retVal.Float()
}
// SetAnisotropicFilteringLevel sets the AnisotropicFilteringLevel property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#anisotropicfilteringlevel
func (b *BaseTexture) SetAnisotropicFilteringLevel(anisotropicFilteringLevel float64) *BaseTexture {
b.p.Set("anisotropicFilteringLevel", anisotropicFilteringLevel)
return b
}
// CanRescale returns the CanRescale property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#canrescale
func (b *BaseTexture) CanRescale() bool {
retVal := b.p.Get("canRescale")
return retVal.Bool()
}
// SetCanRescale sets the CanRescale property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#canrescale
func (b *BaseTexture) SetCanRescale(canRescale bool) *BaseTexture {
b.p.Set("canRescale", canRescale)
return b
}
// CoordinatesIndex returns the CoordinatesIndex property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#coordinatesindex
func (b *BaseTexture) CoordinatesIndex() float64 {
retVal := b.p.Get("coordinatesIndex")
return retVal.Float()
}
// SetCoordinatesIndex sets the CoordinatesIndex property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#coordinatesindex
func (b *BaseTexture) SetCoordinatesIndex(coordinatesIndex float64) *BaseTexture {
b.p.Set("coordinatesIndex", coordinatesIndex)
return b
}
// CoordinatesMode returns the CoordinatesMode property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#coordinatesmode
func (b *BaseTexture) CoordinatesMode() float64 {
retVal := b.p.Get("coordinatesMode")
return retVal.Float()
}
// SetCoordinatesMode sets the CoordinatesMode property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#coordinatesmode
func (b *BaseTexture) SetCoordinatesMode(coordinatesMode float64) *BaseTexture {
b.p.Set("coordinatesMode", coordinatesMode)
return b
}
// DEFAULT_ANISOTROPIC_FILTERING_LEVEL returns the DEFAULT_ANISOTROPIC_FILTERING_LEVEL property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#default_anisotropic_filtering_level
func (b *BaseTexture) DEFAULT_ANISOTROPIC_FILTERING_LEVEL() float64 {
retVal := b.p.Get("DEFAULT_ANISOTROPIC_FILTERING_LEVEL")
return retVal.Float()
}
// SetDEFAULT_ANISOTROPIC_FILTERING_LEVEL sets the DEFAULT_ANISOTROPIC_FILTERING_LEVEL property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#default_anisotropic_filtering_level
func (b *BaseTexture) SetDEFAULT_ANISOTROPIC_FILTERING_LEVEL(DEFAULT_ANISOTROPIC_FILTERING_LEVEL float64) *BaseTexture {
b.p.Set("DEFAULT_ANISOTROPIC_FILTERING_LEVEL", DEFAULT_ANISOTROPIC_FILTERING_LEVEL)
return b
}
// DelayLoadState returns the DelayLoadState property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#delayloadstate
func (b *BaseTexture) DelayLoadState() float64 {
retVal := b.p.Get("delayLoadState")
return retVal.Float()
}
// SetDelayLoadState sets the DelayLoadState property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#delayloadstate
func (b *BaseTexture) SetDelayLoadState(delayLoadState float64) *BaseTexture {
b.p.Set("delayLoadState", delayLoadState)
return b
}
// GammaSpace returns the GammaSpace property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#gammaspace
func (b *BaseTexture) GammaSpace() bool {
retVal := b.p.Get("gammaSpace")
return retVal.Bool()
}
// SetGammaSpace sets the GammaSpace property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#gammaspace
func (b *BaseTexture) SetGammaSpace(gammaSpace bool) *BaseTexture {
b.p.Set("gammaSpace", gammaSpace)
return b
}
// GetAlphaFromRGB returns the GetAlphaFromRGB property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#getalphafromrgb
func (b *BaseTexture) GetAlphaFromRGB() bool {
retVal := b.p.Get("getAlphaFromRGB")
return retVal.Bool()
}
// SetGetAlphaFromRGB sets the GetAlphaFromRGB property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#getalphafromrgb
func (b *BaseTexture) SetGetAlphaFromRGB(getAlphaFromRGB bool) *BaseTexture {
b.p.Set("getAlphaFromRGB", getAlphaFromRGB)
return b
}
// HasAlpha returns the HasAlpha property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#hasalpha
func (b *BaseTexture) HasAlpha() bool {
retVal := b.p.Get("hasAlpha")
return retVal.Bool()
}
// SetHasAlpha sets the HasAlpha property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#hasalpha
func (b *BaseTexture) SetHasAlpha(hasAlpha bool) *BaseTexture {
b.p.Set("hasAlpha", hasAlpha)
return b
}
// InvertZ returns the InvertZ property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#invertz
func (b *BaseTexture) InvertZ() bool {
retVal := b.p.Get("invertZ")
return retVal.Bool()
}
// SetInvertZ sets the InvertZ property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#invertz
func (b *BaseTexture) SetInvertZ(invertZ bool) *BaseTexture {
b.p.Set("invertZ", invertZ)
return b
}
// IrradianceTexture returns the IrradianceTexture property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#irradiancetexture
func (b *BaseTexture) IrradianceTexture() *BaseTexture {
retVal := b.p.Get("irradianceTexture")
return BaseTextureFromJSObject(retVal, b.ctx)
}
// SetIrradianceTexture sets the IrradianceTexture property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#irradiancetexture
func (b *BaseTexture) SetIrradianceTexture(irradianceTexture *BaseTexture) *BaseTexture {
b.p.Set("irradianceTexture", irradianceTexture.JSObject())
return b
}
// Is2DArray returns the Is2DArray property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#is2darray
func (b *BaseTexture) Is2DArray() bool {
retVal := b.p.Get("is2DArray")
return retVal.Bool()
}
// SetIs2DArray sets the Is2DArray property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#is2darray
func (b *BaseTexture) SetIs2DArray(is2DArray bool) *BaseTexture {
b.p.Set("is2DArray", is2DArray)
return b
}
// Is3D returns the Is3D property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#is3d
func (b *BaseTexture) Is3D() bool {
retVal := b.p.Get("is3D")
return retVal.Bool()
}
// SetIs3D sets the Is3D property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#is3d
func (b *BaseTexture) SetIs3D(is3D bool) *BaseTexture {
b.p.Set("is3D", is3D)
return b
}
// IsBlocking returns the IsBlocking property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#isblocking
func (b *BaseTexture) IsBlocking() bool {
retVal := b.p.Get("isBlocking")
return retVal.Bool()
}
// SetIsBlocking sets the IsBlocking property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#isblocking
func (b *BaseTexture) SetIsBlocking(isBlocking bool) *BaseTexture {
b.p.Set("isBlocking", isBlocking)
return b
}
// IsCube returns the IsCube property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#iscube
func (b *BaseTexture) IsCube() bool {
retVal := b.p.Get("isCube")
return retVal.Bool()
}
// SetIsCube sets the IsCube property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#iscube
func (b *BaseTexture) SetIsCube(isCube bool) *BaseTexture {
b.p.Set("isCube", isCube)
return b
}
// IsRGBD returns the IsRGBD property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#isrgbd
func (b *BaseTexture) IsRGBD() bool {
retVal := b.p.Get("isRGBD")
return retVal.Bool()
}
// SetIsRGBD sets the IsRGBD property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#isrgbd
func (b *BaseTexture) SetIsRGBD(isRGBD bool) *BaseTexture {
b.p.Set("isRGBD", isRGBD)
return b
}
// IsRenderTarget returns the IsRenderTarget property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#isrendertarget
func (b *BaseTexture) IsRenderTarget() bool {
retVal := b.p.Get("isRenderTarget")
return retVal.Bool()
}
// SetIsRenderTarget sets the IsRenderTarget property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#isrendertarget
func (b *BaseTexture) SetIsRenderTarget(isRenderTarget bool) *BaseTexture {
b.p.Set("isRenderTarget", isRenderTarget)
return b
}
// Level returns the Level property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#level
func (b *BaseTexture) Level() float64 {
retVal := b.p.Get("level")
return retVal.Float()
}
// SetLevel sets the Level property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#level
func (b *BaseTexture) SetLevel(level float64) *BaseTexture {
b.p.Set("level", level)
return b
}
// LinearSpecularLOD returns the LinearSpecularLOD property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#linearspecularlod
func (b *BaseTexture) LinearSpecularLOD() bool {
retVal := b.p.Get("linearSpecularLOD")
return retVal.Bool()
}
// SetLinearSpecularLOD sets the LinearSpecularLOD property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#linearspecularlod
func (b *BaseTexture) SetLinearSpecularLOD(linearSpecularLOD bool) *BaseTexture {
b.p.Set("linearSpecularLOD", linearSpecularLOD)
return b
}
// LodGenerationOffset returns the LodGenerationOffset property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#lodgenerationoffset
func (b *BaseTexture) LodGenerationOffset() float64 {
retVal := b.p.Get("lodGenerationOffset")
return retVal.Float()
}
// SetLodGenerationOffset sets the LodGenerationOffset property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#lodgenerationoffset
func (b *BaseTexture) SetLodGenerationOffset(lodGenerationOffset float64) *BaseTexture {
b.p.Set("lodGenerationOffset", lodGenerationOffset)
return b
}
// LodGenerationScale returns the LodGenerationScale property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#lodgenerationscale
func (b *BaseTexture) LodGenerationScale() float64 {
retVal := b.p.Get("lodGenerationScale")
return retVal.Float()
}
// SetLodGenerationScale sets the LodGenerationScale property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#lodgenerationscale
func (b *BaseTexture) SetLodGenerationScale(lodGenerationScale float64) *BaseTexture {
b.p.Set("lodGenerationScale", lodGenerationScale)
return b
}
// Metadata returns the Metadata property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#metadata
func (b *BaseTexture) Metadata() js.Value {
retVal := b.p.Get("metadata")
return retVal
}
// SetMetadata sets the Metadata property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#metadata
func (b *BaseTexture) SetMetadata(metadata JSObject) *BaseTexture {
b.p.Set("metadata", metadata.JSObject())
return b
}
// Name returns the Name property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#name
func (b *BaseTexture) Name() string {
retVal := b.p.Get("name")
return retVal.String()
}
// SetName sets the Name property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#name
func (b *BaseTexture) SetName(name string) *BaseTexture {
b.p.Set("name", name)
return b
}
// NoMipmap returns the NoMipmap property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#nomipmap
func (b *BaseTexture) NoMipmap() bool {
retVal := b.p.Get("noMipmap")
return retVal.Bool()
}
// SetNoMipmap sets the NoMipmap property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#nomipmap
func (b *BaseTexture) SetNoMipmap(noMipmap bool) *BaseTexture {
b.p.Set("noMipmap", noMipmap)
return b
}
// OnDispose returns the OnDispose property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#ondispose
func (b *BaseTexture) OnDispose() js.Value {
retVal := b.p.Get("onDispose")
return retVal
}
// SetOnDispose sets the OnDispose property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#ondispose
func (b *BaseTexture) SetOnDispose(onDispose JSFunc) *BaseTexture {
b.p.Set("onDispose", js.FuncOf(onDispose))
return b
}
// OnDisposeObservable returns the OnDisposeObservable property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#ondisposeobservable
func (b *BaseTexture) OnDisposeObservable() *Observable {
retVal := b.p.Get("onDisposeObservable")
return ObservableFromJSObject(retVal, b.ctx)
}
// SetOnDisposeObservable sets the OnDisposeObservable property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#ondisposeobservable
func (b *BaseTexture) SetOnDisposeObservable(onDisposeObservable *Observable) *BaseTexture {
b.p.Set("onDisposeObservable", onDisposeObservable.JSObject())
return b
}
// ReservedDataStore returns the ReservedDataStore property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#reserveddatastore
func (b *BaseTexture) ReservedDataStore() js.Value {
retVal := b.p.Get("reservedDataStore")
return retVal
}
// SetReservedDataStore sets the ReservedDataStore property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#reserveddatastore
func (b *BaseTexture) SetReservedDataStore(reservedDataStore JSObject) *BaseTexture {
b.p.Set("reservedDataStore", reservedDataStore.JSObject())
return b
}
// SphericalPolynomial returns the SphericalPolynomial property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#sphericalpolynomial
func (b *BaseTexture) SphericalPolynomial() *SphericalPolynomial {
retVal := b.p.Get("sphericalPolynomial")
return SphericalPolynomialFromJSObject(retVal, b.ctx)
}
// SetSphericalPolynomial sets the SphericalPolynomial property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#sphericalpolynomial
func (b *BaseTexture) SetSphericalPolynomial(sphericalPolynomial *SphericalPolynomial) *BaseTexture {
b.p.Set("sphericalPolynomial", sphericalPolynomial.JSObject())
return b
}
// TextureFormat returns the TextureFormat property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#textureformat
func (b *BaseTexture) TextureFormat() float64 {
retVal := b.p.Get("textureFormat")
return retVal.Float()
}
// SetTextureFormat sets the TextureFormat property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#textureformat
func (b *BaseTexture) SetTextureFormat(textureFormat float64) *BaseTexture {
b.p.Set("textureFormat", textureFormat)
return b
}
// TextureType returns the TextureType property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#texturetype
func (b *BaseTexture) TextureType() float64 {
retVal := b.p.Get("textureType")
return retVal.Float()
}
// SetTextureType sets the TextureType property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#texturetype
func (b *BaseTexture) SetTextureType(textureType float64) *BaseTexture {
b.p.Set("textureType", textureType)
return b
}
// Uid returns the Uid property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#uid
func (b *BaseTexture) Uid() string {
retVal := b.p.Get("uid")
return retVal.String()
}
// SetUid sets the Uid property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#uid
func (b *BaseTexture) SetUid(uid string) *BaseTexture {
b.p.Set("uid", uid)
return b
}
// UniqueId returns the UniqueId property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#uniqueid
func (b *BaseTexture) UniqueId() float64 {
retVal := b.p.Get("uniqueId")
return retVal.Float()
}
// SetUniqueId sets the UniqueId property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#uniqueid
func (b *BaseTexture) SetUniqueId(uniqueId float64) *BaseTexture {
b.p.Set("uniqueId", uniqueId)
return b
}
// WrapR returns the WrapR property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#wrapr
func (b *BaseTexture) WrapR() float64 {
retVal := b.p.Get("wrapR")
return retVal.Float()
}
// SetWrapR sets the WrapR property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#wrapr
func (b *BaseTexture) SetWrapR(wrapR float64) *BaseTexture {
b.p.Set("wrapR", wrapR)
return b
}
// WrapU returns the WrapU property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#wrapu
func (b *BaseTexture) WrapU() float64 {
retVal := b.p.Get("wrapU")
return retVal.Float()
}
// SetWrapU sets the WrapU property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#wrapu
func (b *BaseTexture) SetWrapU(wrapU float64) *BaseTexture {
b.p.Set("wrapU", wrapU)
return b
}
// WrapV returns the WrapV property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#wrapv
func (b *BaseTexture) WrapV() float64 {
retVal := b.p.Get("wrapV")
return retVal.Float()
}
// SetWrapV sets the WrapV property of class BaseTexture.
//
// https://doc.babylonjs.com/api/classes/babylon.basetexture#wrapv
func (b *BaseTexture) SetWrapV(wrapV float64) *BaseTexture {
b.p.Set("wrapV", wrapV)
return b
}