Search
Preparing search index...
The search index is not available
glsl
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
FlatGeometry
Class FlatGeometry
Hierarchy
Geometry
FlatGeometry
Implements
IGeometry
Index
Constructors
constructor
Properties
color
Buffer
color
Location
colors
normal
Buffer
normal
Location
normals
position
Buffer
position
Location
positions
size
texcoord
Buffer
texcoord
Location
texcoords
Methods
attach
Attributes_
bind
Attributes_
create
create
Attrib
Location_
create
Attributes_
create
Buffer
Data_
create
Data_
from
Indices
Constructors
constructor
new
Flat
Geometry
(
options
?:
IGeometry
)
:
FlatGeometry
Parameters
Optional
options:
IGeometry
Returns
FlatGeometry
Properties
color
Buffer
color
Buffer
:
WebGLBuffer
color
Location
color
Location
:
number
colors
colors
:
number
[]
normal
Buffer
normal
Buffer
:
WebGLBuffer
normal
Location
normal
Location
:
number
normals
normals
:
number
[]
position
Buffer
position
Buffer
:
WebGLBuffer
position
Location
position
Location
:
number
positions
positions
:
number
[]
size
size
:
number
texcoord
Buffer
texcoord
Buffer
:
WebGLBuffer
texcoord
Location
texcoord
Location
:
number
texcoords
texcoords
:
number
[]
Methods
attach
Attributes_
attach
Attributes_
(
gl
:
WebGLRenderingContext
|
WebGL2RenderingContext
, program
:
WebGLProgram
)
:
void
Parameters
gl:
WebGLRenderingContext
|
WebGL2RenderingContext
program:
WebGLProgram
Returns
void
bind
Attributes_
bind
Attributes_
(
gl
:
WebGLRenderingContext
|
WebGL2RenderingContext
, program
:
WebGLProgram
)
:
void
Parameters
gl:
WebGLRenderingContext
|
WebGL2RenderingContext
program:
WebGLProgram
Returns
void
create
create
(
gl
:
WebGLRenderingContext
|
WebGL2RenderingContext
, program
:
WebGLProgram
)
:
void
Parameters
gl:
WebGLRenderingContext
|
WebGL2RenderingContext
program:
WebGLProgram
Returns
void
create
Attrib
Location_
create
Attrib
Location_
(
gl
:
WebGLRenderingContext
|
WebGL2RenderingContext
, program
:
WebGLProgram
, name
:
string
, size
:
number
, type
:
number
)
:
number
Parameters
gl:
WebGLRenderingContext
|
WebGL2RenderingContext
program:
WebGLProgram
name:
string
size:
number
type:
number
Returns
number
create
Attributes_
create
Attributes_
(
gl
:
WebGLRenderingContext
|
WebGL2RenderingContext
, program
:
WebGLProgram
)
:
void
Parameters
gl:
WebGLRenderingContext
|
WebGL2RenderingContext
program:
WebGLProgram
Returns
void
create
Buffer
Data_
create
Buffer
Data_
(
gl
:
WebGLRenderingContext
|
WebGL2RenderingContext
, type
:
number
, array
:
BufferSource
)
:
WebGLBuffer
Parameters
gl:
WebGLRenderingContext
|
WebGL2RenderingContext
type:
number
array:
BufferSource
Returns
WebGLBuffer
Protected
create
Data_
create
Data_
(
)
:
void
Returns
void
Static
from
Indices
from
Indices
(
indices
:
number
[]
, array
:
number
[]
, size
:
number
)
:
number
[]
Parameters
indices:
number
[]
array:
number
[]
size:
number
Returns
number
[]
Globals
Flat
Geometry
constructor
color
Buffer
color
Location
colors
normal
Buffer
normal
Location
normals
position
Buffer
position
Location
positions
size
texcoord
Buffer
texcoord
Location
texcoords
attach
Attributes_
bind
Attributes_
create
create
Attrib
Location_
create
Attributes_
create
Buffer
Data_
create
Data_
from
Indices