Advanced Functions Igraphics
Advanced Functions Igraphics
Parameters:
key- holds the ASCII value of the key pressed.
Parameters:
key- holds the ASCII value of the key pressed.
Parameters:
button: GLUT_LEFT_BUTTON, GLUT_RIGHT_BUTTON
state: GLUT_DOWN, GLUT_UP
mx,my - coordinate of mouse pointer
Description: called when the user presses and drags the mouse.
(mx, my) is the position where the mouse pointer is. Pressing the
mouse buttons won't have any effect here.
Parameters:
mx,my - coordinate of mouse pointer
Description: is called when the user moves the mouse. (mx, my) is
the position where the mouse pointer is.
Parameters:
mx,my - coordinate of mouse pointer
int iLoadImage(char filename[])
Parameters:
filename[]: name of the file. The directory must be mentioned
unless the image is in the project directory.
Example:
If the image is in the folder called “image” which is inside the
project folder, we use: iLoadImage(“image\\samplepic.png);
Parameters:
x,y: coordinate of the point where the image will be placed
width,height: size of the image to scale
id: the integer value obtained from iLoadImage() call.
Parameters:
(x, y) - The pivot point for rotation
degree - degree of rotation
void iUnRotate()