Open source remastering of the Freespace 2 engine
neb.h File Reference

Go to the source code of this file.


struct  cube_poof
struct  neb2_detail


#define NEB2_RENDER_NONE   0
#define NEB2_RENDER_POLY   1
#define NEB2_RENDER_POF   2
#define NEB2_RENDER_LAME   3
#define NEB2_RENDER_HTL   4
#define MAX_NEB2_POOFS   6
#define MAX_NEB2_BITMAPS   10
#define MAX_CPTS   5


typedef struct cube_poof cube_poof
typedef struct neb2_detail neb2_detail


void neb2_init ()
void neb2_set_detail_level (int level)
void neb2_level_init ()
void neb2_post_level_init ()
void neb2_level_close ()
int neb2_create (vec3d *offset, int num_poofs, float inner_radius, float outer_radius, float max_poof_radius)
void neb2_delete (object *objp)
void neb2_render_setup (camid cid)
void neb2_render (object *objp)
void neb2_process_pre (object *objp)
void neb2_process_post (object *objp)
void neb2_render_player ()
void neb2_eye_changed ()
void neb2_get_fog_values (float *fnear, float *ffar, object *obj=NULL)
void neb2_get_adjusted_fog_values (float *fnear, float *ffar, object *obj=NULL)
float neb2_get_fog_intensity (object *obj)
float neb2_get_fog_intensity (vec3d *pos)
int neb2_skip_render (object *objp, float z_depth)
float neb2_get_lod_scale (int objnum)
void neb2_get_pixel (int x, int y, int *r, int *g, int *b)
void neb2_set_backg_color (int r, int g, int b)
void neb2_get_backg_color (int *r, int *g, int *b)
void neb2_get_fog_color (ubyte *r, ubyte *g, ubyte *b)


bool Nebula_sexp_used
float Neb_backg_fog_near
float Neb_backg_fog_far
int Neb2_render_mode
float Neb2_awacs
float Neb2_fog_near_mult
float Neb2_fog_far_mult
char Neb2_poof_filenames [MAX_NEB2_POOFS][MAX_FILENAME_LEN]
int Neb2_poof_flags
char Neb2_bitmap_filenames [MAX_NEB2_BITMAPS][MAX_FILENAME_LEN]
char Neb2_texture_name [MAX_FILENAME_LEN]
int Neb2_slices
cube_poof Neb2_cubes [MAX_CPTS][MAX_CPTS][MAX_CPTS]

Macro Definition Documentation

#define MAX_CPTS   5

Definition at line 70 of file neb.h.

#define MAX_NEB2_BITMAPS   10

Definition at line 51 of file neb.h.

#define MAX_NEB2_POOFS   6

Definition at line 45 of file neb.h.

#define NEB2_RENDER_HTL   4

Definition at line 35 of file neb.h.

#define NEB2_RENDER_LAME   3

Definition at line 34 of file neb.h.

#define NEB2_RENDER_NONE   0

Definition at line 31 of file neb.h.

#define NEB2_RENDER_POF   2

Definition at line 33 of file neb.h.

#define NEB2_RENDER_POLY   1

Definition at line 32 of file neb.h.

Typedef Documentation

typedef struct cube_poof cube_poof
typedef struct neb2_detail neb2_detail

Function Documentation

int neb2_create ( vec3d offset,
int  num_poofs,
float  inner_radius,
float  outer_radius,
float  max_poof_radius 
void neb2_delete ( object objp)
void neb2_eye_changed ( )

Definition at line 1111 of file neb.cpp.

void neb2_get_adjusted_fog_values ( float fnear,
float ffar,
object obj = NULL 

Definition at line 1170 of file neb.cpp.

void neb2_get_backg_color ( int r,
int g,
int b 

Definition at line 1400 of file neb.cpp.

void neb2_get_fog_color ( ubyte r,
ubyte g,
ubyte b 

Definition at line 319 of file neb.cpp.

float neb2_get_fog_intensity ( object obj)

Definition at line 1185 of file neb.cpp.

float neb2_get_fog_intensity ( vec3d pos)

Definition at line 1202 of file neb.cpp.

void neb2_get_fog_values ( float fnear,
float ffar,
object obj = NULL 

Definition at line 1136 of file neb.cpp.

float neb2_get_lod_scale ( int  objnum)

Definition at line 614 of file neb.cpp.

void neb2_get_pixel ( int  x,
int  y,
int r,
int g,
int b 

Definition at line 1292 of file neb.cpp.

void neb2_init ( )

Definition at line 250 of file neb.cpp.

void neb2_level_close ( )

Definition at line 432 of file neb.cpp.

void neb2_level_init ( )

Definition at line 326 of file neb.cpp.

void neb2_post_level_init ( )

Definition at line 332 of file neb.cpp.

void neb2_process_post ( object objp)
void neb2_process_pre ( object objp)
void neb2_render ( object objp)
void neb2_render_player ( )

Definition at line 925 of file neb.cpp.

void neb2_render_setup ( camid  cid)

Definition at line 464 of file neb.cpp.

void neb2_set_backg_color ( int  r,
int  g,
int  b 

Definition at line 1408 of file neb.cpp.

void neb2_set_detail_level ( int  level)

Definition at line 301 of file neb.cpp.

int neb2_skip_render ( object objp,
float  z_depth 

Definition at line 527 of file neb.cpp.

Variable Documentation

float Neb2_awacs

Definition at line 156 of file neb.cpp.

char Neb2_bitmap_filenames[MAX_NEB2_BITMAPS][MAX_FILENAME_LEN]

Definition at line 68 of file neb.cpp.

Definition at line 165 of file neb.cpp.

float Neb2_fog_far_mult

Definition at line 160 of file neb.cpp.

float Neb2_fog_near_mult

Definition at line 159 of file neb.cpp.

char Neb2_poof_filenames[MAX_NEB2_POOFS][MAX_FILENAME_LEN]

Definition at line 60 of file neb.cpp.

int Neb2_poof_flags

Definition at line 64 of file neb.cpp.

int Neb2_render_mode

Definition at line 57 of file neb.cpp.

int Neb2_slices

Definition at line 163 of file neb.cpp.

char Neb2_texture_name[MAX_FILENAME_LEN]

Definition at line 75 of file neb.cpp.

float Neb_backg_fog_far

Definition at line 143 of file neb.cpp.

float Neb_backg_fog_near

Definition at line 142 of file neb.cpp.

bool Nebula_sexp_used

Definition at line 34 of file neb.cpp.