This file is indexed.

/usr/include/geomview/private/mgbufP.h is in libgeomview-dev 1.9.4-4.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
/* Copyright (C) 1992-1998 The Geometry Center
 * Copyright (C) 1998-2000 Stuart Levy, Tamara Munzner, Mark Phillips
 *
 * This file is part of Geomview.
 * 
 * Geomview is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 * 
 * Geomview is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with Geomview; see the file COPYING.  If not, write
 * to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
 * USA, or visit http://www.gnu.org.
 */
#ifndef MGBUFP_H
#define MGBUFP_H

typedef struct {
	Pt3Coord	x, y, z, w;
        ColorA		vcol;
	int		drawnext;
	} CPoint3;

#include "mgbufrender.h"
#include "mgbufrender24.h"


/*****************************************************************************/

#define		MGX_NULL		0
#define		MGX_END			0
#define		MGX_BGNLINE		1
#define		MGX_BGNPOLY		2
#define		MGX_BGNEPOLY		3
#define		MGX_BGNSLINE		4
#define		MGX_BGNSPOLY		5
#define		MGX_BGNSEPOLY		6
#define		MGX_VERTEX		7
#define		MGX_CVERTEX		8
#define		MGX_COLOR		9
#define		MGX_ECOLOR		10

#define		PRIM_LINE		1
#define		PRIM_POLYGON		2
#define		PRIM_EPOLYGON		3
#define		PRIM_SLINE		4 /* smooth shaded primitives */
#define		PRIM_SPOLYGON		5
#define		PRIM_SEPOLYGON		6
#define		PRIM_INVIS		7

/*****************************************************************************/

typedef struct _mgbufprim {
  int                   mykind; /* kind of primitive */
  int                   index;  /* index into array of vertices */
  int                   numvts; /* number of vertices */
  float                 depth;  /* z value for sorting (at least for now) */
  int                   color[3]; /* rgb color of polygon */
  int                   ecolor[3]; /* edge color of polygon */
  int                   ewidth; /* edge width */
} mgbufprim;

/*****************************************************************************/

typedef struct mgbufcontext {
    struct mgcontext mgctx;	/* The mgcontext */
    FILE *file;
    char filepath[280];
    unsigned char *buf;
    float *zbuf;
    int xsize, ysize;
    float zrange;
    int znudge;			/* znudge for drawing lines closer */
    float znudgeby;		/* how much of a nudge ? */
    long znear, zfar;		/* Current Z-buffer limits */
    vvec room;			/* Scratch space */
    int  pvertnum;		/* number of vertices */
    vvec pverts;		/* Primitve vertices */
    
    int	sizelock;		/* for prohibiting size change from within mg
				   when the cam window is part of a larger
				   hierarchy of windows as with Widgets */
    int born;
} mgbufcontext;

#define MAXZNUDGE	8	/* Max depth of mgbuf_closer()/farther() */

#define _mgbufc		((mgbufcontext*)_mgc)

void BUFmg_add(int primtype, int numdata, void *data, void *cdata);
void mgbuf_init_zrange();
int Xmgr_primclip(mgbufprim *aprim);

#endif