types.h - Engine C API Reference

types.h
  1. #pragma once
  2. #include "../engine_plugin_api/plugin_api_types.h"
  3. namespace stingray_plugin_foundation {
  4. typedef unsigned short half;
  5. typedef CApiVector2 Vector2;
  6. typedef CApiVector3 Vector3;
  7. typedef CApiVector4 Vector4;
  8. typedef CApiMatrix4x4 Matrix4x4;
  9. typedef CApiQuaternion Quaternion;
  10. typedef CApiMatrix3x3 Matrix3x3;
  11. typedef CApiLocalTransform LocalTransform;
  12. struct Matrix4x4Elements {
  13. enum Enum {
  14. xx, xy, xz, xw,
  15. yx, yy, yz, yw,
  16. zx, zy, zz, zw,
  17. tx, ty, tz, tw
  18. };
  19. int dummy;
  20. };
  21. struct WorldConfig : public CApiWorldConfig {
  22. WorldConfig()
  23. {
  24. disable_physics = false;
  25. disable_sound = false;
  26. disable_rendering = false;
  27. enable_replay = false;
  28. physics_world_settings.apex_cloth = false;
  29. physics_world_settings.apex_lod_resource_budget = 0.f;
  30. physics_world_settings.step_frequency = 0;
  31. physics_world_settings.max_substeps = 0;
  32. physics_world_settings.async_timestep = false;
  33. physics_world_settings.swept_integration = false;
  34. decals = 0;
  35. }
  36. };
  37. }