Files
firestorm/Gameleap/code/mw4/Libraries/MAXProxies/MAXIndex.hpp
T
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

88 lines
1.7 KiB
C++

#pragma once
#include "MAXProxies.hpp"
namespace MAXProxies {
class MAXPolygon;
class MAXVertex;
//
//#########################################################################
//####################### MAXIndex ###########################
//#########################################################################
//
class MAXIndex:
public Proxies::IndexProxy
{
public:
static void
InitializeClass();
static void
TerminateClass();
static ClassData
*DefaultData;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Constructors
//
public:
static MAXIndex*
MakeProxy(
MAXPolygon *polygon,
MAXVertex *vertex
)
{return new MAXIndex(polygon, vertex);}
void
Destroy();
void*
operator new(size_t)
{return AllocatedMemory->New();}
void
operator delete(void *where)
{AllocatedMemory->Delete(where);}
protected:
MAXIndex(
MAXPolygon *polygon,
MAXVertex *index
);
~MAXIndex();
static Stuff::MemoryBlock
*AllocatedMemory;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Testing
//
public:
void
TestInstance() const;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Vertex management functions
//
public:
MAXPolygon*
GetPolygonProxy()
{
Check_Object(this);
return Cast_Pointer(MAXPolygon*, polygonProxy);
}
MAXVertex*
GetVertexProxy()
{
Check_Object(this);
return Cast_Pointer(MAXVertex*, vertexProxy);
}
Proxies::IndexProxy*
UseNextIndexProxy();
Proxies::IndexProxy*
UsePreviousIndexProxy();
};
}