Commit ec27029
committed
Fix RTT texture reference format for RmlUi
Corrected the texture reference format to use RmlUi's proper syntax:
- Changed from `:t{texID}` format to `!{texID}` format
- Use `<texture>` tag instead of `<img>` for GL textures
- Keep `<img>` for regular file paths
RmlUi Texture Reference Format:
- String starting with "!": texture reference (!texID)
* Use <texture src="!{texID}"> for dynamic GL textures
- Number: OpenGL texture ID from gl.CreateTexture
* Convert to "!{texID}" format
- Regular string path: standard image file
* Use <img src="{path}"> as before
This matches Recoil's RmlUi integration where:
- gl.CreateTexture() returns a texID (number)
- Reference it in RML as src="!{texID}"
- The <texture> element displays the GL texture
- Dynamic updates via gl.RenderToTexture work automatically
Now RTT 3D model previews should display correctly in Objects tab.1 parent 9c700c9 commit ec27029
1 file changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
463 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
464 | 471 | | |
465 | | - | |
466 | 472 | | |
467 | | - | |
468 | | - | |
469 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
470 | 476 | | |
471 | 477 | | |
472 | 478 | | |
473 | | - | |
| 479 | + | |
474 | 480 | | |
475 | 481 | | |
476 | 482 | | |
| |||
0 commit comments