Files
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

49 lines
817 B
C++

// ComposeInfo.cpp: implementation of the CComposeInfo class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "imagegrinder.h"
#include "ComposeInfo.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CComposeInfo::CComposeInfo()
{
//Segs=NULL;
MaxSeg=NumSeg=0;
}
CComposeInfo::~CComposeInfo()
{
/*
if(Segs)
delete Segs;
*/
}
void CComposeInfo::Init(int size)
{
ASSERT(size<1024);
/*
if(Segs)
delete Segs;
Segs=new GridSeg[size];
MaxSeg=size;
NumSeg=0;
*/
MaxSeg=1024;
NumSeg=0;
}
void CComposeInfo::AddSeg(GridSeg &seg)
{
ASSERT(Segs);
ASSERT(NumSeg<=MaxSeg);
Segs[NumSeg++]=seg;
}