Page MenuHome

OpenGL: updated keyframes_draw.c to new immediate mode
AbandonedPublic

Authored by Darwin Yip (darwin) on Nov 21 2016, 5:24 AM.

Details

Summary

Just as mentioned at the title.

T49043

Diff Detail

Repository
rB Blender

Event Timeline

Darwin Yip (darwin) retitled this revision from to OpenGL: updated keyframes_draw.c to new immediate mode.
Darwin Yip (darwin) updated this object.
Darwin Yip (darwin) set the repository for this revision to rB Blender.
Darwin Yip (darwin) updated this object.
source/blender/editors/animation/keyframes_draw.c
485–519

All this display list code should go away. That's an obsolete OpenGL feature.

568–569

Can shorten each of these lines:
immUniformThemeColor(sel ? TH_KEYTYPE_EXTREME_SELECT : TH_KEYTYPE_EXTREME);

594

delete, keep same program bound

597–599

delete

608–610

delete

615

delete

621

delete (old OpenGL feature)

630

Move this to after this "if" block, near the end of the function.

632

delete

680

bind a shader for drawing

689

Can shorten these: immUniformColor4fv(ab->sel ? sel_mhcol : unsel_mhcol);

Addressed issues.

@Mike Erwin (merwin) Could you take a look of this review?

I'm working in adding palettes to dope sheet for 2.8 and I'm having problems with glLists, and this patch fix this problem.

@Dalai Felinto (dfelinto),@Antonio Vazquez (antoniov) No, it's not ready. I'm investigating ways to do this right.

To update this patch from my end, can I just "arc patch", make changes, then "arc diff"?

@Mike Erwin (merwin) you’ll have to commandeer the revision first (in phabbricator web interface). :)

This work made it into blender2.8 as part of a larger keyframe drawing overhaul. Thanks!