Back to index

radiance  4R0+20100331
Functions | Variables
primout.c File Reference
#include "meta.h"

Go to the source code of this file.

Functions

void plseg (int a0, int xstart, int ystart, int xend, int yend)
void pprim (int co, int a0, int xmin, int ymin, int xmax, int ymax, char *s)
void pglob (int co, int a0, char *s)

Variables

static const char RCSid [] = "$Id: primout.c,v 1.2 2003/11/15 02:13:37 schorsch Exp $"
FILE * pout = NULL

Function Documentation

void pglob ( int  co,
int  a0,
char *  s 
)

Definition at line 86 of file primout.c.

{
    PRIMITIVE  p;
    
    p.com = co;
    p.arg0 = a0;
    p.xy[XMN] = p.xy[YMN] = p.xy[XMX] = p.xy[YMX] = -1;
    p.args = s;

    writep(&p, pout);

}

Here is the caller graph for this function:

void plseg ( int  a0,
int  xstart,
int  ystart,
int  xend,
int  yend 
)

Definition at line 18 of file primout.c.

{
    PRIMITIVE p;
    int              reverse;

    if (xstart < xend) {
       p.xy[XMN] = xstart;
       p.xy[XMX] = xend;
       reverse = FALSE;
    } else {
       p.xy[XMN] = xend;
       p.xy[XMX] = xstart;
       reverse = TRUE;
    }

    if (ystart < yend) {
       p.xy[YMN] = ystart;
        p.xy[YMX] = yend;
    } else {
       p.xy[YMN] = yend;
       p.xy[YMX] = ystart;
       reverse = ystart > yend && !reverse;
    }

    p.com = PLSEG;
    p.arg0 = (reverse << 6) | a0;
    p.args = NULL;

    writep(&p, pout);
}

Here is the caller graph for this function:

void pprim ( int  co,
int  a0,
int  xmin,
int  ymin,
int  xmax,
int  ymax,
char *  s 
)

Definition at line 58 of file primout.c.

{
    PRIMITIVE p;

    p.com = co;
    p.arg0 = a0;
    p.xy[XMN] = xmin;
    p.xy[YMN] = ymin;
    p.xy[XMX] = xmax;
    p.xy[YMX] = ymax;
    p.args = s;

    writep(&p, pout);

}

Here is the caller graph for this function:


Variable Documentation

FILE* pout = NULL

Definition at line 14 of file primout.c.

const char RCSid[] = "$Id: primout.c,v 1.2 2003/11/15 02:13:37 schorsch Exp $" [static]

Definition at line 2 of file primout.c.