Open source remastering of the Freespace 2 engine
gropenglbmpman.cpp File Reference

Go to the source code of this file.




int get_num_mipmap_levels (int w, int h)
void gr_opengl_bm_free_data (int n, bool release)
void gr_opengl_bm_create (int n)
void gr_opengl_bm_init (int n)
void gr_opengl_bm_page_in_start ()
void bm_clean_slot (int n)
bool opengl_texture_slot_valid (int n, int handle)
void gr_opengl_bm_save_render_target (int n)
int gr_opengl_bm_make_render_target (int n, int *width, int *height, ubyte *bpp, int *mm_lvl, int flags)
int gr_opengl_bm_set_render_target (int n, int face)
bool gr_opengl_bm_data (int n, bitmap *bm)

Macro Definition Documentation


Definition at line 26 of file gropenglbmpman.cpp.

Function Documentation

void bm_clean_slot ( int  n)

Definition at line 455 of file bmpman.cpp.

int get_num_mipmap_levels ( int  w,
int  h 

Definition at line 38 of file gropenglbmpman.cpp.

void gr_opengl_bm_create ( int  n)

API specifics for creating a user bitmap

Definition at line 76 of file gropenglbmpman.cpp.

bool gr_opengl_bm_data ( int  n,
bitmap bm 

Definition at line 175 of file gropenglbmpman.cpp.

void gr_opengl_bm_free_data ( int  n,
bool  release 

Anything API specific to freeing bm data

Definition at line 59 of file gropenglbmpman.cpp.

void gr_opengl_bm_init ( int  n)

API specific init instructions

Definition at line 84 of file gropenglbmpman.cpp.

int gr_opengl_bm_make_render_target ( int  n,
int width,
int height,
ubyte bpp,
int mm_lvl,
int  flags 

Definition at line 124 of file gropenglbmpman.cpp.

void gr_opengl_bm_page_in_start ( )

Specific instructions for setting up the start of a page-in session

Definition at line 92 of file gropenglbmpman.cpp.

void gr_opengl_bm_save_render_target ( int  n)

Definition at line 101 of file gropenglbmpman.cpp.

int gr_opengl_bm_set_render_target ( int  n,
int  face 

Definition at line 153 of file gropenglbmpman.cpp.

bool opengl_texture_slot_valid ( int  n,
int  handle 

Determine if a bitmap is in API memory, so that we can just reuse it rather that having to load it from disk again

Definition at line 277 of file gropengltexture.cpp.