graphic
graphic
Returns the video window (dimx,dimy,orx,ory).
dimx,dimy = siee.
orx,ory = origin.
graphic(dimx,dimy,orx,ory)
Redefines the video window size (dimx,dimy), top left corner is (orx,ory).
dimx and dimy are necessarily smaller than the dimensions reported to
launch the program.
OpenGL call
graphic("xxx")
back
disable
enable
front
show
swap
glBlendFunc
glPointSize
glViewport
glutAttachMenu
back
graphic("back")
graphic("glDrawBuffer(GL_BACK)")
Graphic in back buffer (useful for write image).
disable
graphic("glDisable(GL_BLEND)")
Inhibits transparencies.
graphic("glDisable(GL_FOG)")
Inhibits fogs.
graphic("glDisable(GL_LIGHTING)")
Inhibits lights.
graphic("glDisable(GL_DEPTH_TEST)")
Zbuffer OFF.
graphic("glDisable(GL_POINT_SMOOTH)")
Inhibits anti aliasing of point.
graphic("glDisable(GL_STENCIL_TEST)")
Disables stencil testing.
graphic("glDisable(GL_TEXTURE_2D)")
2D mapping textures OFF.
enable
graphic("glEnable(GL_BLEND)")
Activates ltransparencies.
graphic("glEnable(GL_FOG)")
Activates fogs.
graphic("glEnable(GL_LIGHTING)")
Activates lights.
graphic("glEnable(GL_DEPTH_TEST)")
Zbuffer ON.
graphic("glEnable(GL_POINT_SMOOTH)")
Anti aliasing of point active.
graphic("glEnable(GL_STENCIL_TEST)")
Enables stencil testing.
graphic("glEnable(GL_TEXTURE_2D)")
2D mapping textures active.
front
graphic("front")
graphic("glDrawBuffer(GL_FRONT)")
Graphic in front buffer.
show
graphic("show")
graphic("show")
Shows the current window.
swap
graphic("swap")
graphic("glutSwapBuffers()")
Swaps the buffers back and front.
glBlendFunc
graphic("glBlendFunc(GL_SNL_ALPHA)")
transparency: 0 (opaque) -> 1 (transparent).
graphic("glBlendFunc(GL_ONE_MINUS_SNL_ALPHA)")
transparency: 0 (transparent) -> 1 (opaque).
glPointSize
graphic("glPointSize")
Returns glPointSize parameter.
graphic("glPointSize(5)")
glPointSize(5.0)")
(legal values >= 1).
Equivalent to graphic(5)poi.
glViewport
graphic("glViewport(x,y,dx,dy)")
(x,y) = bottom left corner of the viewport rectangle.
(dx,dy) = width and height of the viewport rectangle.
glutAttachMenu
graphic("glutAttachMenu(GLUT_RIGHT_BUTTON)")
Attach the right mouse button to the menus.
glutDetachMenu
graphic("glutDetachMenu(GLUT_RIGHT_BUTTON)")
Detaches the right mouse button mouse from the menus.
Remarque:
cases may be added in function GRAPHIQUE_b(long *pd0) of file graphb.c
graphic fac
graphic fac
Returns the polygons antialiasing value.
graphic(g)fac
Changes this value.
graphic image
Voir image graphic.
graphic poi
graphic poi
Returns the points radius.
graphic(g)poi
Changes this radius.
graphic segment
graphic segment
Returns the segments thickness value.
graphic(g)segment
Changes this value.
graphic("ggg")mouse
Changes the image of cursor according to string "ggg" value:
"RIGHT_ARROW": arrow pointing up and right.
"LEFT_ARROW": arrow pointing up and left.
"INFO": hand.
"DESTROY": head and crossbones.
"HELP": interrogation mark.
"CYCLE": arrow rotating in a circle.
"SPRAY": spray.
"WAIT": hourglass.
"TEXT": cursor text insertion.
"CROSSHAIR": cross.
"UP_DOWN": arrow pointing up and down.
"LEFT_RIGHT": arrow pointing left and right.
"TOP_SIDE": arrow pointing side top.
"BOTTOM_SIDE": arrow pointing side lower.
"LEFT_SIDE": arrow pointing side left.
"RIGHT_SIDE": arrow pointing side right.
"TOP_LEFT_CORNER": arrow top left corner.
"TOP_RIGHT_CORNER": arrow top right corner.
"BOTTOM_RIGHT_CORNER": arrow pointing bottom right corner.
"BOTTOM_LEFT_CORNER": arrow pointing bottom left corner.
"FULL-CROSSHAIR": full crosshair.
"NONE": invisible.
graphic segment
Returns the segments thickness.
See also: