Added post processing effects and custom render process functions

This commit is contained in:
n00b87
2025-11-10 23:22:10 -06:00
parent e5deb6bc86
commit 5bedafc8c8
18 changed files with 3225 additions and 1007 deletions

View File

@@ -551,6 +551,30 @@ void init_embedded_functions()
add_embedded_arg("c_num", ID_TYPE_NUM);
add_embedded_arg("priority", ID_TYPE_BYREF_NUM);
add_embedded_arg("order", ID_TYPE_BYREF_NUM);
embed_function("AddPostEffect", ID_TYPE_FN_NUM);
add_embedded_arg("c_num", ID_TYPE_NUM);
add_embedded_arg("effect_type", ID_TYPE_NUM);
embed_function("RemovePostEffect", ID_TYPE_SUB);
add_embedded_arg("c_num", ID_TYPE_NUM);
add_embedded_arg("effect_num", ID_TYPE_NUM);
embed_function("SetPostEffectProperty", ID_TYPE_SUB);
add_embedded_arg("c_num", ID_TYPE_NUM);
add_embedded_arg("effect_num", ID_TYPE_NUM);
add_embedded_arg("property", ID_TYPE_NUM);
add_embedded_arg("property_value", ID_TYPE_NUM);
embed_function("GetPostEffectProperty", ID_TYPE_FN_NUM);
add_embedded_arg("c_num", ID_TYPE_NUM);
add_embedded_arg("effect_num", ID_TYPE_NUM);
add_embedded_arg("property", ID_TYPE_NUM);
embed_function("ClearPostEffects", ID_TYPE_SUB);
add_embedded_arg("c_num", ID_TYPE_NUM);
embed_function("SetPostEffectActive", ID_TYPE_SUB);
add_embedded_arg("c_num", ID_TYPE_NUM);
add_embedded_arg("effect_num", ID_TYPE_NUM);
add_embedded_arg("flag", ID_TYPE_NUM);
embed_function("PostEffectIsActive", ID_TYPE_FN_NUM);
add_embedded_arg("c_num", ID_TYPE_NUM);
add_embedded_arg("effect_num", ID_TYPE_NUM);
embed_function("Circle", ID_TYPE_SUB);
add_embedded_arg("x", ID_TYPE_NUM);
add_embedded_arg("y", ID_TYPE_NUM);
@@ -2090,6 +2114,30 @@ void init_embedded_functions()
add_embedded_arg("mesh", ID_TYPE_NUM);
embed_function("FlipMeshSurfaces", ID_TYPE_SUB);
add_embedded_arg("mesh", ID_TYPE_NUM);
embed_function("SetMeshBuffer", ID_TYPE_FN_NUM);
add_embedded_arg("mesh_id", ID_TYPE_NUM);
add_embedded_arg("buffer_num", ID_TYPE_NUM);
add_embedded_arg("vertex_count", ID_TYPE_NUM);
add_embedded_arg("vertex_data", ID_TYPE_BYREF_NUM);
add_embedded_arg("normal_data", ID_TYPE_BYREF_NUM);
add_embedded_arg("uv_data", ID_TYPE_BYREF_NUM);
add_embedded_arg("index_count", ID_TYPE_NUM);
add_embedded_arg("index_data", ID_TYPE_BYREF_NUM);
embed_function("GetMeshBufferCount", ID_TYPE_FN_NUM);
add_embedded_arg("mesh_id", ID_TYPE_NUM);
embed_function("GetMeshBufferVertexCount", ID_TYPE_FN_NUM);
add_embedded_arg("mesh_id", ID_TYPE_NUM);
add_embedded_arg("buffer_index", ID_TYPE_NUM);
embed_function("GetMeshBufferIndexCount", ID_TYPE_FN_NUM);
add_embedded_arg("mesh_id", ID_TYPE_NUM);
add_embedded_arg("buffer_index", ID_TYPE_NUM);
embed_function("GetMeshBuffer", ID_TYPE_FN_NUM);
add_embedded_arg("mesh_id", ID_TYPE_NUM);
add_embedded_arg("buffer_index", ID_TYPE_NUM);
add_embedded_arg("vertex_data", ID_TYPE_BYREF_NUM);
add_embedded_arg("normal_data", ID_TYPE_BYREF_NUM);
add_embedded_arg("uv_data", ID_TYPE_BYREF_NUM);
add_embedded_arg("index_data", ID_TYPE_BYREF_NUM);
embed_function("CreateAnimatedActor", ID_TYPE_FN_NUM);
add_embedded_arg("mesh", ID_TYPE_NUM);
embed_function("CreateOctreeActor", ID_TYPE_FN_NUM);
@@ -2956,6 +3004,9 @@ void init_embedded_functions()
embed_function("SetSceneAmbientColor", ID_TYPE_SUB);
add_embedded_arg("color", ID_TYPE_NUM);
embed_function("GetSceneAmbientColor", ID_TYPE_FN_NUM);
embed_function("Pipeline_Begin", ID_TYPE_SUB);
embed_function("Pipeline_End", ID_TYPE_SUB);
embed_function("Pipeline_Render", ID_TYPE_SUB);
embed_function("startParticleEmitter", ID_TYPE_SUB);
add_embedded_arg("actor", ID_TYPE_NUM);
embed_function("stopParticleEmitter", ID_TYPE_SUB);