en:tutorials:resources:resource_reloading
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
en:tutorials:resources:resource_reloading [2021/08/28 19:06 (4 years ago)] – iarwain | en:tutorials:resources:resource_reloading [2025/09/30 17:26 (12 days ago)] (current) – external edit 127.0.0.1 |
---|
===== The assets ====== | ===== The assets ====== |
| |
Download these two sprite textures and save them to a ''data\texture\lowres'' folder in your project. | Download these two sprite textures and save them to a ''data/texture/lowres'' folder in your project. |
| |
{{ :tutorials:resources:lowres:buggy.png?nolink |}} {{ :tutorials:resources:lowres:oil.png?nolink |}} | {{ :tutorials:resources:lowres:buggy.png?nolink |}} {{ :tutorials:resources:lowres:oil.png?nolink |}} |
| |
Download these two sprite textures and save them to a ''data\texture\highres'' folder in your project. | Download these two sprite textures and save them to a ''data/texture/highres'' folder in your project. |
| |
{{ :tutorials:resources:highres:buggy.png?nolink |}} {{ :tutorials:resources:highres:oil.png?nolink |}} | {{ :tutorials:resources:highres:buggy.png?nolink |}} {{ :tutorials:resources:highres:oil.png?nolink |}} |
| |
<code c> | <code c> |
orxResource_RemoveStorage("Texture", orxNULL); | orxResource_RemoveStorage("Texture", orxNULL); // Removes all the storages from the Texture group |
| |
orxConfig_PushSection("Resource"); | orxConfig_PushSection("Resource"); |
orxConfig_SetString("Texture", "@ResourceHighRes"); // Switch to the high-res textures | orxConfig_SetString("Texture", "@ResourceHighRes"); // Switches to the high-res textures |
orxConfig_PopSection(); | orxConfig_PopSection(); |
| |
en/tutorials/resources/resource_reloading.1630177587.txt.gz · Last modified: 2025/09/30 17:26 (12 days ago) (external edit)