Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. WebGL: 2D and 3D graphics for the web
  4. WebGL types

WebGL types

The following types are used inWebGL interfaces.

WebGL 1

These types are used within aWebGLRenderingContext.

TypeWeb IDL typeDescription
GLenumunsigned long Used for enums. See also the list ofconstants.
GLbooleanbooleanA boolean value.
GLbitfieldunsigned long A bit field that stores multiple, logical bits. Used for example inWebGLRenderingContext.clear().
GLbytebyte8-bit twos complement signed integer.
GLshortshort16-bit twos complement signed integer.
GLintlong32-bit twos complement signed integer.
GLsizeilongUsed for sizes (e.g., width and height of the drawing buffer).
GLintptrlong longSpecial type for pointer arithmetic.
GLsizeiptrlong longSpecial type for pointer arithmetic.
GLubyteoctet8-bit unsigned integer.
GLushortunsigned short16-bit unsigned integer.
GLuintunsigned long32-bit unsigned integer.
GLfloatunrestricted float32-bit IEEE floating point number.
GLclampfunrestricted floatClamped 32-bit IEEE floating point number.

WebGL 2

These types are used within aWebGL2RenderingContext. All WebGL 1 types are used as well.

TypeWeb IDL typeDescription
GLint64long longSigned 64-bit integer number.

WebGL extensions

These types are used withinWebGL extensions.

TypeWeb IDL typeDescription
GLuint64EXTlong longUnsigned 64-bit integer number.

Specifications

Specification
WebGL
# 5.1
WebGL2
# 3.1
EXT_disjoint_timer_query

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp