mirror of
https://github.com/xemu-project/implot.git
synced 2026-04-30 09:46:02 -07:00
increment version, add GetMarkerName
This commit is contained in:
+18
-1
@@ -20,7 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
// ImPlot v0.6 WIP
|
||||
// ImPlot v0.7 WIP
|
||||
|
||||
/*
|
||||
|
||||
@@ -156,6 +156,23 @@ const char* GetStyleColorName(ImPlotCol col) {
|
||||
return col_names[col];
|
||||
}
|
||||
|
||||
const char* GetMarkerName(ImPlotMarker marker) {
|
||||
switch (marker) {
|
||||
case ImPlotMarker_None: return "None";
|
||||
case ImPlotMarker_Circle: return "Circle";
|
||||
case ImPlotMarker_Square: return "Square";
|
||||
case ImPlotMarker_Diamond: return "Diamond";
|
||||
case ImPlotMarker_Up: return "Up";
|
||||
case ImPlotMarker_Down: return "Down";
|
||||
case ImPlotMarker_Left: return "Left";
|
||||
case ImPlotMarker_Right: return "Right";
|
||||
case ImPlotMarker_Cross: return "Cross";
|
||||
case ImPlotMarker_Plus: return "Plus";
|
||||
case ImPlotMarker_Asterisk: return "Asterisk";
|
||||
default: return "";
|
||||
}
|
||||
}
|
||||
|
||||
ImVec4 GetAutoColor(ImPlotCol idx) {
|
||||
ImVec4 col(0,0,0,1);
|
||||
switch(idx) {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
// ImPlot v0.6 WIP
|
||||
// ImPlot v0.7 WIP
|
||||
|
||||
#pragma once
|
||||
#include "imgui.h"
|
||||
@@ -30,7 +30,7 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// ImPlot version string
|
||||
#define IMPLOT_VERSION "0.6 WIP"
|
||||
#define IMPLOT_VERSION "0.7 WIP"
|
||||
// Indicates variable should deduced automatically.
|
||||
#define IMPLOT_AUTO -1
|
||||
// Special color used to indicate that a color should be deduced automatically.
|
||||
@@ -480,6 +480,8 @@ void SetNextErrorBarStyle(const ImVec4& col = IMPLOT_AUTO_COL, float size = IMPL
|
||||
|
||||
// Returns the null terminated string name for an ImPlotCol.
|
||||
const char* GetStyleColorName(ImPlotCol color);
|
||||
// Returns the null terminated string name for an ImPlotMarker.
|
||||
const char* GetMarkerName(ImPlotMarker marker);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Colormaps
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
// ImPlot v0.6 WIP
|
||||
// ImPlot v0.7 WIP
|
||||
|
||||
#include "implot.h"
|
||||
#include <math.h>
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
// ImPlot v0.6 WIP
|
||||
// ImPlot v0.7 WIP
|
||||
|
||||
// You may use this file to debug, understand or extend ImPlot features but we
|
||||
// don't provide any guarantee of forward compatibility!
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
// ImPlot v0.6 WIP
|
||||
// ImPlot v0.7 WIP
|
||||
|
||||
#include "implot.h"
|
||||
#include "implot_internal.h"
|
||||
|
||||
Reference in New Issue
Block a user