octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #8943] object class "light" for lighting e


From: Dan Sebald
Subject: [Octave-patch-tracker] [patch #8943] object class "light" for lighting effects on patches and surfaces
Date: Tue, 2 Aug 2016 21:49:40 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #35, patch #8943 (project octave):

I think this may have introduced an FLTK bug by calling an OpenGL routine
outside of an instantiated Fl_Gl_Window.  See here:

https://savannah.gnu.org/bugs/index.php?48669#comment10

I'm not sure how C++ orders initialization of something like


OpenGL_fltk (int xx, int yy, int ww, int hh, double num)
    : Fl_Gl_Window (xx, yy, ww, hh, 0), number (num), renderer (),
      in_zoom (false), zoom_box ()


but maybe if renderer() is moved inside of the constructor function it would
work.

I have another unrelated question.  Initialization of num_lights was removed
from before the loop, i.e.,:


-  // Start with the last element of the array of child objects to
-  // display them in the order they were added to the array.
-
-  num_lights = 0;


but it is still incremented somewhere within the loop.  How does one know that
the member variable num_lights has been initialized?  Or is the idea simply to
push num_lights as high as possible?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8943>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]