Added SetVertsFromSplines to AMV. Moved const to the left side. Documentation for all new functions.
This commit is contained in:
+11
-10
@@ -28,6 +28,7 @@ class RageTexture;
|
||||
class ActorMultiVertex: public Actor
|
||||
{
|
||||
public:
|
||||
static const size_t num_vert_splines= 4;
|
||||
ActorMultiVertex();
|
||||
ActorMultiVertex( const ActorMultiVertex &cpy );
|
||||
virtual ~ActorMultiVertex();
|
||||
@@ -37,7 +38,9 @@ public:
|
||||
|
||||
struct AMV_TweenState
|
||||
{
|
||||
AMV_TweenState(): _DrawMode(DrawMode_Invalid), FirstToDraw(0), NumToDraw(-1), line_width(1.0f) {}
|
||||
AMV_TweenState(): _DrawMode(DrawMode_Invalid), FirstToDraw(0),
|
||||
NumToDraw(-1), line_width(1.0f)
|
||||
{}
|
||||
static void MakeWeightedAverage(AMV_TweenState& average_out, const AMV_TweenState& ts1, const AMV_TweenState& ts2, float percent_between);
|
||||
bool operator==(const AMV_TweenState& other) const;
|
||||
bool operator!=(const AMV_TweenState& other) const { return !operator==(other); }
|
||||
@@ -104,21 +107,15 @@ public:
|
||||
void SetVertexColor( int index , RageColor c );
|
||||
void SetVertexCoords( int index , float TexCoordX , float TexCoordY );
|
||||
|
||||
bool GetUseSpline();
|
||||
void SetUseSpline(bool use);
|
||||
void SplineSetPoint(size_t i, float x , float y , float z);
|
||||
void SplineResize(size_t s);
|
||||
size_t SplineSize();
|
||||
void SplineSolve();
|
||||
inline void SetVertsFromSplinesInternal(size_t num_splines, size_t start_vert);
|
||||
void SetVertsFromSplines();
|
||||
CubicSplineN* GetSpline(size_t i);
|
||||
|
||||
virtual void PushSelf( lua_State *L );
|
||||
|
||||
private:
|
||||
RageTexture* _Texture;
|
||||
|
||||
CubicSplineN _spline;
|
||||
bool _using_spline;
|
||||
|
||||
vector<RageSpriteVertex> _Vertices;
|
||||
vector<AMV_TweenState> AMV_Tweens;
|
||||
AMV_TweenState AMV_current;
|
||||
@@ -129,6 +126,10 @@ private:
|
||||
|
||||
EffectMode _EffectMode;
|
||||
TextureMode _TextureMode;
|
||||
|
||||
// Four splines for controlling vert positions, because quads drawmode
|
||||
// requires four. -Kyz
|
||||
vector<CubicSplineN> _splines;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user