GouraudTri
GouraudTri x1, y1, rgb1, x2, y2, rgb2, y3, y3, rgb3
 
Parameters:

    x1 = X coordinate of point 1
    y1 = Y coordinate of point 1
    rgb1 = The RGB colour of point 1
    x2 = X coordinate of point 2
    y2 = Y coordinate of point 2
    rgb2 = The RGB colour of point 2
    y3 = X coordinate of point 3
    y3 = Y coordinate of point 3
    rgb3 = The RGB colour of point 3
Returns: NONE
 

      GouraudTri draws a gouraud shaded (filled) triangle to the current surface.




FACTS:


      * GouraudTri will render to the current surface, except when the user has either CaptureToScene, or CaptureToWorld activated. In either situation the drawing request will be added to the scene or world queues.






Mini Tutorial:


      This example draws a single gouraud shaded filled triangle to the screen.

  
  
; Draw a Gouraud Shaded triangle to the screen
  GouraudTri 100,100,RGB(0,255,0),300,150,RGB(255,255,0),200,200,RGB(255,0,255)
  
  
; Draw a Gouraud Shaded Quad to the screen
  GouraudQuad 150,250,RGB(0,255,0),300,350,RGB(255,255,0),200,400,RGB(255,0,255),100,350,RGB(255,0,0)
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  
  




 
Related Info: GouraudQuad | GouraudStripH | GouraudStripV | Quad | QuadC | TextureQuad | TextureStripH | TextureStripV | TextureTri | Tri | TriC :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com