|
OpenBF1942-Plus
Refractor 1, rebuilt from scratch
|
Classes | |
| struct | Bone |
| struct | SkinInfluence |
| struct | SkinRecord |
| struct | Skin |
| struct | Animation |
| struct | Wav |
| struct | SoundEffect |
| struct | SoundLayer |
| struct | SoundPatch |
| struct | Listener |
| class | Mixer |
| struct | ConObject |
| class | Con |
| struct | ConquestFlag |
| struct | Conquest |
| struct | Material |
| struct | DamageTable |
| struct | Image |
| struct | Crd |
| struct | Curve |
| struct | ParticleDef |
| struct | EmitterDef |
| struct | EffectDef |
| struct | Sprite |
| struct | MeshParticle |
| class | Effects |
| struct | GameOptions |
| struct | GameInput |
| struct | SoldierView |
| struct | Ammo |
| struct | Camera |
| class | Game |
| struct | Glyph |
| struct | Font |
| struct | HudQuad |
| struct | MapIcon |
| struct | HudInfo |
| struct | Mat4 |
| struct | NavGrid |
| struct | WheelDef |
| struct | WingDef |
| struct | FloatDef |
| struct | JointDef |
| struct | WeaponDef |
| struct | SeatDef |
| struct | VehicleDef |
| class | Physics |
| class | Renderer |
| struct | RfaEntry |
| struct | DrawItem |
| struct | SpawnPoint |
| struct | SmMaterial |
| struct | CollisionMesh |
| struct | SmMesh |
| class | Sounds |
| struct | TerrainInfo |
| struct | Heightmap |
| struct | TmPart |
| struct | TmMesh |
| class | Vfs |
Typedefs | |
| using | Skeleton = std::vector<Bone> |
| using | JointFn = std::function<Mat4(const std::string& name, int occurrence)> |
Functions | |
| Skeleton | ske_parse (const std::vector< uint8_t > &d) |
| Skin | skn_parse (const std::vector< uint8_t > &d) |
| Animation | baf_parse (const std::vector< uint8_t > &d) |
| std::vector< Mat4 > | pose (const Skeleton &s, const std::vector< const Animation * > &anims, float frame, bool biped_root) |
| std::vector< Mat4 > | pose (const Skeleton &s, const std::vector< const Animation * > &anims, const std::vector< float > &frames, bool biped_root) |
| std::vector< int > | bone_index (const Skin &skin, const Skeleton &s) |
| std::vector< int > | skin_map (const Skin &skin, const std::vector< float > &v, size_t fpv) |
| void | skin_apply (const Skin &skin, const std::vector< int > &map, const std::vector< int > &to_ske, const std::vector< Mat4 > &world, const std::vector< float > &v, size_t fpv, std::vector< float > &out) |
| Wav | wav_parse (const std::vector< uint8_t > &d) |
| std::vector< SoundPatch > | ssc_patches (const std::string &path, const std::function< std::string(const std::string &)> &read, const std::string &level) |
| SoundPatch | ssc_parse (const std::string &path, const std::function< std::string(const std::string &)> &read, const std::string &level) |
| std::string | lower (std::string s) |
| static std::string | normpath (const std::string &p) |
| static std::string | dirname (const std::string &p) |
| Conquest | conquest_from (const Con &con) |
| DamageTable | damage_table (const std::vector< std::pair< std::string, std::vector< std::string > > > &commands) |
| static void | colour_block (const uint8_t *b, uint8_t out[16][4], bool allow_transparent) |
| void | dxt1_block (const uint8_t *b, uint8_t out[16][4]) |
| static void | dxt3_alpha (const uint8_t *a, uint8_t out[16][4]) |
| static void | dxt5_alpha (const uint8_t *a, uint8_t out[16][4]) |
| Image | dds_decode (const std::vector< uint8_t > &d) |
| Image | tga_decode (const std::vector< uint8_t > &d) |
| Crd | crd_parse (const std::string &s) |
| Curve | curve_parse (const std::string &s) |
| std::map< std::string, std::string > | lexicon_parse (const std::vector< uint8_t > &data, int lang) |
| Font | font_parse (const std::string &text) |
| float | text_width (const Font &f, const std::string &s, float scale) |
| void | hud_text (const Font &f, const std::string &s, float x, float y, float scale, const float rgba[4], std::vector< HudQuad > &out) |
| std::vector< HudQuad > | hud_layout (const Font &f, const HudInfo &in, int w, int h) |
| Mat4 | translate (float x, float y, float z) |
| Mat4 | scale (float x, float y, float z) |
| Mat4 | rotation_ypr (float yaw_deg, float pitch_deg, float roll_deg) |
| Mat4 | perspective (float fovy, float aspect, float zn, float zf) |
| Mat4 | view (float x, float y, float z, float yaw, float pitch) |
| NavGrid | nav_parse (const std::vector< uint8_t > &d, float world_size) |
| NavGrid | nav_coarse (const NavGrid &g, int f) |
| std::vector< float > | nav_path (const NavGrid &g, float ax, float az, float bx, float bz, int max_expand) |
| WeaponDef | weapon_def (const Con &con, const std::string &name) |
| VehicleDef | vehicle_def (const Con &con, const Vfs &vfs, const std::string &name) |
| std::vector< uint8_t > | lzo1x_decompress (const uint8_t *src, size_t n, size_t out_len) |
| static uint32_t | u32 (const std::vector< uint8_t > &b, size_t o) |
| std::vector< std::pair< std::string, RfaEntry > > | rfa_index (const std::string &path) |
| std::vector< uint8_t > | rfa_read (const RfaEntry &e) |
| void | parse_vec3 (const std::string &s, float out[3]) |
| std::vector< DrawItem > | build_scene (const Con &con, const Vfs &vfs, std::map< std::string, int > &skipped, const std::function< bool(const std::string &)> &hide, std::vector< SpawnPoint > *spawns) |
| std::vector< DrawItem > | build_object (const Con &con, const Vfs &vfs, const std::string &name, const Mat4 &world, std::map< std::string, int > &skipped, const JointFn &joint, const std::function< bool(const std::string &)> &hide, bool wreck) |
| SmMesh | sm_parse (const std::vector< uint8_t > &d) |
| CollisionMesh | collision_parse (const uint8_t *data, size_t size) |
| std::vector< uint32_t > | sm_triangles (const SmMaterial &m) |
| std::map< std::string, std::map< std::string, std::string > > | rs_parse (const std::string &text) |
| TerrainInfo | parse_terrain_con (const std::string &text) |
| Heightmap | load_heightmap (const std::vector< uint8_t > &raw, float y_scale) |
| static uint32_t | u32_at (const std::vector< uint8_t > &d, size_t o) |
| TmMesh | tm_parse (const std::vector< uint8_t > &d) |
Variables | |
| static const char * | kObjectFiles [] |
| constexpr uint32_t | kTmIndicesPer [3] = {24, 3, 24} |
| using obf::JointFn = std::function<Mat4(const std::string& name, int occurrence)> |
| using obf::Skeleton = std::vector<Bone> |
| Animation obf::baf_parse | ( | const std::vector< uint8_t > & | d | ) |
| std::vector< DrawItem > obf::build_object | ( | const Con & | con, |
| const Vfs & | vfs, | ||
| const std::string & | name, | ||
| const Mat4 & | world, | ||
| std::map< std::string, int > & | skipped, | ||
| const JointFn & | joint, | ||
| const std::function< bool(const std::string &)> & | hide, | ||
| bool | wreck ) |
| std::vector< DrawItem > obf::build_scene | ( | const Con & | con, |
| const Vfs & | vfs, | ||
| std::map< std::string, int > & | skipped, | ||
| const std::function< bool(const std::string &)> & | hide, | ||
| std::vector< SpawnPoint > * | spawns ) |
| CollisionMesh obf::collision_parse | ( | const uint8_t * | data, |
| size_t | size ) |
|
static |
| Crd obf::crd_parse | ( | const std::string & | s | ) |
| Curve obf::curve_parse | ( | const std::string & | s | ) |
| DamageTable obf::damage_table | ( | const std::vector< std::pair< std::string, std::vector< std::string > > > & | commands | ) |
| Image obf::dds_decode | ( | const std::vector< uint8_t > & | d | ) |
|
static |
| void obf::dxt1_block | ( | const uint8_t * | b, |
| uint8_t | out[16][4] ) |
|
static |
|
static |
| Font obf::font_parse | ( | const std::string & | text | ) |
| void obf::hud_text | ( | const Font & | f, |
| const std::string & | s, | ||
| float | x, | ||
| float | y, | ||
| float | scale, | ||
| const float | rgba[4], | ||
| std::vector< HudQuad > & | out ) |
| std::map< std::string, std::string > obf::lexicon_parse | ( | const std::vector< uint8_t > & | data, |
| int | lang ) |
| Heightmap obf::load_heightmap | ( | const std::vector< uint8_t > & | raw, |
| float | y_scale ) |
| std::string obf::lower | ( | std::string | s | ) |
| std::vector< uint8_t > obf::lzo1x_decompress | ( | const uint8_t * | src, |
| size_t | n, | ||
| size_t | out_len ) |
| NavGrid obf::nav_parse | ( | const std::vector< uint8_t > & | d, |
| float | world_size ) |
| std::vector< float > obf::nav_path | ( | const NavGrid & | g, |
| float | ax, | ||
| float | az, | ||
| float | bx, | ||
| float | bz, | ||
| int | max_expand ) |
|
static |
| TerrainInfo obf::parse_terrain_con | ( | const std::string & | text | ) |
| void obf::parse_vec3 | ( | const std::string & | s, |
| float | out[3] ) |
|
inline |
| std::vector< Mat4 > obf::pose | ( | const Skeleton & | s, |
| const std::vector< const Animation * > & | anims, | ||
| const std::vector< float > & | frames, | ||
| bool | biped_root ) |
| std::vector< Mat4 > obf::pose | ( | const Skeleton & | s, |
| const std::vector< const Animation * > & | anims, | ||
| float | frame, | ||
| bool | biped_root ) |
| std::vector< std::pair< std::string, RfaEntry > > obf::rfa_index | ( | const std::string & | path | ) |
| std::vector< uint8_t > obf::rfa_read | ( | const RfaEntry & | e | ) |
|
inline |
| std::map< std::string, std::map< std::string, std::string > > obf::rs_parse | ( | const std::string & | text | ) |
|
inline |
| Skeleton obf::ske_parse | ( | const std::vector< uint8_t > & | d | ) |
| void obf::skin_apply | ( | const Skin & | skin, |
| const std::vector< int > & | map, | ||
| const std::vector< int > & | to_ske, | ||
| const std::vector< Mat4 > & | world, | ||
| const std::vector< float > & | v, | ||
| size_t | fpv, | ||
| std::vector< float > & | out ) |
| std::vector< int > obf::skin_map | ( | const Skin & | skin, |
| const std::vector< float > & | v, | ||
| size_t | fpv ) |
| Skin obf::skn_parse | ( | const std::vector< uint8_t > & | d | ) |
| SmMesh obf::sm_parse | ( | const std::vector< uint8_t > & | d | ) |
| std::vector< uint32_t > obf::sm_triangles | ( | const SmMaterial & | m | ) |
| SoundPatch obf::ssc_parse | ( | const std::string & | path, |
| const std::function< std::string(const std::string &)> & | read, | ||
| const std::string & | level ) |
| std::vector< SoundPatch > obf::ssc_patches | ( | const std::string & | path, |
| const std::function< std::string(const std::string &)> & | read, | ||
| const std::string & | level ) |
| float obf::text_width | ( | const Font & | f, |
| const std::string & | s, | ||
| float | scale ) |
| Image obf::tga_decode | ( | const std::vector< uint8_t > & | d | ) |
| TmMesh obf::tm_parse | ( | const std::vector< uint8_t > & | d | ) |
|
inline |
|
static |
|
static |
| VehicleDef obf::vehicle_def | ( | const Con & | con, |
| const Vfs & | vfs, | ||
| const std::string & | name ) |
|
inline |
| Wav obf::wav_parse | ( | const std::vector< uint8_t > & | d | ) |
|
static |
|
constexpr |