OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
packedmesh.cpp File Reference
#include "packedmesh.h"
#include <Tempest/Application>
#include <Tempest/Log>
#include <cassert>
#include <fstream>
#include <algorithm>
#include "game/compatibility/phoenix.h"
#include "gothic.h"

Go to the source code of this file.

Classes

struct  PackedMesh::PrimitiveHeap
 

Functions

static uint64_t mkUInt64 (uint32_t a, uint32_t b)
 
static bool isVisuallySame (const zenkit::Material &a, const zenkit::Material &b)
 
static float areaOf (const Vec3 sahMin, const Vec3 sahMax)
 
static float areaOf (const Vec3 sz)
 
static uint32_t floatBitsToUint (float f)
 

Function Documentation

◆ areaOf() [1/2]

static float areaOf ( const Vec3  sahMin,
const Vec3  sahMax 
)
static

Definition at line 46 of file packedmesh.cpp.

◆ areaOf() [2/2]

static float areaOf ( const Vec3  sz)
static

Definition at line 51 of file packedmesh.cpp.

◆ floatBitsToUint()

static uint32_t floatBitsToUint ( float  f)
static

Definition at line 55 of file packedmesh.cpp.

◆ isVisuallySame()

static bool isVisuallySame ( const zenkit::Material &  a,
const zenkit::Material &  b 
)
static

Definition at line 18 of file packedmesh.cpp.

◆ mkUInt64()

static uint64_t mkUInt64 ( uint32_t  a,
uint32_t  b 
)
static

Definition at line 14 of file packedmesh.cpp.