Page MenuHome

blender2.8: New immediate mode for sculpt_uv.c
AbandonedPublic

Authored by Tobias Mertz (TCMBoby) on Feb 2 2017, 10:23 PM.

Details

Summary

Replaced the one call to glutil_draw_lined_arc.
This seems to be the only draw call in this file.

Diff Detail

Repository
rB Blender
Branch
arcpatch-D2497
Build Status
Buildable 427
Build 427: arc lint + arc unit

Event Timeline

Tobias Mertz (TCMBoby) retitled this revision from to blender2.8: New immediate mode for sculpt_uv.c.
Tobias Mertz (TCMBoby) updated this object.
source/blender/editors/sculpt_paint/sculpt_uv.c
66–67

Still need this after converting?

220

Could use immUniformColor3fvAlpha(brush->add_col, alpha)

224–231

We have a utility function for this:

imm_draw_lined_circle(pos, x, y, size, 40);

That would let you get rid of the "int i", glPushMatrix, glTranslatef, and glPopMatrix. Nice!

  • Replaced loop and removed unnecessary include in sculpt_uv.c

Committed on rB077988dd. Thanks for the contribution keep them coming :)