3D rendering: Difference between revisions
m Frostbyte moved page User:Marius851000/Draft/3drender to 3D rendering without leaving a redirect: Finished page |
Marius851000 (talk | contribs) |
||
| Line 188: | Line 188: | ||
==== Loading texture ==== | ==== Loading texture ==== | ||
Once you have your texture in the WTE format saved in the rom, you need to call a function to load WTE ('''LoadWteFromRom''') and then copy stuff to RAM with '''ProcessWTEWrapper''', and then call | Once you have your texture in the WTE format saved in the rom, you need to call a function to load WTE ('''LoadWteFromRom''') and then copy stuff to the appropriate texture RAM with '''ProcessWTEWrapper''' (this will create a task to process the copy, once access to texture-RAM is safe), and then call '''DelayWTEFree''' (to make sure the original texture is freed once copy to texture-RAM is finished). | ||