Skip to content

Commit

Permalink
[#591] Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
parasyte committed Jan 16, 2015
1 parent 061a815 commit 7e99a5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/video/webgl/compositor.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@
},

/**
* Reset compositor internal state
* @ignore
*/
reset : function () {
// TODO
this.sbIndex = 0;
this.length = 0;

Expand All @@ -213,6 +213,7 @@
},

/**
* Create a full index buffer for the element array
* @ignore
*/
createIB : function () {
Expand All @@ -221,7 +222,7 @@
2, 1, 3
];

// ~128KB index buffer
// ~384KB index buffer
var data = new Array(MAX_LENGTH * INDICES_PER_QUAD);
for (var i = 0; i < data.length; i++) {
data[i] = indices[i % INDICES_PER_QUAD] +
Expand All @@ -232,6 +233,7 @@
},

/**
* Resize the stream buffer, retaining its original contents
* @ignore
*/
resizeSB : function () {
Expand Down

0 comments on commit 7e99a5a

Please sign in to comment.