Add ImColor helper. Increase flexibility of the color API
In most of the places it's now possible to provide a simple int value, instead of float numbers.
This commit is contained in:
1 parent
71e7265858
commit
8ac87a9606
4 files changed
+88
-9
No files matched your search
@@ -602,7 +602,15 @@ public final class ImGuiStyle implements ImGuiDestroyableStruct {
|
||||
*/
|
||||
|
||||
public native void setColor(int imGuiCol, float r, float g, float b, float a); /*
|
||||
IMGUI_STYLE->Colors[imGuiCol] = ImVec4(r, g, b, a);
|
||||
IMGUI_STYLE->Colors[imGuiCol] = ImColor(r, g, b, a);
|
||||
*/
|
||||
|
||||
public native void setColor(int imGuiCol, int r, int g, int b, int a); /*
|
||||
IMGUI_STYLE->Colors[imGuiCol] = ImColor(r, g, b, a);
|
||||
*/
|
||||
|
||||
public native void setColor(int imGuiCol, int col); /*
|
||||
IMGUI_STYLE->Colors[imGuiCol] = ImColor(col);
|
||||
*/
|
||||
|
||||
public native void scaleAllSizes(float scaleFactor); /*
|
||||
|
||||
Reference in new issue
Block a user