Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/UI_interface.h
| Context not available. | |||||
| * Functions to draw various shapes, taking theme settings into account. | * Functions to draw various shapes, taking theme settings into account. | ||||
| * Used for code that draws its own UI style elements. */ | * Used for code that draws its own UI style elements. */ | ||||
| void UI_draw_roundbox(float minx, float miny, float maxx, float maxy, float rad); | void UI_draw_roundbox(float minx, float miny, float maxx, float maxy, float rad, float color[]); | ||||
merwin: ```lang=c
const float color[4]
```
It's always RGBA and drawing does not change the values. | |||||
merwinUnsubmitted Not Done Inline Actionsfloat color[4] with no const. I have a feeling this code will be redone later, so it doesn't need to be const-perfect. More important to get rid of legacy OpenGL calls! merwin: float color[**4**] with no const.
I have a feeling this code will be redone later, so it… | |||||
| void UI_draw_roundbox_corner_set(int type); | void UI_draw_roundbox_corner_set(int type); | ||||
| int UI_draw_roundbox_corner_get(void); | int UI_draw_roundbox_corner_get(void); | ||||
| void UI_draw_roundbox_unfilled(float minx, float miny, float maxx, float maxy, float rad); | void UI_draw_roundbox_unfilled(float minx, float miny, float maxx, float maxy, float rad); | ||||
| Context not available. | |||||
It's always RGBA and drawing does not change the values.
Hmm... seems drawing might change alpha value depending on use_alpha. We can figure this out now or commit & do it better later. (I vote to commit soon & improve later).