Resource Pool

From LuaSTG Wiki
Jump to navigation Jump to search
Basic Information
基本信息
基本情報
Name
名称
名前
Resource Pool
Type
类别
タイプ
Resource
Applicable Version
适用版本
適用バージョン
All
There are two resource pool provided by engine: global and stage. They are managed separately.

A resource is identified by its name (a string). Name should be unique in a pool.

All load function will load resource into current activated pool. Resource will be find in stage pool first, then global pool.
引擎提供了两个资源池:globalstage。二者分别进行管理。

每个资源以名字(字符串)作为标识。同一个资源池中的名字是唯一的。

所有资源加载函数会将资源载入当前激活的资源池。查找资源时会优先到 stage 池查找,然后是 global 池。
There are two resource pool provided by engine: global and stage. They are managed separately.

A resource is identified by its name (a string). Name should be unique in a pool.

All load function will load resource into current activated pool. Resource will be find in stage pool first, then global pool.

Resource types
资源类型
Resource types

LuaSTG/LuaSTG Boost
  1. Texture
  2. Image
  3. Animation
  4. Music
  5. Sound
  6. Particle
  7. Texture font
  8. TTF font
LuaSTGPlus/LuaSTGExPlus
  1. Texture
  2. Image
  3. Animation
  4. Music
  5. Sound
  6. Particle
  7. Texture font
  8. TTF font
  9. Shader
LuaSTG-x
  1. Texture
  2. Image
  3. Animation
  4. Music
  5. Sound
  6. Particle
  7. Font
  8. Shader
  9. Render target