summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerparceloverlay.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewerparceloverlay.h')
-rw-r--r--indra/newview/llviewerparceloverlay.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/indra/newview/llviewerparceloverlay.h b/indra/newview/llviewerparceloverlay.h
index c466cc3b6b..c0d7e2a466 100644
--- a/indra/newview/llviewerparceloverlay.h
+++ b/indra/newview/llviewerparceloverlay.h
@@ -68,8 +68,8 @@ public:
F32 getOwnedRatio() const;
// Returns the number of vertices drawn
- S32 renderPropertyLines();
- void renderPropertyLinesOnMinimap(F32 scale_pixels_per_meter, const F32* parcel_outline_color);
+ void renderPropertyLines();
+ void renderPropertyLinesOnMinimap(F32 scale_pixels_per_meter, const F32* parcel_outline_color);
U8 ownership( const LLVector3& pos) const;
U8 parcelLineFlags( const LLVector3& pos) const;
@@ -83,7 +83,7 @@ public:
void idleUpdate(bool update_now = false);
void updateGL();
-
+
private:
// This is in parcel rows and columns, not grid rows and columns
// Stored in bottom three bits.
@@ -92,12 +92,7 @@ private:
U8 parcelFlags(S32 row, S32 col, U8 flags) const;
- void addPropertyLine(std::vector<LLVector3>& vertex_array,
- std::vector<LLColor4U>& color_array,
- std::vector<LLVector2>& coord_array,
- const F32 start_x, const F32 start_y,
- const U32 edge,
- const LLColor4U& color);
+ void addPropertyLine(F32 start_x, F32 start_y, F32 dx, F32 dy, F32 tick_dx, F32 tick_dy, const LLColor4U& color);
void updateOverlayTexture();
void updatePropertyLines();
@@ -120,10 +115,14 @@ private:
BOOL mDirty;
LLFrameTimer mTimeSinceLastUpdate;
S32 mOverlayTextureIdx;
-
- S32 mVertexCount;
- F32* mVertexArray;
- U8* mColorArray;
+
+ struct Edge
+ {
+ std::vector<LLVector3> vertices;
+ LLColor4U color;
+ };
+
+ std::vector<Edge> mEdges;
};
#endif