OpenUT99-Plus
Unreal Engine 1, rebuilt from scratch
Loading...
Searching...
No Matches
scene.cpp File Reference
#include "scene.h"
#include "mesh.h"
#include "script.h"
#include <algorithm>
#include <cmath>
#include <map>
#include <stdexcept>
#include <tuple>

Classes

class  ut::Props
struct  ut::Props::Found
struct  ut::Axes
struct  ut::LightInfo
struct  ut::Placed

Namespaces

namespace  ut

Typedefs

using ut::BatchKey = std::tuple<const Export*, uint32_t>

Functions

static void ut::read_rotator (const Package &p, const Property &prop, Spawn &s)
static Axes ut::rotation_axes (int32_t pitch, int32_t yaw, int32_t roll)
static Vec3 ut::apply (const Axes &a, Vec3 v)
static LightInfo ut::light_info (const Package &p, const Export &e)
static Vec3 ut::zone_ambient (const Package &p, const Export &e)
static float ut::dot3 (const Vec3 &a, const Vec3 &b)
static void ut::bake (const Model &m, const Surf &s, const LightMap &lm, const std::vector< LightInfo > &lights, Vec3 ambient, Image &atlas, Placed at)
static size_t ut::batch_for (PackageSet &set, Object tex, uint32_t flags, const char *name, std::map< BatchKey, size_t > &batch_of, Scene &scene)
static void ut::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 ut::load_scene (PackageSet &set, const std::string &map, bool mesh_actors)

Variables

static const uint32_t ut::kBatchFlags = PF_Masked | PF_Translucent | PF_Modulated | PF_TwoSided | PF_FakeBackdrop