mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-29 07:22:33 +00:00
20edd800f9
Finally that quickly slapped together BuildTiles class is gone and replaced with something that better integrates with the underlying texture manager
46 lines
1 KiB
C
46 lines
1 KiB
C
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
|
|
// Ken Silverman's official web site: "http://www.advsys.net/ken"
|
|
// See the included license file "BUILDLIC.TXT" for license info.
|
|
//
|
|
// This file has been modified from Ken Silverman's original release
|
|
// by Jonathon Fowler (jf@jonof.id.au)
|
|
// by the EDuke32 team (development@voidpoint.com)
|
|
|
|
#pragma once
|
|
|
|
#ifndef build_h_
|
|
#define build_h_
|
|
|
|
#define TRANSPARENT_INDEX 0
|
|
|
|
static_assert('\xff' == 255, "Char must be unsigned!");
|
|
|
|
#include "printf.h"
|
|
#include "palette.h"
|
|
#include "c_cvars.h"
|
|
#include "cmdlib.h"
|
|
|
|
typedef int64_t coord_t;
|
|
|
|
#define POINT2(i) (wall[wall[i].point2])
|
|
|
|
|
|
#include "maptypes.h"
|
|
#include "clip.h"
|
|
|
|
enum {
|
|
ENGINECOMPATIBILITY_NONE = 0,
|
|
ENGINECOMPATIBILITY_19950829, // Powerslave/Exhumed
|
|
ENGINECOMPATIBILITY_19960925, // Blood v1.21
|
|
ENGINECOMPATIBILITY_19961112, // Duke 3d v1.5, Redneck Rampage
|
|
};
|
|
|
|
inline int32_t enginecompatibility_mode;
|
|
|
|
|
|
inline int32_t ksqrt(uint64_t num)
|
|
{
|
|
return int(sqrt(double(num)));
|
|
}
|
|
|
|
#endif // build_h_
|