mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-24 01:52:24 -05:00
23 lines
No EOL
541 B
C#
23 lines
No EOL
541 B
C#
using System;
|
|
using OpenTK;
|
|
|
|
namespace ClassicalSharp.Particles {
|
|
|
|
public abstract class Particle {
|
|
|
|
public Vector3 Position;
|
|
public Vector3 Velocity;
|
|
public float Lifetime;
|
|
protected Vector3 lastPos, nextPos;
|
|
|
|
public abstract int Get1DBatch( Game game );
|
|
|
|
public abstract void Render( Game game, double delta, float t,
|
|
VertexPos3fTex2fCol4b[] vertices, ref int index );
|
|
|
|
public virtual bool Tick( Game game, double delta ) {
|
|
Lifetime -= (float)delta;
|
|
return Lifetime < 0;
|
|
}
|
|
}
|
|
} |