forked from go/golangs_learn
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							229 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							16 lines
						
					
					
						
							229 B
						
					
					
				
								// SPDX-License-Identifier: Unlicense OR MIT
							 | 
						|
								
							 | 
						|
								package main
							 | 
						|
								
							 | 
						|
								import (
							 | 
						|
									"gioui.org/app"
							 | 
						|
								)
							 | 
						|
								
							 | 
						|
								/*
							 | 
						|
								#include <EGL/egl.h>
							 | 
						|
								*/
							 | 
						|
								import "C"
							 | 
						|
								
							 | 
						|
								func nativeViewFor(e app.ViewEvent) C.EGLNativeWindowType {
							 | 
						|
									return C.EGLNativeWindowType(e.Layer)
							 | 
						|
								}
							 | 
						|
								
							 |