Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Drop WebGL1 * Drop WebGL1 tests * Mock WebGL2 in unit tests * Update WebGL2 flow typings * Drop extStandardDerivatives * Drop extVertexArrayObject
- Loading branch information
1 parent
fe38b32
commit 27aa250
Showing
53 changed files
with
221 additions
and
475 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
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
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
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
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
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,5 +1,5 @@ | ||
// @flow strict | ||
declare module "gl" { | ||
declare function gl(width: number, height: number, attributes: WebGLContextAttributes): WebGLRenderingContext; | ||
declare function gl(width: number, height: number, attributes: WebGLContextAttributes): WebGL2RenderingContext; | ||
declare module.exports: typeof gl; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// @flow strict | ||
|
||
type GLenum = number; | ||
type GLintptr = number; | ||
type GLsizei = number; | ||
type GLuint = number; | ||
|
||
declare interface WebGLVertexArrayObject { | ||
prototype: WebGLVertexArrayObject; | ||
new(): WebGLVertexArrayObject; | ||
} | ||
|
||
export type WebGL2RenderingContext = WebGLRenderingContext & { | ||
createVertexArray: () => WebGLVertexArrayObject | null; | ||
deleteVertexArray: (vertexArray: WebGLVertexArrayObject | null) => void; | ||
bindVertexArray: (array: WebGLVertexArrayObject | null) => void; | ||
getBufferSubData: (target: GLenum, srcByteOffset: GLintptr, dstBuffer: $ArrayBufferView, dstOffset?: GLuint, length?: GLuint) => void; | ||
drawElementsInstanced: (mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei) => void; | ||
vertexAttribDivisor: (index: GLuint, divisor: GLuint) => 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
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
Oops, something went wrong.