GouraudQuad
GouraudQuad x1, y1, rgb1, x2, y2, rgb2, x3, y3, rgb3, x4, y4, rgb4
 
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
    x3 = X coordinate of point 3
    y3 = Y coordinate of point 3
    rgb3 = The RGB colour of point 3
    x4 = X coordinate of point 4
    y4 = Y coordinate of point 4
    rgb4 = The RGB colour of point 4
Returns: NONE
 

      GouraudQuad draws a gouraud shaded quad (4 sided polygon) to the current surface.



FACTS:


      * Note: GouraudQuad only supports convex poylgons

      * GouraudQuad 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 gouraud shaded filled triangle and quad 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: GouraudStripH | GouraudStripV | GouraudTri | Quad | QuadC | ShadeBox | TextureQuad | TextureStripH | TextureStripV | TextureTri | Tri | TriC :
 


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