[Development] Move math3d from QtGui to QtCore
gunnar.sletta at nokia.com
gunnar.sletta at nokia.com
Thu Jul 5 15:09:35 CEST 2012
On Jul 5, 2012, at 2:08 PM, ext Laszlo Papp wrote:
>> I understand it's useful for you, but other people who might use the
>> functionality said it isn't and they'd need more. That means I've got a single
>> use-case to consider (yours) and I'm not convinced that this is worth the
>> moving.
>
> Like I said, we agreed about that, you are totally against moving any
> of these things into QtCore. Right, but why are you actually blocking
> moving out of QtGui?
If we move these classes out of QtGui and into a math library and then QtGui still needs to link with that library as the classes are used there. If we then start adding more domain specific classes to this math library, then the stuff that a plain UI would drag in also increases, even though it is useful only to a subset of the applications. I do not like that.
These classes were added primarily to support graphics in Qt, like the shader programs, 3D math in relation to OpenGL, QGraphicsTransformation and Qt3D. Much of the arithmetic uses floats because it is closely related to OpenGL and our use of them. They should stay like that. For performance and for simplicity.
I'm all for creating a more comprehensive math module on the side, but I am not going to let QtGui depend on it.
cheers,
Gunnar
More information about the Development
mailing list