@ -64,7 +64,7 @@ static VertexData LoadOBJ(const char *fileName);  
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																/ /  Draw  cube  
																 
																 
																/ /  Draw  cube  
															
														 
														
													
														
															
																 
																 
																/ /  NOTE :  Cube  position  is  the  center  position  
																 
																 
																/ /  NOTE :  Cube  position  is  the  center  position  
															
														 
														
													
														
															
																 
																 
																void  DrawCube ( Vector3  position ,  float  width ,  float  height ,  float  lengh t ,  Color  color )  
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																void  DrawCube ( Vector3  position ,  float  width ,  float  height ,  float  length  ,  Color  color )  
															
														 
														
													
														
															
																 
																 
																{  
																 
																 
																{  
															
														 
														
													
														
															
																 
																 
																    float  x  =  0.0f ;   
																 
																 
																    float  x  =  0.0f ;   
															
														 
														
													
														
															
																 
																 
																    float  y  =  0.0f ;   
																 
																 
																    float  y  =  0.0f ;   
															
														 
														
													
												
													
														
															
																
																	
																	
																	
																		
																			 
																		 
																	
																 
																@ -81,58 +81,58 @@ void DrawCube(Vector3 position, float width, float height, float lenght, Color c  
															
														 
														
													
														
															
																 
																 
																            rlColor4ub ( color . r ,  color . g ,  color . b ,  color . a ) ;   
																 
																 
																            rlColor4ub ( color . r ,  color . g ,  color . b ,  color . a ) ;   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Front  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
																 
																 
																            / /  Front  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Back  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
																 
																 
																            / /  Back  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Top  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
																 
																 
																            / /  Top  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Bottom  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
																 
																 
																            / /  Bottom  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Top  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Right  face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
																 
																 
																            / /  Right  face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Left  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
																 
																 
																            / /  Left  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Right   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																        rlEnd ( ) ;   
																 
																 
																        rlEnd ( ) ;   
															
														 
														
													
														
															
																 
																 
																    rlPopMatrix ( ) ;   
																 
																 
																    rlPopMatrix ( ) ;   
															
														 
														
													
														
															
																 
																 
																}  
																 
																 
																}  
															
														 
														
													
												
													
														
															
																
																	
																	
																	
																		
																			 
																		 
																	
																 
																@ -144,7 +144,7 @@ void DrawCubeV(Vector3 position, Vector3 size, Color color)  
															
														 
														
													
														
															
																 
																 
																}  
																 
																 
																}  
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																/ /  Draw  cube  wires  
																 
																 
																/ /  Draw  cube  wires  
															
														 
														
													
														
															
																 
																 
																void  DrawCubeWires ( Vector3  position ,  float  width ,  float  height ,  float  lengh t ,  Color  color )  
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																void  DrawCubeWires ( Vector3  position ,  float  width ,  float  height ,  float  length  ,  Color  color )  
															
														 
														
													
														
															
																 
																 
																{  
																 
																 
																{  
															
														 
														
													
														
															
																 
																 
																    float  x  =  0.0f ;   
																 
																 
																    float  x  =  0.0f ;   
															
														 
														
													
														
															
																 
																 
																    float  y  =  0.0f ;   
																 
																 
																    float  y  =  0.0f ;   
															
														 
														
													
												
													
														
															
																
																	
																	
																	
																		
																			 
																		 
																	
																 
																@ -160,62 +160,62 @@ void DrawCubeWires(Vector3 position, float width, float height, float lenght, Co  
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Front  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
																 
																 
																            / /  Front  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
															
														 
														
													
														
															
																 
																 
																            / /  Bottom  Line   
																 
																 
																            / /  Bottom  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Left  Line   
																 
																 
																            / /  Left  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Right   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Top  Line   
																 
																 
																            / /  Top  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Right  Line   
																 
																 
																            / /  Right  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Back  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
																 
																 
																            / /  Back  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
															
														 
														
													
														
															
																 
																 
																            / /  Bottom  Line   
																 
																 
																            / /  Bottom  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Left  Line   
																 
																 
																            / /  Left  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Right   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Top  Line   
																 
																 
																            / /  Top  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Right   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Right  Line   
																 
																 
																            / /  Right  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Left   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Left   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Left   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Top  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
																 
																 
																            / /  Top  Face  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
															
														 
														
													
														
															
																 
																 
																            / /  Left  Line   
																 
																 
																            / /  Left  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left  Front   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left  Back   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left  Front   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Left  Back   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Right  Line   
																 
																 
																            / /  Right  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Right  Front   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right  Back   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Right  Front   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Right  Back   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Bottom  Face   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
																 
																 
																            / /  Bottom  Face   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
															
														 
														
													
														
															
																 
																 
																            / /  Left  Line   
																 
																 
																            / /  Left  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left  Front   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left  Back   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Top  Left  Front   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Top  Left  Back   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																            / /  Right  Line   
																 
																 
																            / /  Right  Line   
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Right  Front   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right  Back   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Top  Right  Front   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Top  Right  Back   
															
														 
														
													
														
															
																 
																 
																        rlEnd ( ) ;   
																 
																 
																        rlEnd ( ) ;   
															
														 
														
													
														
															
																 
																 
																    rlPopMatrix ( ) ;   
																 
																 
																    rlPopMatrix ( ) ;   
															
														 
														
													
														
															
																 
																 
																}  
																 
																 
																}  
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																/ /  Draw  cube  
																 
																 
																/ /  Draw  cube  
															
														 
														
													
														
															
																 
																 
																/ /  NOTE :  Cube  position  is  the  center  position  
																 
																 
																/ /  NOTE :  Cube  position  is  the  center  position  
															
														 
														
													
														
															
																 
																 
																void  DrawCubeTexture ( Texture2D  texture ,  Vector3  position ,  float  width ,  float  height ,  float  lengh t ,  Color  color )  
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																void  DrawCubeTexture ( Texture2D  texture ,  Vector3  position ,  float  width ,  float  height ,  float  length  ,  Color  color )  
															
														 
														
													
														
															
																 
																 
																{  
																 
																 
																{  
															
														 
														
													
														
															
																 
																 
																    float  x  =  position . x ;   
																 
																 
																    float  x  =  position . x ;   
															
														 
														
													
														
															
																 
																 
																    float  y  =  position . y ;   
																 
																 
																    float  y  =  position . y ;   
															
														 
														
													
												
													
														
															
																
																	
																	
																	
																		
																			 
																		 
																	
																 
																@ -233,40 +233,40 @@ void DrawCubeTexture(Texture2D texture, Vector3 position, float width, float hei  
															
														 
														
													
														
															
																 
																 
																            rlColor4ub ( color . r ,  color . g ,  color . b ,  color . a ) ;   
																 
																 
																            rlColor4ub ( color . r ,  color . g ,  color . b ,  color . a ) ;   
															
														 
														
													
														
															
																 
																 
																            / /  Front  Face   
																 
																 
																            / /  Front  Face   
															
														 
														
													
														
															
																 
																 
																            rlNormal3f ( 0.0f ,  0.0f ,  1.0f ) ;                   / /  Normal  Pointing  Towards  Viewer   
																 
																 
																            rlNormal3f ( 0.0f ,  0.0f ,  1.0f ) ;                   / /  Normal  Pointing  Towards  Viewer   
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																            / /  Back  Face   
																 
																 
																            / /  Back  Face   
															
														 
														
													
														
															
																 
																 
																            rlNormal3f (  0.0f ,  0.0f , - 1.0f ) ;                   / /  Normal  Pointing  Away  From  Viewer   
																 
																 
																            rlNormal3f (  0.0f ,  0.0f , - 1.0f ) ;                   / /  Normal  Pointing  Away  From  Viewer   
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																            / /  Top  Face   
																 
																 
																            / /  Top  Face   
															
														 
														
													
														
															
																 
																 
																            rlNormal3f (  0.0f ,  1.0f ,  0.0f ) ;                   / /  Normal  Pointing  Up   
																 
																 
																            rlNormal3f (  0.0f ,  1.0f ,  0.0f ) ;                   / /  Normal  Pointing  Up   
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																            / /  Bottom  Face   
																 
																 
																            / /  Bottom  Face   
															
														 
														
													
														
															
																 
																 
																            rlNormal3f (  0.0f , - 1.0f ,  0.0f ) ;                   / /  Normal  Pointing  Down   
																 
																 
																            rlNormal3f (  0.0f , - 1.0f ,  0.0f ) ;                   / /  Normal  Pointing  Down   
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																            / /  Right  face   
																 
																 
																            / /  Right  face   
															
														 
														
													
														
															
																 
																 
																            rlNormal3f (  1.0f ,  0.0f ,  0.0f ) ;                   / /  Normal  Pointing  Right   
																 
																 
																            rlNormal3f (  1.0f ,  0.0f ,  0.0f ) ;                   / /  Normal  Pointing  Right   
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x + width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x + width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																            / /  Left  Face   
																 
																 
																            / /  Left  Face   
															
														 
														
													
														
															
																 
																 
																            rlNormal3f ( - 1.0f ,  0.0f ,  0.0f ) ;                   / /  Normal  Pointing  Left   
																 
																 
																            rlNormal3f ( - 1.0f ,  0.0f ,  0.0f ) ;                   / /  Normal  Pointing  Left   
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - lengh t / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + lengh t / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + lengh t / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - lengh t / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z - length  / 2 ) ;   / /  Bottom  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  0.0f ) ;  rlVertex3f ( x - width / 2 ,  y - height / 2 ,  z + length  / 2 ) ;   / /  Bottom  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 1.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z + length  / 2 ) ;   / /  Top  Right  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																            rlTexCoord2f ( 0.0f ,  1.0f ) ;  rlVertex3f ( x - width / 2 ,  y + height / 2 ,  z - length  / 2 ) ;   / /  Top  Left  Of  The  Texture  and  Quad   
															
														 
														
													
														
															
																 
																 
																        rlEnd ( ) ;   
																 
																 
																        rlEnd ( ) ;   
															
														 
														
													
														
															
																 
																 
																    / / rlPopMatrix ( ) ;   
																 
																 
																    / / rlPopMatrix ( ) ;   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
												
													
														
															
																
																	
																		
																			 
																		 
																	
																	
																		
																			 
																		 
																	
																	
																 
																@ -534,12 +534,12 @@ void DrawGrid(int slices, float spacing)  
															
														 
														
													
														
															
																 
																 
																void  DrawGizmo ( Vector3  position )  
																 
																 
																void  DrawGizmo ( Vector3  position )  
															
														 
														
													
														
															
																 
																 
																{  
																 
																 
																{  
															
														 
														
													
														
															
																 
																 
																    / /  NOTE :  RGB  =  XYZ   
																 
																 
																    / /  NOTE :  RGB  =  XYZ   
															
														 
														
													
														
															
																 
																 
																    float  lengh t  =  1.0f ;   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																    float  length   =  1.0f ;   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																    rlPushMatrix ( ) ;   
																 
																 
																    rlPushMatrix ( ) ;   
															
														 
														
													
														
															
																 
																 
																        rlTranslatef ( position . x ,  position . y ,  position . z ) ;   
																 
																 
																        rlTranslatef ( position . x ,  position . y ,  position . z ) ;   
															
														 
														
													
														
															
																 
																 
																        / / rlRotatef ( rotation ,  0 ,  1 ,  0 ) ;   
																 
																 
																        / / rlRotatef ( rotation ,  0 ,  1 ,  0 ) ;   
															
														 
														
													
														
															
																 
																 
																        rlScalef ( lengh t ,  lengh t ,  lengh t ) ;   
																 
																 
																 
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																        rlScalef ( length  ,  length  ,  length  ) ;   
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																        rlBegin ( RL_LINES ) ;   
																 
																 
																        rlBegin ( RL_LINES ) ;   
															
														 
														
													
														
															
																 
																 
																            rlColor3f ( 1.0f ,  0.0f ,  0.0f ) ;  rlVertex3f ( 0.0f ,  0.0f ,  0.0f ) ;   
																 
																 
																            rlColor3f ( 1.0f ,  0.0f ,  0.0f ) ;  rlVertex3f ( 0.0f ,  0.0f ,  0.0f ) ;   
															
														 
														
													
												
													
														
															
																
																	
																		
																			 
																		 
																	
																	
																		
																			 
																		 
																	
																	
																 
																@ -1164,6 +1164,13 @@ void DrawModelWires(Model model, Vector3 position, float scale, Color color)  
															
														 
														
													
														
															
																 
																 
																    rlglDrawModel ( model ,  position ,  0.0f ,  rotationAxis ,  vScale ,  color ,  true ) ;   
																 
																 
																    rlglDrawModel ( model ,  position ,  0.0f ,  rotationAxis ,  vScale ,  color ,  true ) ;   
															
														 
														
													
														
															
																 
																 
																}  
																 
																 
																}  
															
														 
														
													
														
															
																 
																 
																
  
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																/ /  Draw  a  model  wires  ( with  texture  if  set )  with  extended  parameters  
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																void  DrawModelWiresEx ( Model  model ,  Vector3  position ,  float  rotationAngle ,  Vector3  rotationAxis ,  Vector3  scale ,  Color  tint )  
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																{  
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																    / /  NOTE :  Rotation  must  be  provided  in  degrees ,  it ' s  converted  to  radians  inside  rlglDrawModel ( )   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																    rlglDrawModel ( model ,  position ,  rotationAngle ,  rotationAxis ,  scale ,  tint ,  true ) ;   
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																}  
															
														 
														
													
														
															
																 
																 
																 
																 
																 
																
  
															
														 
														
													
														
															
																 
																 
																/ /  Draw  a  billboard  
																 
																 
																/ /  Draw  a  billboard  
															
														 
														
													
														
															
																 
																 
																void  DrawBillboard ( Camera  camera ,  Texture2D  texture ,  Vector3  center ,  float  size ,  Color  tint )  
																 
																 
																void  DrawBillboard ( Camera  camera ,  Texture2D  texture ,  Vector3  center ,  float  size ,  Color  tint )  
															
														 
														
													
														
															
																 
																 
																{  
																 
																 
																{