mirror of
https://github.com/gwm17/implot.git
synced 2024-11-23 02:38:53 -05:00
increment version, add GetMarkerName
This commit is contained in:
parent
0877aca4f9
commit
bb2ff2aea7
19
implot.cpp
19
implot.cpp
|
@ -20,7 +20,7 @@
|
||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
// ImPlot v0.6 WIP
|
// ImPlot v0.7 WIP
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
@ -156,6 +156,23 @@ const char* GetStyleColorName(ImPlotCol col) {
|
||||||
return col_names[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 GetAutoColor(ImPlotCol idx) {
|
||||||
ImVec4 col(0,0,0,1);
|
ImVec4 col(0,0,0,1);
|
||||||
switch(idx) {
|
switch(idx) {
|
||||||
|
|
6
implot.h
6
implot.h
|
@ -20,7 +20,7 @@
|
||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
// ImPlot v0.6 WIP
|
// ImPlot v0.7 WIP
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "imgui.h"
|
#include "imgui.h"
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
// ImPlot version string
|
// ImPlot version string
|
||||||
#define IMPLOT_VERSION "0.6 WIP"
|
#define IMPLOT_VERSION "0.7 WIP"
|
||||||
// Indicates variable should deduced automatically.
|
// Indicates variable should deduced automatically.
|
||||||
#define IMPLOT_AUTO -1
|
#define IMPLOT_AUTO -1
|
||||||
// Special color used to indicate that a color should be deduced automatically.
|
// 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.
|
// Returns the null terminated string name for an ImPlotCol.
|
||||||
const char* GetStyleColorName(ImPlotCol color);
|
const char* GetStyleColorName(ImPlotCol color);
|
||||||
|
// Returns the null terminated string name for an ImPlotMarker.
|
||||||
|
const char* GetMarkerName(ImPlotMarker marker);
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Colormaps
|
// Colormaps
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
// ImPlot v0.6 WIP
|
// ImPlot v0.7 WIP
|
||||||
|
|
||||||
#include "implot.h"
|
#include "implot.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
// ImPlot v0.6 WIP
|
// ImPlot v0.7 WIP
|
||||||
|
|
||||||
// You may use this file to debug, understand or extend ImPlot features but we
|
// You may use this file to debug, understand or extend ImPlot features but we
|
||||||
// don't provide any guarantee of forward compatibility!
|
// don't provide any guarantee of forward compatibility!
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
// ImPlot v0.6 WIP
|
// ImPlot v0.7 WIP
|
||||||
|
|
||||||
#include "implot.h"
|
#include "implot.h"
|
||||||
#include "implot_internal.h"
|
#include "implot_internal.h"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user