texmap/ntmap.c File Reference

#include <math.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include "mono.h"
#include "3d.h"
#include "gr.h"
#include "error.h"
#include "texmap.h"
#include "texmapl.h"
#include "rle.h"
#include "scanline.h"
#include "../main/textures.h"

Defines

#define VESA   0
#define NUM_TMAPS   16
#define HEADLIGHT_LIGHTING   0
#define WIREFRAME   0
#define PERSPECTIVE   1
#define F15_5   (F1_0*15 + F0_5)
#define MAX_Y_POINTERS   600

Functions

void init_fix_recip_table (void)
void init_interface_vars_to_assembler (void)
int prevmod (int val, int modulus)
int succmod (int val, int modulus)
void compute_y_bounds (g3ds_tmap *t, int *vlt, int *vlb, int *vrt, int *vrb, int *bottom_y_ind)
fix compute_du_dy_lin (g3ds_tmap *t, int top_vertex, int bottom_vertex, fix recip_dy)
fix compute_dv_dy_lin (g3ds_tmap *t, int top_vertex, int bottom_vertex, fix recip_dy)
fix compute_dl_dy_lin (g3ds_tmap *t, int top_vertex, int bottom_vertex, fix recip_dy)
fix compute_dx_dy (g3ds_tmap *t, int top_vertex, int bottom_vertex, fix recip_dy)
fix compute_du_dy (g3ds_tmap *t, int top_vertex, int bottom_vertex, fix recip_dy)
fix compute_dv_dy (g3ds_tmap *t, int top_vertex, int bottom_vertex, fix recip_dy)
fix compute_dz_dy (g3ds_tmap *t, int top_vertex, int bottom_vertex, fix recip_dy)
void ntmap_scanline_lighted (grs_bitmap *srcb, int y, fix xleft, fix xright, fix uleft, fix uright, fix vleft, fix vright, fix zleft, fix zright, fix lleft, fix lright)
void ntexture_map_lighted (grs_bitmap *srcb, g3ds_tmap *t)
void ntmap_scanline_lighted_linear (grs_bitmap *srcb, int y, fix xleft, fix xright, fix uleft, fix uright, fix vleft, fix vright, fix lleft, fix lright)
void ntexture_map_lighted_linear (grs_bitmap *srcb, g3ds_tmap *t)
void draw_tmap_flat (grs_bitmap *bp, int nverts, g3s_point **vertbuf)
void draw_tmap (grs_bitmap *bp, int nverts, g3s_point **vertbuf)

Variables

g3ds_tmap Tmap1
grs_bitmap Texmap_ptrs [NUM_TMAPS]
grs_bitmap Texmap4_ptrs [NUM_TMAPS]
fix Range_max = 0
int Interpolation_method = 0
int Lighting_on = 1
int Tmap_flat_flag = 0
int Current_seg_depth
int Max_perspective_depth
int Max_linear_depth
int Max_flat_depth
int Window_clip_left
int Window_clip_bot
int Window_clip_right
int Window_clip_top
int bytes_per_row = -1
unsigned char * write_buffer
int window_left
int window_right
int window_top
int window_bottom
int window_width
int window_height
int y_pointers [MAX_Y_POINTERS]
fix fix_recip [FIX_RECIP_TABLE_SIZE]
int Lighting_enabled
int Fix_recip_table_computed = 0
fix fx_l
fix fx_u
fix fx_v
fix fx_z
fix fx_du_dx
fix fx_dv_dx
fix fx_dz_dx
fix fx_dl_dx
int fx_xleft
int fx_xright
int fx_y
unsigned char * pixptr
int per2_flag = 0
int Transparency_on = 0
int dither_intensity_lighting = 0
ubytetmap_flat_cthru_table
ubyte tmap_flat_color
ubyte tmap_flat_shade_value
g3ds_tmap Tmap1
int Skip_short_flag = 0
int Do_vertical_scan = 0
int Break_on_flat = 0

Define Documentation

#define F15_5   (F1_0*15 + F0_5)
 

#define HEADLIGHT_LIGHTING   0
 

#define MAX_Y_POINTERS   600
 

#define NUM_TMAPS   16
 

