BC_Texture Class Reference

#include <bctexture.h>


Public Member Functions

 BC_Texture (int w, int h, int colormodel)
 ~BC_Texture ()
void bind (int texture_unit=-1)
int get_texture_id ()
int get_texture_w ()
int get_texture_h ()
int get_texture_components ()
int get_window_id ()

Static Public Member Functions

static void new_texture (BC_Texture **texture, int w, int h, int colormodel)
static int calculate_texture_size (int w, int *max=0)

Private Member Functions

void clear_objects ()
void create_texture (int w, int h, int colormodel)

Private Attributes

int window_id
int texture_id
int texture_w
int texture_h
int texture_components
int colormodel
int w
int h

Friends

class VFrame


Detailed Description

Definition at line 10 of file bctexture.h.


Constructor & Destructor Documentation

BC_Texture::BC_Texture ( int  w,
int  h,
int  colormodel 
)

Definition at line 9 of file bctexture.C.

References create_texture(), texture_components, texture_h, texture_id, texture_w, and window_id.

Referenced by new_texture().

Here is the call graph for this function:

BC_Texture::~BC_Texture (  ) 

Definition at line 24 of file bctexture.C.

References clear_objects().

Here is the call graph for this function:


Member Function Documentation

void BC_Texture::new_texture ( BC_Texture **  texture,
int  w,
int  h,
int  colormodel 
) [static]

Definition at line 42 of file bctexture.C.

References BC_Texture().

Referenced by Playback3D::do_mask_sync(), Playback3D::enable_overlay_texture(), FrameField::handle_opengl(), VFrame::screen_to_texture(), and VFrame::to_texture().

Here is the call graph for this function:

void BC_Texture::bind ( int  texture_unit = -1  ) 

int BC_Texture::calculate_texture_size ( int  w,
int *  max = 0 
) [static]

Definition at line 161 of file bctexture.C.

Referenced by create_texture().

int BC_Texture::get_texture_id (  ) 

Definition at line 176 of file bctexture.C.

References texture_id.

Referenced by clear_objects().

int BC_Texture::get_texture_w (  ) 

Definition at line 181 of file bctexture.C.

References texture_w.

Referenced by Playback3D::overlay_sync().

int BC_Texture::get_texture_h (  ) 

Definition at line 186 of file bctexture.C.

References texture_h.

Referenced by FrameField::handle_opengl(), and Playback3D::overlay_sync().

int BC_Texture::get_texture_components (  ) 

Definition at line 191 of file bctexture.C.

References texture_components.

Referenced by Playback3D::do_mask_sync().

int BC_Texture::get_window_id (  ) 

Definition at line 196 of file bctexture.C.

References window_id.

void BC_Texture::clear_objects (  )  [private]

Definition at line 29 of file bctexture.C.

References BC_WindowBase::get_synchronous(), get_texture_id(), BC_Synchronous::release_texture(), texture_id, and window_id.

Referenced by ~BC_Texture().

Here is the call graph for this function:

void BC_Texture::create_texture ( int  w,
int  h,
int  colormodel 
) [private]


Friends And Related Function Documentation

friend class VFrame [friend]

Definition at line 16 of file bctexture.h.

Referenced by BC_Theme::new_button(), BC_Theme::new_image(), and BC_Theme::new_toggle().


Field Documentation

int BC_Texture::window_id [private]

int BC_Texture::texture_id [private]

int BC_Texture::texture_w [private]

Definition at line 55 of file bctexture.h.

Referenced by BC_Texture(), create_texture(), VFrame::get_texture_w(), and get_texture_w().

int BC_Texture::texture_h [private]

Definition at line 56 of file bctexture.h.

Referenced by BC_Texture(), create_texture(), VFrame::get_texture_h(), and get_texture_h().

int BC_Texture::colormodel [private]

Definition at line 58 of file bctexture.h.

int BC_Texture::w [private]

Definition at line 59 of file bctexture.h.

Referenced by BC_Theme::overlay().

int BC_Texture::h [private]

Definition at line 60 of file bctexture.h.

Referenced by BC_Theme::overlay().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:15:49 2008 for Cinelerra by  doxygen 1.5.5