User Tools

Site Tools


changelog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
changelog [2020/10/22 10:19] – [Foundation Preview 1.6] polymorphgameschangelog [2021/06/10 10:46] polymorphgames
Line 1: Line 1:
 ====== Changelog ====== ====== Changelog ======
 +
 +===== Foundation Preview 1.7.1.0610 =====
 +
 +==== Texture loading ====
 +
 +Some ''[[api:texture|TEXTURE]]'' properties have been changed, depending on their use, to a new type: ''[[preview:api:atlas_cell|ATLAS_CELL]]''.
 +
 +Therefore, we added a way to explicitly choose the type of an asset to load, when calling ''[[mod-management-functions#registerassetid|registerAssetId]]''. Specifying the type is optional, ''TEXTURE'' will be inferred for texture assets if absent.
 +
 +This third parameter is currently only used for image assets.
 +
 +<file lua>
 +mod:registerAssetId("test_img1.png", "TEST_IMAGE_1") -- without type specified, loads as a TEXTURE asset
 +mod:registerAssetId("test_img2.png", "TEST_IMAGE_2", "TEXTURE") -- loads as a TEXTURE asset
 +mod:registerAssetId("test_img3.png", "TEST_IMAGE_3", "ATLAS_CELL") -- loads as an ATLAS_CELL asset
 +</file>
 +
 +**Technical Info:**  Atlas Cells are images packed in a large unique texture (commonly called atlas). This is especially useful for the GUI engine, allowing to draw most of the interface without having to switch the active binded texture.
  
 ===== Foundation Preview 1.6 ===== ===== Foundation Preview 1.6 =====
changelog.txt · Last modified: 2024/02/06 13:55 by mathieu

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki