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

94 lines
1.9 KiB
C++

#pragma once
#include "ElementProxies.hpp"
namespace ElementProxies {
class MLRPolygonProxy;
class MLRIndexProxy;
class MLRVertexProxy;
//
//#########################################################################
//#################### MLRIndexProxy #########################
//#########################################################################
//
class MLRIndexProxy:
public Proxies::IndexProxy
{
public:
static void
InitializeClass();
static void
TerminateClass();
static ClassData
*DefaultData;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Constructors
//
public:
static MLRIndexProxy*
MakeProxy(
MLRPolygonProxy *polygon,
MLRVertexProxy *vertex,
int polygon_index
)
{return new MLRIndexProxy(polygon, vertex, polygon_index);}
void
Destroy();
void*
operator new(size_t)
{return AllocatedMemory->New();}
void
operator delete(void *where)
{AllocatedMemory->Delete(where);}
protected:
MLRIndexProxy(
MLRPolygonProxy *polygon,
MLRVertexProxy *vertex,
int polygon_index
);
~MLRIndexProxy();
static Stuff::MemoryBlock
*AllocatedMemory;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Testing
//
public:
void
TestInstance() const;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Vertex management functions
//
public:
//
// Copies the elements of a polygon into this polygon
//
MLRPolygonProxy*
GetPolygonProxy()
{
Check_Object(this);
return Cast_Pointer(MLRPolygonProxy*, polygonProxy);
}
MLRVertexProxy*
GetVertexProxy()
{
Check_Object(this);
return Cast_Pointer(MLRVertexProxy*, vertexProxy);
}
protected:
int
polygonIndex;
};
}