Rendering issue C#
-
I am drawing a custom graph in c# openGL. When I load the program the the Y axis lables draws (it is draw as txt) but everything else, the box representing the bars on the graph and the axis dont draw until you resize the window normally going from full screen down to a smaller window then the graph draws properly. Does anyone have any ideas why this might be or have had a similar problem. thanks.
-
I am drawing a custom graph in c# openGL. When I load the program the the Y axis lables draws (it is draw as txt) but everything else, the box representing the bars on the graph and the axis dont draw until you resize the window normally going from full screen down to a smaller window then the graph draws properly. Does anyone have any ideas why this might be or have had a similar problem. thanks.
I'm not an expert on OpenGL, but usually when something dosn't work untill the form/window is resized it might be a problem with initializing all the variables. For starters you can try calling the OnSize event hendler manually when the window is first shown. If this makes things better you can have a look at what's happening inside the method and find the missing initialization.