mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:42:44 +00:00 
			
		
		
		
	 4807d32139
			
		
	
	
		4807d32139
		
	
	
	
	
		
			
			This currently (obviously) doesn't support any actual 3D hardware, hence all calls are done via software rendering. Note that any modern constructs such as shaders are unsupported, as this driver only implements Fixed Function Pipeline functionality. The library is split into a base GLContext interface and a software based renderer implementation of said interface. The global glXXX functions serve as an OpenGL compatible c-style interface to the currently bound context instance. Co-authored-by: Stephan Unverwerth <s.unverwerth@gmx.de>
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			433 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			433 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "GL/gl.h"
 | |
| 
 | |
| namespace GL {
 | |
| 
 | |
| struct GLColor {
 | |
|     GLclampf r, g, b, a;
 | |
| };
 | |
| 
 | |
| struct GLVertex {
 | |
|     GLfloat x, y, z, w;
 | |
|     GLfloat r, g, b, a;
 | |
|     GLfloat u, v;
 | |
| };
 | |
| 
 | |
| struct GLTriangle {
 | |
|     GLVertex vertices[3];
 | |
| };
 | |
| 
 | |
| struct GLEdge {
 | |
|     GLfloat x1;
 | |
|     GLfloat y1;
 | |
|     GLfloat x2;
 | |
|     GLfloat y2;
 | |
| };
 | |
| 
 | |
| }
 |