forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mrdoob#17980 from FMS-Cat/typedef-webglgeometries
Update typedef for WebGLGeometries and others
- Loading branch information
Showing
3 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
import { BufferAttribute } from "../../core/BufferAttribute"; | ||
import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute"; | ||
|
||
export class WebGLAttributes { | ||
|
||
constructor( gl: WebGLRenderingContext | WebGL2RenderingContext ); | ||
|
||
get( attribute: any ): any; | ||
get( attribute: BufferAttribute | InterleavedBufferAttribute ): { | ||
buffer: WebGLBuffer, | ||
type: GLenum, | ||
bytesPerElement: number, | ||
version: number | ||
}; | ||
|
||
remove( attribute: any ): void; | ||
remove( attribute: BufferAttribute | InterleavedBufferAttribute ): void; | ||
|
||
update( attribute: any, bufferType: Array<any> ): void; | ||
update( attribute: BufferAttribute | InterleavedBufferAttribute, bufferType: GLenum ): void; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import { WebGLAttributes } from './WebGLAttributes'; | ||
import { WebGLInfo } from './WebGLInfo'; | ||
import { BufferAttribute } from '../../core/BufferAttribute'; | ||
import { BufferGeometry } from '../../core/BufferGeometry'; | ||
import { Geometry } from '../../core/Geometry'; | ||
import { Object3D } from '../../core/Object3D'; | ||
|
||
export class WebGLGeometries { | ||
|
||
constructor( gl: WebGLRenderingContext, attributes: any, info: any ); | ||
constructor( gl: WebGLRenderingContext, attributes: WebGLAttributes, info: WebGLInfo ); | ||
|
||
get( object: any, geometry: any ): any; | ||
update( geometry: any ): any; | ||
getWireframeAttribute( geometry: any ): any; | ||
get( object: Object3D, geometry: Geometry | BufferGeometry ): BufferGeometry; | ||
update( geometry: Geometry | BufferGeometry ): void; | ||
getWireframeAttribute( geometry: Geometry | BufferGeometry ): BufferAttribute; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters