|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
How many bytes each readback getter published. More...

Go to the source code of this file.
Functions | |
| size_t | physics_dynamicBodyTransformsBytes () |
| size_t | physics_interpolatedTransformsBytes () |
| size_t | physics_collisionEnterBytes () |
| size_t | physics_collisionExitBytes () |
| size_t | physics_sensorEnterBytes () |
| size_t | physics_sensorExitBytes () |
| size_t | physics_hitEventBytes () |
| size_t | physics_raycastBytes () |
| size_t | physics_overlapBytes () |
| size_t | physics_shapeCastBytes () |
| size_t | physics_moveCharacterBytes () |
How many bytes each readback getter published.
The module's getters hand back a pointer to memory the module owns — a vector it refills each step, a fixed array a query writes into. On the web the caller reads that memory directly out of the shared heap, so nobody had to state its length; a native host has to COPY it into the heap the SDK reads, and copying a count times an assumed stride would over-read the very frame a body was disabled (the transform buffer skips those) or a query found fewer hits than the previous one left behind.
So the module says. These are the @heapreturn expressions in PhysicsBindings.hpp, and they are the only reason a native wrapper needs no hand-written copy of its own.
Definition in file PhysicsReadback.cpp.
| size_t physics_collisionEnterBytes | ( | ) |
Definition at line 43 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE, and g_ctx.
| size_t physics_collisionExitBytes | ( | ) |
Definition at line 47 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE, and g_ctx.
| size_t physics_dynamicBodyTransformsBytes | ( | ) |
Definition at line 35 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE, and g_ctx.
| size_t physics_hitEventBytes | ( | ) |
Definition at line 59 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE, and g_ctx.
| size_t physics_interpolatedTransformsBytes | ( | ) |
Definition at line 39 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE, and g_ctx.
| size_t physics_moveCharacterBytes | ( | ) |
Definition at line 77 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE.
| size_t physics_overlapBytes | ( | ) |
Definition at line 67 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE, and g_overlapBuffer.
| size_t physics_raycastBytes | ( | ) |
Definition at line 63 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE, and g_raycastBuffer.
| size_t physics_sensorEnterBytes | ( | ) |
Definition at line 51 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE, and g_ctx.
| size_t physics_sensorExitBytes | ( | ) |
Definition at line 55 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE, and g_ctx.
| size_t physics_shapeCastBytes | ( | ) |
Definition at line 71 of file PhysicsReadback.cpp.
References EMSCRIPTEN_KEEPALIVE, and g_shapeCastBuffer.