Empeld
Empeld plugin documentation.
|
Injectable Dependency responsible for loading and caching models More...
Public Member Functions | |
bool | IsModelLoaded (string resource) |
Determines whether or not a specified model resource has been loaded More... | |
IReadonlyModel | LoadModel (string resource) |
Load a model to a readonly model instance More... | |
IModelInstance | CreateModelInstance (string resource) |
Loads a model, and creates an unpositioned instance of that model More... | |
IReadonlyModel | CreateMesh (Mesh mesh) |
Creates a model given a mesh More... | |
IReadonlyModel | CreateMesh (IEnumerable< Mesh > frames, float fps) |
Creates a model with a given animated set of meshes More... | |
IDynamicTextModel | CreateTextBillboard (float size, Rgba color, string text, params object[] args) |
Creates a text object that is a billboard More... | |
IDynamicTextModel | CreateText (Vector3 dir, Vector3 up, float size, Rgba color, string text, params object[] args) |
Creates text More... | |
IDynamicTextModel | CreateText (float size, string text, params object[] args) |
Creates text. Default dir = +x, up = +y More... | |
IUiScreenModel | CreateUiScreenModel (Mesh mesh, int uiWidth=256, int uiHeight=256) |
Loads a BUI control to be rendered onto a mesh NOTE: Won't work if the system doesn't support Framebuffer Objects (FBO) In that case, it will fallback to the material texture on the Mesh More... | |
Injectable Dependency responsible for loading and caching models
Attribute: Injectable
IReadonlyModel pluginbase.Objects.Models.IModelFactory.CreateMesh | ( | Mesh | mesh | ) |
Creates a model given a mesh
mesh | Mesh. |
IReadonlyModel pluginbase.Objects.Models.IModelFactory.CreateMesh | ( | IEnumerable< Mesh > | frames, |
float | fps | ||
) |
Creates a model with a given animated set of meshes
frames | Frames. |
fps | Fps. |
IModelInstance pluginbase.Objects.Models.IModelFactory.CreateModelInstance | ( | string | resource | ) |
Loads a model, and creates an unpositioned instance of that model
resource | Resource. |
IDynamicTextModel pluginbase.Objects.Models.IModelFactory.CreateText | ( | Vector3 | dir, |
Vector3 | up, | ||
float | size, | ||
Rgba | color, | ||
string | text, | ||
params object [] | args | ||
) |
Creates text
dir | Direction vector |
up | Up vector |
size | Size. |
color | Color |
text | Text. |
args | Arguments. |
IDynamicTextModel pluginbase.Objects.Models.IModelFactory.CreateText | ( | float | size, |
string | text, | ||
params object [] | args | ||
) |
Creates text. Default dir = +x, up = +y
size | Size. |
text | Text. |
args | Arguments. |
IDynamicTextModel pluginbase.Objects.Models.IModelFactory.CreateTextBillboard | ( | float | size, |
Rgba | color, | ||
string | text, | ||
params object [] | args | ||
) |
Creates a text object that is a billboard
size | Size of text |
color | Color |
text | Text. |
args | Arguments. |
IUiScreenModel pluginbase.Objects.Models.IModelFactory.CreateUiScreenModel | ( | Mesh | mesh, |
int | uiWidth = 256 , |
||
int | uiHeight = 256 |
||
) |
Loads a BUI control to be rendered onto a mesh NOTE: Won't work if the system doesn't support Framebuffer Objects (FBO) In that case, it will fallback to the material texture on the Mesh
mesh | Mesh. |
bool pluginbase.Objects.Models.IModelFactory.IsModelLoaded | ( | string | resource | ) |
Determines whether or not a specified model resource has been loaded
true
if this instance is model loaded the specified resource; otherwise, false
.resource | Resource. |
IReadonlyModel pluginbase.Objects.Models.IModelFactory.LoadModel | ( | string | resource | ) |
Load a model to a readonly model instance
resource | Resource. |