3#ifndef TRITON_TIDAL_STREAM_WAKE_H 
    4#define TRITON_TIDAL_STREAM_WAKE_H 
    7%module TritonTidalStreamWake
 
   12    using namespace Triton;
 
   16#define NUM_TS_DECALS 1 
   51       bool pUseDecals = 
true, 
bool pUseDisplacement = 
true);
 
   65    void TRITONAPI 
Update(
const Vector3& pPosition, 
const Vector3& pDirection, 
double pVelocity, 
double pTime);
 
   68    void OceanDestroyed() {
 
   74    void WakeManagerDestroyed() {
 
   75        wakeManagerRegistered = 
false;
 
   79    void OceanQualityChanged();
 
   83    void UpdateDecals(
double time, 
const Vector3& position, 
double distanceDampening, 
const Vector3& direction, 
double velocity); 
 
   85    float CoherentNoise(
float t);
 
   88    double draft, waveMax, size;
 
   89    bool registered, wakeManagerRegistered;
 
   90    double amplitudeVariance, directionVariance;
 
   91    double amplitudeSpeed, directionSpeed;
 
   93    bool useDecal, useDisplacement;
 
   95    float noiseVerts[256];
 
   97    double decalIntensity;
 
   98    Decal *decals[NUM_TS_DECALS];
 
  100    double decalStartTimes[NUM_TS_DECALS];
 
  102    float decalMinScale, decalMaxScale;
 
  105    float animationScale;
 
An object that generates a static wake wave in a given direction, such as that generated by a buoy in...
 
Common typedefs and defines used within Triton.
 
A 3D Vector class and its operations.
 
This base class for all Triton objects intercepts the new and delete operators, routing them through ...
Definition: MemAlloc.h:71
 
The Ocean class allows you to configure and draw Triton's water simulation.
Definition: Ocean.h:81
 
An static wake pointing in a given direction at a fixed location, for example from a buoy or bridge p...
Definition: TidalStreamWake.h:35
 
void TRITONAPI Update(const Vector3 &pPosition, const Vector3 &pDirection, double pVelocity, double pTime)
For any active TidalStreamWake, this should be called every frame to update its position and velocity...
 
TidalStreamWake(Ocean *pOcean, double pSize, double pDraft, double pWaveMax=1.0, double pOffset=0, bool pUseDecals=true, bool pUseDisplacement=true)
Construct a TidalStreamWake with the same Triton::Ocean it will be associated with.
 
A 3D double-precision Vector class and its operations.
Definition: Vector3.h:36