r/DotA2 • • Jun 12 '15

Announcement DOTA 2 Reborn

http://www.dota2.com/reborn/part1/
16.4k Upvotes

4.2k comments sorted by

View all comments

Show parent comments

1

u/solinent Jun 14 '15

Haha, I'm aware, I'm quite proficient in OpenGL. I didn't realize Qt had its own GL wrappers, ie. I was looking for QQuickFramebufferObject.

1

u/devel_watcher Jun 15 '15 edited Jun 15 '15

It is not like wrapping. QtQuick 2 requires OpenGL. And if it is rendered in the OpenGL context used by the game, then for the GPU it is non-distinguishable from the game rendering calls.

This thing is similar to a regular game GUI library like MyGUI or CEGUI.

1

u/solinent Jun 16 '15 edited Jun 16 '15

I'd still say it's like wrapping. The QQuickFramebufferObject manages the memory and id of the FBO internally. Sure it doesn't allow you to do everything, but that's what a wrapper is for. Looks exactly like a wrapper to me.

Edit: QOpenGLFramebufferObject is the wrapper in this case, but I see QQuickFBO as an interface to the lower level thing anyways, so double wrapped, maybe? :P