Namespaces | Defines | Enumerations | Functions | Variables

bsp-version.cpp File Reference

#include "bsp-version.h"
#include <iostream>
#include "perf/perf.h"
Include dependency graph for bsp-version.cpp:

Go to the source code of this file.

Namespaces

namespace  quake

Defines

#define LUMP_META(type)   { eLump_ ## type , #type },
#define ADDLUMP(type)   lumps.push_back( eLump_ ## type );

Enumerations

enum  quake::eEndian {
  quake::eLittleEndian = 1,
  quake::eBigEndian = 2,
  quake::eEndian_Invalid = 0
}

Functions

void quake::littleEndianToHostEndian (byte_t *raw)
static eBspVendor quake::parseVendor (std::istream &in)
static eBspVersion quake::parseVersion (eBspVendor vendor, int val)

const char * quake::getLumpName (eLumpType type)
 for debugging
int quake::readInt (std::istream &stream)
 read an integer. These are stored as little-endian in BSP files.
float quake::readFloat (std::istream &stream)
 read a float. These are stored as little-endian in BSP files.
point3d_t quake::readPoint3d (std::istream &stream)
 read a vector/point (helper function using readFloat() above)

Variables

static const lump_meta_t quake::s_lumpMap []

Define Documentation

#define LUMP_META (   type  )     { eLump_ ## type , #type },

Definition at line 44 of file bsp-version.cpp.

#define ADDLUMP (   type  )     lumps.push_back( eLump_ ## type );

Definition at line 242 of file bsp-version.cpp.