Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
assetsmanager [2019/03/08 12:40] – admin | assetsmanager [2020/11/06 13:48] – [Groups] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Using AssetsManager ====== | ====== Using AssetsManager ====== | ||
+ | {{: | ||
The AssetsManager is the core component in effective media management inside your Gorilla3D application. | The AssetsManager is the core component in effective media management inside your Gorilla3D application. | ||
- | + | Models, textures, audio, dialogues | |
- | Models, textures, audio and so on will be cached for faster access and reusage. You can build packages within the AssetsManager for modular media management. | + | You can build packages within the AssetsManager for modular media management. |
- | + | For example: you could build a package for the main character and reference to it in every scene package. | |
- | For example: you could build a package for the main character and reference to it in every scene package. Scene packages are extremly useful for compact and fast loading of all data of a specific | + | Scene packages are extremly useful for compact and fast loading of all data in a scene. |
===== Package ===== | ===== Package ===== | ||
Line 14: | Line 15: | ||
===== Groups ===== | ===== Groups ===== | ||
Each package provides a number of fixed group entries to organize media content. | Each package provides a number of fixed group entries to organize media content. | ||
- | | + | |
- | * GORILLA_ASSETS_TEXTURE | + | Default group ids to access the specific group of each package: |
- | * GORILLA_ASSETS_AUDIO | + | |
- | * GORILLA_ASSETS_VIDEO | + | ^ Group-ID |
- | * GORILLA_ASSETS_MISC | + | | GORILLA_ASSETS_MODEL |
- | * GORILLA_ASSETS_DIALOGUE | + | | GORILLA_ASSETS_TEXTURE |
- | * GORILLA_ASSETS_INVENTORY | + | | GORILLA_ASSETS_AUDIO |
+ | | GORILLA_ASSETS_VIDEO | ||
+ | | GORILLA_ASSETS_MISC | ||
+ | | GORILLA_ASSETS_DIALOGUE | ||
+ | | GORILLA_ASSETS_INVENTORY | ||
===== Assets ===== | ===== Assets ===== | ||
Line 90: | Line 95: | ||
<file pascal Form1.pas> | <file pascal Form1.pas> | ||
- | procedure TForm1.LoadPackage(const AFilename : String); | + | procedure TForm1.SavePackage(const AFilename : String); |
begin | begin | ||
FPackage.SaveToFile(AFilename); | FPackage.SaveToFile(AFilename); | ||
Line 126: | Line 131: | ||
</ | </ | ||
+ | Next step: [[billboard|Billboard]] |