#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 |
Definition at line 10 of file bctexture.h.
| 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().

| BC_Texture::~BC_Texture | ( | ) |
Definition at line 24 of file bctexture.C.
References clear_objects().

| 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().

| void BC_Texture::bind | ( | int | texture_unit = -1 |
) |
Definition at line 202 of file bctexture.C.
References texture_id.
Referenced by VFrame::bind_texture(), Playback3D::do_mask_sync(), Playback3D::enable_overlay_texture(), and FrameField::handle_opengl().
| int BC_Texture::calculate_texture_size | ( | int | w, | |
| int * | max = 0 | |||
| ) | [static] |
| int BC_Texture::get_texture_id | ( | ) |
| 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 | ( | ) |
| 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().

| void BC_Texture::create_texture | ( | int | w, | |
| int | h, | |||
| int | colormodel | |||
| ) | [private] |
Definition at line 57 of file bctexture.C.
References calculate_texture_size(), cmodel_components(), BC_Synchronous::current_window, BC_WindowBase::get_id(), BC_WindowBase::get_synchronous(), BC_Synchronous::get_texture(), BC_Synchronous::put_texture(), BC_Synchronous::release_texture(), texture_components, texture_h, texture_id, texture_w, and window_id.
Referenced by BC_Texture().

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().
int BC_Texture::window_id [private] |
Definition at line 53 of file bctexture.h.
Referenced by BC_Texture(), clear_objects(), create_texture(), VFrame::get_window_id(), and get_window_id().
int BC_Texture::texture_id [private] |
Definition at line 54 of file bctexture.h.
Referenced by BC_Texture(), bind(), clear_objects(), create_texture(), VFrame::get_texture_id(), and get_texture_id().
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::texture_components [private] |
Definition at line 57 of file bctexture.h.
Referenced by BC_Texture(), create_texture(), VFrame::get_texture_components(), and get_texture_components().
int BC_Texture::colormodel [private] |
Definition at line 58 of file bctexture.h.
int BC_Texture::w [private] |
int BC_Texture::h [private] |
1.5.5