Custom drawing in OpenGL

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
JonM
Newbie
Newbie
Posts: 23
Joined: Tue Sep 14, 2004 4:00 am
Location: UK

Custom drawing in OpenGL

Post by JonM » Mon Jan 14, 2013 4:48 pm

I currently have a 3D point series chart which has a custom bit of drawing on it under a AfterDraw event. This custom drawing is not part of the 3D and is static as the chart is rotated in 3D.

I want to update the chart to use OpenGL. I have initiated the OpenGl and it works fine except for the custom drawing which is now part of the 3D chart and rotates as the chart is rotated. The Z value of the custom drawing is set to 0. The actual drawing code does not use a ‘Z’ axis.

How do I make the custom drawing not to be part of the 3D surface while using OpenGL ?

I am using TChart 8 VCL.

Thanks
Frank

JonM
Newbie
Newbie
Posts: 23
Joined: Tue Sep 14, 2004 4:00 am
Location: UK

Re: Custom drawing in OpenGL

Post by JonM » Tue Jan 15, 2013 2:01 pm

I have found a solution to the problem. Using 'DisableRotation' before doing the drawing fixes it.
Frank

Post Reply