UNPKG
ogl-typescript
Version:
latest (0.1.40)
0.1.40
0.1.39
0.1.38
0.1.37
0.1.36
0.1.34
0.1.33
0.1.32
0.1.31
0.1.30
0.1.20
0.1.14
0.1.13
0.1.1
0.1.0
0.0.42
0.0.41
TypeScript port of OGL WebGL Library
github.com/nshen/ogl-typescript
nshen/ogl-typescript
ogl-typescript
/
lib
/
Guards.js
12 lines
•
267 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
const
isArrayLike
= (
term
) => {
if
(term.
length
)
return
true
;
return
false
; };
export
const
isMesh
= (
node
) => {
return
!!node.
draw
; };
export
const
isWebGl2
= (
gl
) => {
return
gl.
renderer
.
isWebgl2
; };
//# sourceMappingURL=Guards.js.map