|
| bool | ray_cylinder (Vec3 a, Vec3 b, Vec3 c, float r, float h, float *t_hit, Vec3 *normal) |
| bool | point_solid (const Model &m, Vec3 p) |
| Hit | trace (const Model &m, Vec3 start, Vec3 end, Vec3 extent) |
| Hit | trace_placed (const Model &m, Vec3 loc, Vec3 pivot, const float axes[3][3], Vec3 start, Vec3 end, Vec3 extent) |
| static std::string | trim (const std::string &s) |
| Ini | parse_ini (const std::string &text) |
| Ini | read_ini (const std::string &path) |
| static Vec3 | vec (Reader &r) |
| static uint64_t | u64 (Reader &r) |
| static size_t | count (Reader &r) |
| static void | read_model_into (Reader &r, Model &m) |
| Model | read_model (const Package &p, const Export &e) |
| static bool | in (int32_t i, size_t n) |
| void | validate_model (const Model &m) |
| size_t | model_end (const Package &p, const Export &e) |
| Level | read_level (const Package &p, const Export &e) |
| static float | dot_sub (const Vec3 &p, const Vec3 &base, const Vec3 &axis) |
| std::vector< Vertex > | node_triangles (const Model &m, const Node &n, int usize, int vsize) |
| static float | dot (const Vec3 &a, const Vec3 &b) |
| static Vec3 | cross (const Vec3 &a, const Vec3 &b) |
| Vec3 | luxel_position (const Model &m, const Surf &s, const LightMap &lm, int i, int j) |
| int | lightmap_lights (const Model &m, const LightMap &lm) |
| bool | shadow_bit (const Model &m, const LightMap &lm, int light, int i, int j) |
| Vec3 | light_colour (int hue, int saturation, int brightness) |
| float | light_falloff (float d, int radius) |
| uint32_t | style_flags (uint8_t style) |
| Vec3 | face_normal (Vec3 a, Vec3 b, Vec3 c) |
| Vec3 | unpack_vert (uint32_t v) |
| static Vec3 | vec (Reader &r) |
| static size_t | count (Reader &r) |
| static std::string | name_at (const Package &p, int32_t i) |
| static LodMesh::AnimSeq | read_seq (const Package &p, Reader &r) |
| LodMesh | read_lod_mesh (const Package &p, const Export &e) |
| static std::string | lower (std::string s) |
| static std::vector< std::string > | export_groups (const Package &p, const Export &e) |
| static uint32_t | crc32 (const uint8_t *p, size_t n, uint32_t c=0xFFFFFFFFu) |
| static void | be32 (std::vector< uint8_t > &o, uint32_t v) |
| static void | chunk (std::vector< uint8_t > &o, const char *tag, const std::vector< uint8_t > &body) |
| std::vector< uint8_t > | encode_png (int width, int height, const std::vector< uint8_t > &rgba) |
| void | write_png (const std::string &path, int width, int height, const std::vector< uint8_t > &rgba) |
| static void | vertex_layout () |
| static GLuint | upload_texture (const Image &image) |
| static GLuint | compile (GLenum type, const char *src) |
| static void | view_projection (const Camera &c, float aspect, float out[16]) |
| static void | read_rotator (const Package &p, const Property &prop, Spawn &s) |
| static Axes | rotation_axes (int32_t pitch, int32_t yaw, int32_t roll) |
| static Vec3 | apply (const Axes &a, Vec3 v) |
| static LightInfo | light_info (const Package &p, const Export &e) |
| static Vec3 | zone_ambient (const Package &p, const Export &e) |
| static float | dot3 (const Vec3 &a, const Vec3 &b) |
| static void | bake (const Model &m, const Surf &s, const LightMap &lm, const std::vector< LightInfo > &lights, Vec3 ambient, Image &atlas, Placed at) |
| static size_t | batch_for (PackageSet &set, Object tex, uint32_t flags, const char *name, std::map< BatchKey, size_t > &batch_of, Scene &scene) |
| static void | add_mesh_actor (PackageSet &set, Props &props, std::map< const Export *, LodMesh > &meshes, Object actor, std::map< BatchKey, size_t > &batch_of, Scene &scene) |
| Scene | load_scene (PackageSet &set, const std::string &map, bool mesh_actors) |
| size_t | skip_script (const Package &p, size_t pos, uint32_t mem_size, std::vector< uint8_t > *memory) |
| ClassInfo | read_class (const Package &p, const Export &cls) |
| static Image | checker () |
| Image | texture_rgba (const Package &p, const Export &tex, bool masked) |
| static void | utf8_append (std::string &s, uint32_t c) |
| static std::string | cstring (Reader &r) |
| static const std::string & | name_at (const Package &p, int32_t i) |
| Package | parse_package (std::vector< uint8_t > data) |
| Package | load_package (const std::string &path) |
| std::string | object_name (const Package &p, int32_t ref) |
| std::vector< uint8_t > | lazy_bytes (Reader &r, int version, size_t item_size) |
| std::vector< Property > | read_properties (const Package &p, const Export &e, size_t *end) |
| int32_t | prop_int (const Package &p, const Property &prop) |
| float | prop_float (const Package &p, const Property &prop) |
| int32_t | prop_ref (const Package &p, const Property &prop) |
| uint8_t | prop_byte (const Package &p, const Property &prop) |
| std::string | prop_string (const Package &p, const Property &prop) |
| Vec3 | prop_vector (const Package &p, const Property &prop) |
| static std::string | lower (std::string s) |
| static std::string | first (const Ini &ini, const char *key, const char *fallback) |
| Function | load_function (const Package &p, int32_t ref) |
| Function | load_state (const Package &p, int32_t ref) |
| bool | iequal (const std::string &a, const std::string &b) |
| void | rotation_axes (const int32_t rot[3], float x[3], float y[3], float z[3]) |
| PlayerInput | scripted_input (float t, float dt) |