Skip to content

Commit a4df402

Browse files
committed
Dark Diagram deleted and diagram set to default options
1 parent cafacc3 commit a4df402

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/content/contributor-docs/en/webgl_mode_architecture.mdx

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ It also has the following per-vertex attributes:
228228

229229
## Classes
230230

231-
<div class="light-mode-diagram">
232231
```mermaid
233232
---
234233
title: p5.js WebGL Classes
@@ -255,38 +254,6 @@ classDiagram
255254
WebGL "1" *-- "*" Texture
256255
WebGL "1" *-- "*" Framebuffer
257256
```
258-
</div>
259-
260-
261-
<div class="dark-mode-diagram">
262-
```mermaid
263-
---
264-
title: p5.js WebGL Classes
265-
---
266-
%%{init: { "theme": "dark" }}%%
267-
classDiagram
268-
class Base["p5.Renderer"] {
269-
}
270-
class P2D["p5.Renderer2D"] {
271-
}
272-
class WebGL["p5.RendererGL"] {
273-
}
274-
class Geometry["p5.Geometry"] {
275-
}
276-
class Shader["p5.Shader"] {
277-
}
278-
class Texture["p5.Texture"] {
279-
}
280-
class Framebuffer["p5.Framebuffer"] {
281-
}
282-
Base <|-- P2D
283-
Base <|-- WebGL
284-
WebGL "*" o-- "*" Geometry
285-
WebGL "1" *-- "*" Shader
286-
WebGL "1" *-- "*" Texture
287-
WebGL "1" *-- "*" Framebuffer
288-
```
289-
</div>
290257

291258
The entry point to most WebGL code is through **p5.RendererGL**. Top-level p5.js functions are passed to the current renderer. Both 2D and WebGL modes have renderer classes that conform to a common `p5.Renderer` interface. Immediate mode and retained mode functions are split up into `p5.RendererGL.Immediate.js` and `p5.RendererGL.Retained.js`.
292259

0 commit comments

Comments
 (0)