| 78 | * @ignore |
| 79 | */ |
| 80 | export class GraphicsContextRenderData |
| 81 | { |
| 82 | public batcher: DefaultBatcher; |
| 83 | public instructions = new InstructionSet(); |
| 84 | |
| 85 | public init(options: BatcherOptions) |
| 86 | { |
| 87 | const maxTextures = options.maxTextures; |
| 88 | |
| 89 | this.batcher ? this.batcher._updateMaxTextures(maxTextures) : this.batcher = new DefaultBatcher({ maxTextures }); |
| 90 | this.instructions.reset(); |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * @deprecated since version 8.0.0 |
| 95 | * Use `batcher.geometry` instead. |
| 96 | * @see {Batcher#geometry} |
| 97 | */ |
| 98 | get geometry() |
| 99 | { |
| 100 | // #if _DEBUG |
| 101 | deprecation(v8_3_4, 'GraphicsContextRenderData#geometry is deprecated, please use batcher.geometry instead.'); |
| 102 | // #endif |
| 103 | |
| 104 | return this.batcher.geometry; |
| 105 | } |
| 106 | |
| 107 | public destroy() |
| 108 | { |
| 109 | this.batcher.destroy(); |
| 110 | this.instructions.destroy(); |
| 111 | |
| 112 | this.batcher = null; |
| 113 | this.instructions = null; |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Options for the GraphicsContextSystem. |
nothing calls this directly
no outgoing calls
no test coverage detected