public void AddMapMarker(Vector3 a_v3Pos, GLEffect a_oDefaultEffect) { MapMarker oMapMarker = new MapMarker(); GLUtilities.GLQuad oMarkerQuad = new GLUtilities.GLQuad(a_oDefaultEffect, a_v3Pos, new Vector2(0.0001f, 0.0001f), Color.Tan, UIConstants.Textures.DEFAULT_PLANET_ICON); // create name lable: int m_Count = m_lMapMarkers.Count + 1; string name = "WP" + m_Count.ToString(); GLUtilities.GLFont oNameLable = new GLUtilities.GLFont(a_oDefaultEffect, a_v3Pos, UIConstants.DEFAULT_TEXT_SIZE, Color.Tan, UIConstants.Textures.DEFAULT_GLFONT, name); oMapMarker.AddPrimitive(oMarkerQuad); oMapMarker.PrimaryPrimitive = oMarkerQuad; oMapMarker.Lable = oNameLable; oMapMarker.ParentSceen = this; m_lMapMarkers.Add(oMapMarker); Refresh(); }