OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, 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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 /** | 33 /** |
34 * @fileoverview This file contains various functions to help | 34 * @fileoverview This file contains various functions to help |
35 * create line primitives for o3d applications. | 35 * create line primitives for o3d applications. |
36 * | 36 * |
37 * Note: This library is only a sample. It is not meant to be some official | 37 * Note: This library is only a sample. It is not meant to be some official |
38 * library. It is provided only as example code. | 38 * library. It is provided only as example code. |
39 * | 39 * |
40 */ | 40 */ |
41 | 41 |
42 o3djs.provide('o3djs.lineprimtives'); | 42 o3djs.provide('o3djs.lineprimitives'); |
43 | 43 |
44 o3djs.require('o3djs.math'); | 44 o3djs.require('o3djs.math'); |
45 o3djs.require('o3djs.primitives'); | 45 o3djs.require('o3djs.primitives'); |
46 | 46 |
47 /** | 47 /** |
48 * Defines a namespace for o3djs.lineprimitives. | 48 * Defines a namespace for o3djs.lineprimitives. |
49 * @namespace | 49 * @namespace |
50 */ | 50 */ |
51 o3djs.lineprimitives = o3djs.lineprimitives || {}; | 51 o3djs.lineprimitives = o3djs.lineprimitives || {}; |
52 | 52 |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 opt_matrix) { | 387 opt_matrix) { |
388 var vertexInfo = o3djs.lineprimitives.createLineRingVertices( | 388 var vertexInfo = o3djs.lineprimitives.createLineRingVertices( |
389 radius, | 389 radius, |
390 subdivisions, | 390 subdivisions, |
391 maxTexCoord, | 391 maxTexCoord, |
392 opt_matrix); | 392 opt_matrix); |
393 | 393 |
394 return vertexInfo.createShape(pack, material); | 394 return vertexInfo.createShape(pack, material); |
395 }; | 395 }; |
396 | 396 |
OLD | NEW |