#define PERSPECTIVE   1
 

#define VESA   0
 

#define WIREFRAME   0
 


Function Documentation

fix compute_dl_dy_lin g3ds_tmap t,
int  top_vertex,
int  bottom_vertex,
fix  recip_dy
 

fix compute_du_dy g3ds_tmap t,
int  top_vertex,
int  bottom_vertex,
fix  recip_dy
 

fix compute_du_dy_lin g3ds_tmap t,
int  top_vertex,
int  bottom_vertex,
fix  recip_dy
 

fix compute_dv_dy g3ds_tmap t,
int  top_vertex,
int  bottom_vertex,
fix  recip_dy
 

fix compute_dv_dy_lin g3ds_tmap t,
int  top_vertex,
int  bottom_vertex,
fix  recip_dy
 

fix compute_dx_dy g3ds_tmap t,
int  top_vertex,
int  bottom_vertex,
fix  recip_dy
 

fix compute_dz_dy g3ds_tmap t,
int  top_vertex,
int  bottom_vertex,
fix  recip_dy
 

void compute_y_bounds g3ds_tmap t,
int *  vlt,
int *  vlb,
int *  vrt,
int *  vrb,
int *  bottom_y_ind
 

void draw_tmap grs_bitmap bp,
int  nverts,
g3s_point **  vertbuf
 

void draw_tmap_flat grs_bitmap bp,
int  nverts,
g3s_point **  vertbuf
 

void init_fix_recip_table void   ) 
 

void init_interface_vars_to_assembler void   ) 
 

void ntexture_map_lighted grs_bitmap srcb,
g3ds_tmap t
 

void ntexture_map_lighted_linear grs_bitmap srcb,
g3ds_tmap t
 

void ntmap_scanline_lighted grs_bitmap srcb,
int  y,
fix  xleft,
fix  xright,
fix  uleft,
fix  uright,
fix  vleft,
fix  vright,
fix  zleft,
fix  zright,
fix  lleft,
fix  lright
 

void ntmap_scanline_lighted_linear grs_bitmap srcb,
int  y,
fix  xleft,
fix  xright,
fix  uleft,
fix  uright,
fix  vleft,
fix  vright,
fix  lleft,
fix  lright
 

int prevmod int  val,
int  modulus
 

int succmod int  val,
int  modulus
 


Variable Documentation

int Break_on_flat = 0
 

int bytes_per_row = -1
 

int Current_seg_depth
 

int dither_intensity_lighting = 0
 

int Do_vertical_scan = 0
 

fix fix_recip[FIX_RECIP_TABLE_SIZE]
 

int Fix_recip_table_computed = 0
 

fix fx_dl_dx
 

fix fx_du_dx
 

fix fx_dv_dx
 

fix fx_dz_dx
 

fix fx_l
 

fix fx_u
 

fix fx_v
 

int fx_xleft
 

int fx_xright
 

int fx_y
 

fix fx_z
 

int Interpolation_method = 0
 

int Lighting_enabled
 

int Lighting_on = 1
 

int Max_flat_depth
 

int Max_linear_depth
 

int Max_perspective_depth
 

int per2_flag = 0
 

unsigned char* pixptr
 

fix Range_max = 0
 

int Skip_short_flag = 0
 

grs_bitmap Texmap4_ptrs[NUM_TMAPS]
 

grs_bitmap Texmap_ptrs[NUM_TMAPS]
 

g3ds_tmap Tmap1
 

g3ds_tmap Tmap1
 

ubyte tmap_flat_color
 

ubyte* tmap_flat_cthru_table
 

int Tmap_flat_flag = 0
 

ubyte tmap_flat_shade_value
 

int Transparency_on = 0
 

int window_bottom
 

int Window_clip_bot
 

int Window_clip_left
 

int Window_clip_right
 

int Window_clip_top
 

int window_height
 

int window_left
 

int window_right
 

int window_top
 

int window_width
 

unsigned char* write_buffer
 

int y_pointers[MAX_Y_POINTERS]
 


Generated on Mon Aug 28 20:55:34 2006 for D1X-Rebirth by  doxygen 1.4.6