41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/* $Id: interp.h,v 1.2 2003-01-02 23:31:50 btb Exp $ */
|
|
/*
|
|
*
|
|
* took out functions declarations from include/3d.h
|
|
* which are implemented in 3d/interp.c
|
|
*
|
|
*/
|
|
|
|
#ifndef _INTERP_H
|
|
#define _INTERP_H
|
|
|
|
#include "fix.h"
|
|
//#include "vecmat.h" //the vector/matrix library
|
|
#include "gr.h"
|
|
#include "cfile.h"
|
|
#include "3d.h"
|
|
|
|
//Object functions:
|
|
|
|
//gives the interpreter an array of points to use
|
|
void g3_set_interp_points(g3s_point *pointlist);
|
|
|
|
//calls the object interpreter to render an object. The object renderer
|
|
//is really a seperate pipeline. returns true if drew
|
|
bool g3_draw_polygon_model(void *model_ptr,grs_bitmap **model_bitmaps,vms_angvec *anim_angles,fix light,fix *glow_values);
|
|
|
|
//init code for bitmap models
|
|
void g3_init_polygon_model(void *model_ptr);
|
|
|
|
//un-initialize, i.e., convert color entries back to RGB15
|
|
void g3_uninit_polygon_model(void *model_ptr);
|
|
|
|
//alternate interpreter for morphing object
|
|
bool g3_draw_morphing_model(void *model_ptr,grs_bitmap **model_bitmaps,vms_angvec *anim_angles,fix light,vms_vector *new_points);
|
|
|
|
//this remaps the 15bpp colors for the models into a new palette. It should
|
|
//be called whenever the palette changes
|
|
void g3_remap_interp_colors(void);
|
|
|
|
#endif //_INTERP_H
|