Re: [Opengc-devel] Issues loading texture
Status: Pre-Alpha
Brought to you by:
madmartigan
From: Stein,Jeffrey L. <js...@mi...> - 2003-10-28 15:37:13
|
As far as I can tell this fix did not solve the problem. I updated the ogcAppObject code with the change you suggested. We still have the same problem where when instantiated in the constructor the texture will not draw, where as when instantiated in the render loop it will draw. I tested on both windows and linux to no avail. Do you have any other ideas? -Jeff Damion Shelton wrote: > Hi, > > It's possible that because of the way in which FLTK does things that > the OpenGL device context was not correctly initialized while the > gauges were being loaded. I modified the AppObject class to force a > display redraw prior to loading the gauges; assuming your code was > working fine in the render loop, this is the only event that was NOT > occurring prior to the gauges being loaded. Grab a CVS update and let > me know if this fixed your problem. > > -Damion- > > On Wednesday, October 22, 2003, at 10:53 PM, Stein,Jeffrey L. wrote: > >> The following has been tested on both a linux build and a windows >> visual c++ build of open glass cockpit. >> In trying to load a texture in a gauge constructor the texture is >> never displayed. However if the texture is loaded in the gauges >> render loop it displays fine. We suspect that openGL is not >> correctly initialized to the point that it is able to hold textures >> during the time that gauges are constructed. Does anybody have any >> information on this? >> >> -Jeff > > > --------- > Damion Shelton > The Open Source Glass Cockpit Project (OpenGC) > Carnegie Mellon University, Robotics Institute > http://www.opengc.org > da...@op... > > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer relations > Here's your chance to show off your extensive product knowledge > We want to know what you know. Tell us and you have a chance to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > Opengc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opengc-devel |