mirror of
https://github.com/tribes2/engine.git
synced 2026-01-20 19:54:46 +00:00
59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
//-----------------------------------------------------------------------------
|
|
// V12 Engine
|
|
//
|
|
// Copyright (c) 2001 GarageGames.Com
|
|
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef _UNDERLAVA_H_
|
|
#define _UNDERLAVA_H_
|
|
|
|
#ifndef _MPOINT_H_
|
|
#include "Math/mPoint.h"
|
|
#endif
|
|
|
|
//**************************************************************************
|
|
// Data
|
|
//**************************************************************************
|
|
struct LavaVertex
|
|
{
|
|
Point2I pnt;
|
|
Point2F texPnt;
|
|
|
|
};
|
|
|
|
struct LavaWave
|
|
{
|
|
F32 frequency;
|
|
F32 amplitude;
|
|
F32 velocity;
|
|
|
|
};
|
|
|
|
|
|
//**************************************************************************
|
|
// Under lava FX
|
|
//**************************************************************************
|
|
class UnderLavaFX
|
|
{
|
|
private:
|
|
Point2F mTexFrequency;
|
|
Point2I mNumPoints;
|
|
Point2I mViewSize;
|
|
LavaWave mWave[2];
|
|
F32 mMoveSpeed;
|
|
|
|
void renderRow( U32 row, U32 numRows, U32 numColumns );
|
|
|
|
public:
|
|
UnderLavaFX();
|
|
|
|
void init();
|
|
void render();
|
|
|
|
};
|
|
|
|
extern UnderLavaFX gLavaFX;
|
|
|
|
#endif
|