Actual source code: dpoint.c
1: /*$Id: dpoint.c,v 1.31 2001/03/23 23:20:08 balay Exp $*/
2: /*
3: Provides the calling sequences for all the basic PetscDraw routines.
4: */
5: #include src/sys/src/draw/drawimpl.h
7: #undef __FUNCT__
9: /*@
10: PetscDrawPoint - PetscDraws a point onto a drawable.
12: Not collective
14: Input Parameters:
15: + draw - the drawing context
16: . xl,yl - the coordinates of the point
17: - cl - the color of the point
19: Level: beginner
21: Concepts: point^drawing
22: Concepts: drawing^point
24: .seealso: PetscDrawPointSetSize()
26: @*/
27: int PetscDrawPoint(PetscDraw draw,PetscReal xl,PetscReal yl,int cl)
28: {
29: int ierr;
30: PetscTruth isnull;
34: PetscTypeCompare((PetscObject)draw,PETSC_DRAW_NULL,&isnull);
35: if (isnull) return(0);
36: (*draw->ops->point)(draw,xl,yl,cl);
37: return(0);
38: }