Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_widgets.c
| Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Lines | |||||
| /** \} */ | /** \} */ | ||||
| /* **************** Batch creations ****************** */ | /* **************** Batch creations ****************** */ | ||||
| /** | /** | ||||
| * In order to speed up UI drawing we create some batches that are then | * In order to speed up UI drawing we create some batches that are then | ||||
| * modified by specialized shaders to draw certain elements really fast. | * modified by specialized shaders to draw certain elements really fast. | ||||
| * TODO: find a better place. Maybe it's own file? | * TODO: find a better place. Maybe it's own file? | ||||
| **/ | */ | ||||
| /* offset in triavec[] in shader per type */ | /* offset in triavec[] in shader per type */ | ||||
| static const int tria_ofs[ROUNDBOX_TRIA_MAX] = { | static const int tria_ofs[ROUNDBOX_TRIA_MAX] = { | ||||
| [ROUNDBOX_TRIA_NONE] = 0, | [ROUNDBOX_TRIA_NONE] = 0, | ||||
| [ROUNDBOX_TRIA_ARROWS] = 0, | [ROUNDBOX_TRIA_ARROWS] = 0, | ||||
| [ROUNDBOX_TRIA_SCROLL] = 12, | [ROUNDBOX_TRIA_SCROLL] = 12, | ||||
| [ROUNDBOX_TRIA_MENU] = 28, | [ROUNDBOX_TRIA_MENU] = 28, | ||||
| [ROUNDBOX_TRIA_CHECK] = 34, | [ROUNDBOX_TRIA_CHECK] = 34, | ||||
| ▲ Show 20 Lines • Show All 4,582 Lines • Show Last 20 Lines | |||||