Files
firestorm/Gameleap/code/mw4/Libraries/gosFX/ShapeCloud.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

166 lines
4.2 KiB
C++

//==========================================================================//
// File: gosFX_ShapeCloud.hpp //
// Project: gosFX //
// Contents: ShapeCloud Component //
//--------------------------------------------------------------------------//
// Date Who Modification //
// 09/28/98 JTR Created //
// //
//--------------------------------------------------------------------------//
// Copyright (C) 1997-1998, Virtual World Entertainment, Inc. //
// All Rights reserved worldwide //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
//==========================================================================//
//
#pragma once
#include "gosFX.hpp"
#include "SpinningCloud.hpp"
#include <MLR\MLR.hpp>
namespace MidLevelRenderer {class MLRShape;}
namespace gosFX
{
//############################################################################
//######################## ShapeCloud__Specification #############################
//############################################################################
class ShapeCloud;
class ShapeCloud__Specification:
public SpinningCloud__Specification
{
friend class ShapeCloud;
//----------------------------------------------------------------------
// Constructors/Destructors
//
protected:
ShapeCloud__Specification(
Stuff::MemoryStream *stream,
int gfx_version
);
public:
typedef SpinningCloud__Specification BaseClass;
ShapeCloud__Specification();
~ShapeCloud__Specification();
void
Save(Stuff::MemoryStream *stream);
static ShapeCloud__Specification*
Make(
Stuff::MemoryStream *stream,
int gfx_version
);
void
Copy(ShapeCloud__Specification *spec);
void
SetShape(Stuff::MString &shape);
protected:
MidLevelRenderer::MLRShape
*m_shape;
Stuff::Scalar
m_radius;
Stuff::MString
m_shapeFile;
};
//############################################################################
//######################## SpinningCloud__Particle #############################
//############################################################################
class ShapeCloud__Particle:
public SpinningCloud__Particle
{
public:
typedef SpinningCloud__Particle BaseClass;
Stuff::RGBAColor
m_color;
};
//############################################################################
//############################# ShapeCloud #################################
//############################################################################
class ShapeCloud : public SpinningCloud
{
//----------------------------------------------------------------------------
// Class Registration Support
//
public:
typedef SpinningCloud BaseClass;
static void InitializeClass();
static void TerminateClass();
typedef ShapeCloud__Specification Specification;
typedef ShapeCloud__Particle Particle;
//----------------------------------------------------------------------------
// Class Data Support
//
protected:
ShapeCloud(
Specification *spec,
unsigned flags
);
public:
static ShapeCloud*
Make(
Specification *spec,
unsigned flags
);
Specification*
GetSpecification()
{
Check_Object(this);
return
Cast_Object(Specification*, m_specification);
}
Particle*
GetParticle(unsigned index)
{
Check_Object(this); Check_Object(GetSpecification());
return
Cast_Pointer(
Particle*,
&m_data[index*GetSpecification()->m_particleClassSize]
);
}
static ClassData
*DefaultData;
//----------------------------------------------------------------------------
// Testing
//
public:
void
TestInstance() const;
//----------------------------------------------------------------------------
// API
//
protected:
void
CreateNewParticle(
unsigned index,
Stuff::Point3D *translation
);
public:
void Start(ExecuteInfo *info);
void Draw(DrawInfo *info);
};
}