sphmap.c File Reference

Common Subroutines for Spherical Data Structures/Texture Maps Subroutines. More...

#include "common.h"
#include <stdio.h>
#include <math.h>
#include <strings.h>
#include "machine.h"
#include "bu.h"
#include "vmath.h"
#include "bn.h"
#include "spm.h"

Include dependency graph for sphmap.c:

Go to the source code of this file.

Functions

spm_map_tspm_init (int N, int elsize)
 Return a sphere map structure initialized for N points around the equator.
void spm_free (spm_map_t *mp)
 Free the storage associated with a sphere structure.
void spm_read (register spm_map_t *mapp, register unsigned char *valp, double u, double v)
void spm_write (register spm_map_t *mapp, register unsigned char *valp, double u, double v)
char * spm_get (register spm_map_t *mapp, double u, double v)
int spm_load (spm_map_t *mapp, char *filename)
int spm_save (spm_map_t *mapp, char *filename)
int spm_px_load (spm_map_t *mapp, char *filename, int nx, int ny)
int spm_px_save (spm_map_t *mapp, char *filename, int nx, int ny)
void spm_dump (spm_map_t *mp, int verbose)


Detailed Description

Common Subroutines for Spherical Data Structures/Texture Maps Subroutines.

Author:
Phillip Dykstra
Source -
SECAD/VLD Computing Consortium, Bldg 394
The U. S. Army Ballistic Research Laboratory
Aberdeen Proving Ground, Maryland 21005-5066

Definition in file sphmap.c.


Generated on Mon Sep 18 01:25:03 2006 for BRL-CAD by  doxygen 1.4.6