| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010, Google Inc. | 2 * Copyright 2010, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * Semantic, | 52 * Semantic, |
| 53 * UNKNOWN_SEMANTIC = 0, | 53 * UNKNOWN_SEMANTIC = 0, |
| 54 * POSITION, | 54 * POSITION, |
| 55 * NORMAL, | 55 * NORMAL, |
| 56 * TANGENT, | 56 * TANGENT, |
| 57 * BINORMAL, | 57 * BINORMAL, |
| 58 * COLOR, | 58 * COLOR, |
| 59 * TEXCOORD | 59 * TEXCOORD |
| 60 * | 60 * |
| 61 * Semantics used when binding buffers to the streambank. They determine how | 61 * Semantics used when binding buffers to the streambank. They determine how |
| 62 * the Stream links up to the shader inputs. | 62 * the Stream links up to the shader inputs. |
| 63 */ | 63 */ |
| 64 o3d.Stream.UNKNOWN_SEMANTIC = 0; | 64 o3d.Stream.UNKNOWN_SEMANTIC = 0; |
| 65 o3d.Stream.POSITION = 1; | 65 o3d.Stream.POSITION = 1; |
| 66 o3d.Stream.NORMAL = 2; | 66 o3d.Stream.NORMAL = 2; |
| 67 o3d.Stream.TANGENT = 3; | 67 o3d.Stream.TANGENT = 3; |
| 68 o3d.Stream.BINORMAL = 4; | 68 o3d.Stream.BINORMAL = 4; |
| 69 o3d.Stream.COLOR = 5; | 69 o3d.Stream.COLOR = 5; |
| 70 o3d.Stream.TEXCOORD = 6; | 70 o3d.Stream.TEXCOORD = 6; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 if (!buffer) | 111 if (!buffer) |
| 112 return 0; | 112 return 0; |
| 113 | 113 |
| 114 var num_elements = buffer.numElements; | 114 var num_elements = buffer.numElements; |
| 115 if (this.startIndex > num_elements) | 115 if (this.startIndex > num_elements) |
| 116 return 0; | 116 return 0; |
| 117 | 117 |
| 118 return num_elements - this.startIndex; | 118 return num_elements - this.startIndex; |
| 119 }; | 119 }; |
| 120 | 120 |
| OLD | NEW |