IT
games/dmmotor / src / Dm / Render / DrawSeg.php · commit 9d248a4
<?php/* * dmmotor — renderer structures (r_defs.h of linuxdoom-1.10). * Copyright (C) 1993-1996 by id Software, Inc.; PHP port for dmmotor. GPL v2 (see LICENSE). */namespace App\Dm\Render;use App\Dm\Seg;/** A drawn wall range, kept to clip the sprites and draw the see-through middle textures. */final class DrawSeg{    public Seg $curLine;    public int $x1 = 0;    public int $x2 = 0;    public float $scale1 = 0;    public float $scale2 = 0;    public float $scaleStep = 0;    /** 0 = none, 1 = bottom, 2 = top, 3 = both */    public int $silhouette = 0;    /** do not clip sprites above this */    public float $bsilHeight = 0;    /** do not clip sprites below this */    public float $tsilHeight = 0;    /** @var array<int,int>|null */    public ?array $sprTopClip = null;    /** @var array<int,int>|null */    public ?array $sprBottomClip = null;    /** @var array<int,int>|null x => texture column still to draw */    public ?array $maskedTextureCol = null;}