forked from LeenkxTeam/LNXSDK
		
	
		
			
	
	
		
			27 lines
		
	
	
		
			527 B
		
	
	
	
		
			Haxe
		
	
	
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			527 B
		
	
	
	
		
			Haxe
		
	
	
	
	
	
| 
								 | 
							
								package kha.graphics1;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import kha.Color;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * Basic graphical interface.<br>
							 | 
						||
| 
								 | 
							
								 * Represent old devices with only pixel pushing operations.
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								interface Graphics {
							 | 
						||
| 
								 | 
							
									/**
							 | 
						||
| 
								 | 
							
									 * Begin the graphic operations.
							 | 
						||
| 
								 | 
							
									 * You MUST call this.
							 | 
						||
| 
								 | 
							
									 */
							 | 
						||
| 
								 | 
							
									function begin(): Void;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									/**
							 | 
						||
| 
								 | 
							
									 * Terminate all graphical operations and apply them.
							 | 
						||
| 
								 | 
							
									 * You MUST call this at the end.
							 | 
						||
| 
								 | 
							
									 */
							 | 
						||
| 
								 | 
							
									function end(): Void;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									/**
							 | 
						||
| 
								 | 
							
									 * Set the pixel color at a specific position.
							 | 
						||
| 
								 | 
							
									 */
							 | 
						||
| 
								 | 
							
									function setPixel(x: Int, y: Int, color: Color): Void;
							 | 
						||
| 
								 | 
							
								}
							 |