mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Added to webgl utils export
This commit is contained in:
parent
9136460e20
commit
f500dbfed6
10 changed files with 23 additions and 3 deletions
|
@ -7,3 +7,5 @@ var Attribute = function (location, size, type, normalize, stride, offset)
|
|||
this.stride = stride;
|
||||
this.offset = offset;
|
||||
};
|
||||
|
||||
module.exports = Attribute;
|
||||
|
|
|
@ -17,3 +17,5 @@ var BindVertexArray = function (gl, vao)
|
|||
);
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = BindVertexArray;
|
||||
|
|
|
@ -15,3 +15,5 @@ var CreateAttribArray = function (gl, program, attributeDescArray)
|
|||
}
|
||||
return attributes;
|
||||
};
|
||||
|
||||
module.exports = CreateAttribArray;
|
||||
|
|
|
@ -11,3 +11,5 @@ var CreateAttribDesc = function (gl, program, name, size, type, normalized, stri
|
|||
offset
|
||||
);
|
||||
};
|
||||
|
||||
module.exports = CreateAttribDesc;
|
||||
|
|
|
@ -12,3 +12,5 @@ var CreateBuffer = function (gl, bufferType, usage, bufferData, bufferSize)
|
|||
}
|
||||
return buffer;
|
||||
};
|
||||
|
||||
module.exports = CreateBuffer;
|
||||
|
|
|
@ -12,3 +12,5 @@ var CreateProgram = function (gl, vertexShader, fragmentShader)
|
|||
}
|
||||
return program;
|
||||
};
|
||||
|
||||
module.exports = CreateProgram;
|
||||
|
|
|
@ -11,3 +11,5 @@ var CreateShader = function (gl, shaderSource, shaderType)
|
|||
}
|
||||
return shader;
|
||||
};
|
||||
|
||||
module.exports = CreateShader;
|
||||
|
|
|
@ -18,4 +18,6 @@ var CreateTexture2DArrayBuffer = function (gl, width, height, border, filter, ar
|
|||
arrayBuffer
|
||||
);
|
||||
return texture;
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = CreateTexture2DArrayBuffer;
|
||||
|
|
|
@ -16,4 +16,6 @@ var CreateTexture2DImage = function (gl, pixels, filter, mipLevels)
|
|||
pixels
|
||||
);
|
||||
return texture;
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = CreateTexture2DImage;
|
||||
|
|
|
@ -2,4 +2,6 @@ var VertexArray = function (vbo, attributes)
|
|||
{
|
||||
this.buffer = vbo;
|
||||
this.attributes = attributes;
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = VertexArray;
|
||||
|
|
Loading…
Add table
Reference in a new issue