mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:22:46 +00:00 
			
		
		
		
	 0836912a6d
			
		
	
	
		0836912a6d
		
	
	
	
	
		
			
			This commit implements glClipPlane and its supporting calls, backed by new support for user-defined clip planes in the software GPU clipper. This fixes some visual bugs seen in the Quake III port, in which mirrors would only reflect correctly from close distances.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			400 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			400 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/String.h>
 | |
| 
 | |
| namespace GPU {
 | |
| 
 | |
| struct DeviceInfo final {
 | |
|     String vendor_name;
 | |
|     String device_name;
 | |
|     unsigned num_texture_units;
 | |
|     unsigned num_lights;
 | |
|     unsigned max_clip_planes;
 | |
|     u8 stencil_bits;
 | |
|     bool supports_npot_textures;
 | |
| };
 | |
| 
 | |
| }
 |