how to initiate a class that requires the keyword "this" in another class
              in 
             Programming Questions 
              •  
              3 years ago    
            
 
           
             hello,
            
            
i am using the GLGraphicsOffScreen class from the glgraphics library to render to an offscreen buffer.
now i want to move all the buffer stuff to a class and call it from there.
inside my class constructor i call the constructor for GLGraphicsOffScreen like this:
"buffer = new GLGraphicsOffScreen( this, width, height );"
then i get the error:
"The constructor GLGraphicsOffScreen(sketchname.pde.ClassName, int, int) is undefined".
            
i feel like i have to replace the "this" keywoard with something else, but i don't know with what.
or must i somehow implement the GLGraphicsOffScreen Class to my class?
            
thank you
 
           
 
            
           i am using the GLGraphicsOffScreen class from the glgraphics library to render to an offscreen buffer.
now i want to move all the buffer stuff to a class and call it from there.
inside my class constructor i call the constructor for GLGraphicsOffScreen like this:
"buffer = new GLGraphicsOffScreen( this, width, height );"
then i get the error:
"The constructor GLGraphicsOffScreen(sketchname.pde.ClassName, int, int) is undefined".
i feel like i have to replace the "this" keywoard with something else, but i don't know with what.
or must i somehow implement the GLGraphicsOffScreen Class to my class?
thank you
 
              
              1  
            
 
            