Skip to main content

SharedWebGLContext

                            
                              
                                class 
                                SharedWebGLContext
                              
                              

Constructors

constructor

                            
                              
                                public 
                                new
                                SharedWebGLContext
                                
                                  
                                    
                                      logger
                                      : 
                                      Logger
                                    
                                  
                                
                                : 
                                SharedWebGLContext
                              
                              

Parameters

Methods

borrow

                            
                              
                                public 
                                borrow
                                
                                  
                                    
                                      owner
                                      : 
                                      WebGLContextOwner
                                    
                                  
                                
                                : 
                                WebGL2RenderingContext
                              
                              

Parameters

  • owner : WebGLContextOwner

dispose

                            
                              
                                public 
                                dispose
                                (): 
                                void
                              
                              

Dispose the WebGL context to free up resources.


getProgram

                            
                              
                                public 
                                getProgram
                                
                                  
                                    
                                      fragment
                                      : 
                                      string
                                    
                                    
                                      vertex
                                      : 
                                      string
                                    
                                  
                                
                                : 
                                
                                  
                                    
                                      null
                                    
                                    
                                      WebGLProgram
                                    
                                  
                                
                              
                              

Parameters