Page MenuHome

console_draw.c opengl update
ClosedPublic

Authored by Martijn Berger (juicyfruit) on Oct 6 2016, 7:21 PM.

Diff Detail

Event Timeline

Fable Fox (fablefox) retitled this revision from to console_draw.c opengl update.
Fable Fox (fablefox) updated this object.
Fable Fox (fablefox) set the repository for this revision to rB Blender.

You will need to replace glRecti which is where the "fun" begins (you will need to bind a program, pass a vertex format, ...).

Also @Fable Fox (fablefox) please edit the wiki to claim this file for you: https://wiki.blender.org/index.php/Dev:2.8/Source/OpenGL/Immediate_Mode_Replacement_Tasks

I have to leave this OpenGL replacement job as-is due to work and also I'm taking OCA 12c exam end of this month (also related to day work). Glad to see it progress well on the task page.

Martijn Berger (juicyfruit) updated this revision to Diff 7816.
Martijn Berger (juicyfruit) removed rB Blender as the repository for this revision.

Think we could search for way to reuse the same program more. But for now this seems to be a replacement that works

source/blender/editors/space_console/console_draw.c
176

Could use the UNIFORM_COLOR shader here.

Related changes:

  • remove color attribute from format above
  • single call to immThemeColor(TH_CONSOLE_CURSOR);
Mike Erwin (merwin) edited edge metadata.
This revision is now accepted and ready to land.Nov 16 2016, 10:48 PM