Added to webgl utils export

This commit is contained in:
Felipe Alfonso 2017-01-16 19:48:34 -03:00
parent 9136460e20
commit f500dbfed6
10 changed files with 23 additions and 3 deletions

View file

@ -7,3 +7,5 @@ var Attribute = function (location, size, type, normalize, stride, offset)
this.stride = stride;
this.offset = offset;
};
module.exports = Attribute;

View file

@ -17,3 +17,5 @@ var BindVertexArray = function (gl, vao)
);
}
};
module.exports = BindVertexArray;

View file

@ -15,3 +15,5 @@ var CreateAttribArray = function (gl, program, attributeDescArray)
}
return attributes;
};
module.exports = CreateAttribArray;

View file

@ -11,3 +11,5 @@ var CreateAttribDesc = function (gl, program, name, size, type, normalized, stri
offset
);
};
module.exports = CreateAttribDesc;

View file

@ -12,3 +12,5 @@ var CreateBuffer = function (gl, bufferType, usage, bufferData, bufferSize)
}
return buffer;
};
module.exports = CreateBuffer;

View file

@ -12,3 +12,5 @@ var CreateProgram = function (gl, vertexShader, fragmentShader)
}
return program;
};
module.exports = CreateProgram;

View file

@ -11,3 +11,5 @@ var CreateShader = function (gl, shaderSource, shaderType)
}
return shader;
};
module.exports = CreateShader;

View file

@ -18,4 +18,6 @@ var CreateTexture2DArrayBuffer = function (gl, width, height, border, filter, ar
arrayBuffer
);
return texture;
};
};
module.exports = CreateTexture2DArrayBuffer;

View file

@ -16,4 +16,6 @@ var CreateTexture2DImage = function (gl, pixels, filter, mipLevels)
pixels
);
return texture;
};
};
module.exports = CreateTexture2DImage;

View file

@ -2,4 +2,6 @@ var VertexArray = function (vbo, attributes)
{
this.buffer = vbo;
this.attributes = attributes;
};
};
module.exports = VertexArray;