Wouldn't it be better if there were more methods inside the TImageFrame type?
If there was a "SetUVs" in there (Abstract), the D3D7 driver already has it implemented and making an implementation for OGL would be trivial.
The advantage would be that custom drawing techniques (like containing options for flipping, tiling, etc.) that need to adjust UVs wouldn't need the whole "If TGLImageFrame(frame) Then ... Else ..." and you could even get away with not including a gfx driver in the build if you don't need it, because you would avoid calling methods from derived types.
|