Originally Posted by
michalis
I even thought about doing descendants like TMatrix4_single_GL that have methods like glLoadMatrix with implementation like
[pascal]
procedure TMatrix4_single_GL.glLoadMatrix;
begin
GL.glLoadMatrix(@transpose.data);
end;
[/pascal]
... but this will not be so nice, since you will have to override some operators again for new TMatrix4_single_GL class, and if you receive your matrix instance from some non-OpenGL-related unit then it will still have normal TMatrix4_single class, not TMatrix4_single_GL.
Bookmarks