Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_draw.c
| Context not available. | |||||
| glColor4ub(UI_ALPHA_CHECKER_LIGHT, UI_ALPHA_CHECKER_LIGHT, UI_ALPHA_CHECKER_LIGHT, 255); | glColor4ub(UI_ALPHA_CHECKER_LIGHT, UI_ALPHA_CHECKER_LIGHT, UI_ALPHA_CHECKER_LIGHT, 255); | ||||
| GPU_basic_shader_stipple(GPU_SHADER_STIPPLE_CHECKER_8PX); | GPU_basic_shader_stipple(GPU_SHADER_STIPPLE_CHECKER_8PX); | ||||
| glRectf(x1, y1, x1 + sizex, rect->ymax); | glRectf(x1, y1, x1 + sizex, rect->ymax); | ||||
| GPU_basic_shader_bind(GPU_SHADER_USE_COLOR); | GPU_basic_shader_bind(GPU_SHADER_USE_COLOR | GPU_SHADER_FLAT_MODEL); | ||||
| /* layer: color ramp */ | /* layer: color ramp */ | ||||
| glShadeModel(GL_FLAT); | |||||
| glEnable(GL_BLEND); | glEnable(GL_BLEND); | ||||
| CBData *cbd = coba->data; | CBData *cbd = coba->data; | ||||
| Context not available. | |||||
| qobj = gluNewQuadric(); | qobj = gluNewQuadric(); | ||||
| gluQuadricDrawStyle(qobj, GLU_FILL); | gluQuadricDrawStyle(qobj, GLU_FILL); | ||||
| glShadeModel(GL_SMOOTH); | int bound_options = GPU_basic_shader_bound_options(); | ||||
| GPU_basic_shader_bind(bound_options); | |||||
| gluSphere(qobj, 100.0, 32, 24); | gluSphere(qobj, 100.0, 32, 24); | ||||
| glShadeModel(GL_FLAT); | bound_options = GPU_basic_shader_bound_options(); | ||||
| GPU_basic_shader_bind(bound_options | GPU_SHADER_FLAT_MODEL); | |||||
| gluDeleteQuadric(qobj); | gluDeleteQuadric(qobj); | ||||
| glEndList(); | glEndList(); | ||||
| Context not available. | |||||