#include <pixelBuffer.h>
Inheritance diagram for PixelBuffer:
Public Types | |
enum | Type { T_unsigned_byte, T_unsigned_short, T_unsigned_byte_332, T_float } |
enum | Format { F_color_index, F_stencil_index, F_depth_component, F_red, F_green, F_blue, F_alpha, F_rgb, F_rgb5, F_rgb8, F_rgb12, F_rgb332, F_rgba, F_rgbm, F_rgba4, F_rgba5, F_rgba8, F_rgba12, F_luminance, F_luminance_alpha, F_luminance_alphamask } |
Public Member Functions | |
PixelBuffer (void) | |
PixelBuffer (int xsize, int ysize, int components, int component_width, Type type, Format format) | |
PixelBuffer (int xsize, int ysize, int components, int component_width, Type type, Format format, bool bAllocateRAM) | |
PixelBuffer (const PixelBuffer ©) | |
void | operator= (const PixelBuffer ©) |
INLINE | ~PixelBuffer (void) |
virtual void | config (void) |
bool | read (const Filename &name) |
bool | write (const Filename &name) const |
bool | load (const PNMImage &pnmimage) |
bool | store (PNMImage &pnmimage) const |
void | copy (const PixelBuffer *pb) |
virtual void | copy (GraphicsStateGuardianBase *gsg, const DisplayRegion *dr) |
virtual void | copy (GraphicsStateGuardianBase *gsg, const DisplayRegion *dr, const RenderBuffer &rb) |
INLINE void | set_xsize (int size) |
INLINE void | set_ysize (int size) |
INLINE void | set_xorg (int org) |
INLINE void | set_yorg (int org) |
INLINE void | set_size (int x_org, int y_org, int x_size, int y_size) |
INLINE void | set_format (Format format) |
INLINE int | get_xsize () const |
INLINE int | get_ysize () const |
INLINE int | get_xorg () const |
INLINE int | get_yorg () const |
INLINE int | get_border () const |
INLINE int | get_num_components () const |
INLINE int | get_component_width () const |
INLINE Format | get_format () const |
INLINE Type | get_image_type () const |
INLINE void | set_uchar_rgb_texel (const uchar color[3], int x, int y, int width) |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
INLINE PixelBuffer | rgb_buffer (int xsize, int ysize) |
INLINE PixelBuffer | rgba_buffer (int xsize, int ysize) |
INLINE PixelBuffer | depth_buffer (int xsize, int ysize) |
INLINE PixelBuffer | stencil_buffer (int xsize, int ysize) |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PTA_uchar | _image |
Protected Attributes | |
int | _xsize |
int | _ysize |
int | _xorg |
int | _yorg |
int | _border |
int | _components |
int | _component_width |
Format | _format |
Type | _type |
bool | _loaded |
Private Member Functions | |
INLINE void | store_unscaled_byte (int &index, int value) |
INLINE void | store_unscaled_short (int &index, int value) |
INLINE void | store_scaled_byte (int &index, int value, double scale) |
INLINE void | store_scaled_short (int &index, int value, double scale) |
INLINE double | get_unsigned_byte (int &index) const |
INLINE double | get_unsigned_short (int &index) const |
Static Private Attributes | |
TypeHandle | _type_handle |
|
Definition at line 64 of file pixelBuffer.h. Referenced by Texture::fillin(). |
|
Definition at line 57 of file pixelBuffer.h. Referenced by DXTextureContext8::CreateTexture(), and DXTextureContext7::CreateTexture(). |
|
Definition at line 33 of file pixelBuffer.cxx. References _border, _component_width, _components, _format, _image, _loaded, _type, _xorg, _xsize, _yorg, _ysize, F_rgb, PTA_uchar, and T_unsigned_byte. |
|
Definition at line 55 of file pixelBuffer.cxx. References _border, _component_width, _components, _format, _image, _loaded, _type, _xorg, _xsize, _yorg, _ysize, PointerToArray< unsigned char >::empty_array(), format, and type. |
|
Definition at line 78 of file pixelBuffer.cxx. References _border, _component_width, _components, _format, _image, _loaded, _type, _xorg, _xsize, _yorg, _ysize, PointerToArray< unsigned char >::empty_array(), format, PTA_uchar, and type. |
|
Definition at line 102 of file pixelBuffer.cxx. |
|
|
|
Reimplemented from ImageBuffer. Definition at line 142 of file pixelBuffer.cxx. References ImageBuffer::config(). Referenced by load(). |
|
Implements ImageBuffer. Definition at line 425 of file pixelBuffer.cxx. References GraphicsStateGuardianBase::copy_pixel_buffer(). |
|
Implements ImageBuffer. Definition at line 421 of file pixelBuffer.cxx. References GraphicsStateGuardianBase::copy_pixel_buffer(). |
|
Definition at line 407 of file pixelBuffer.cxx. References _border, _components, _format, _image, _xorg, _xsize, _yorg, _ysize, PointerToArray< unsigned char >::empty(), PointerToArray< unsigned char >::empty_array(), NULL, pb, and PointerToArray< unsigned char >::v(). Referenced by GLGraphicsStateGuardian::texture_to_pixel_buffer(), and CRGraphicsStateGuardian::texture_to_pixel_buffer(). |
|
Referenced by PlanarReflector::pre_apply(), DXGraphicsStateGuardian7::prepare_texture(), and PT(). |
|
Reimplemented from ImageBuffer. Definition at line 163 of file pixelBuffer.h. References ImageBuffer::get_class_type(), and ImageBuffer::init_type(). |
|
|
Reimplemented from ImageBuffer. Definition at line 152 of file pixelBuffer.h. |
|
|
|
|
|
Reimplemented from ImageBuffer. Definition at line 160 of file pixelBuffer.h. References ImageBuffer::get_class_type(). |
|
Referenced by store(). |
|
Referenced by store(). |
|
|
|
|
|
Reimplemented from ImageBuffer. Definition at line 155 of file pixelBuffer.h. References ImageBuffer::get_class_type(), ImageBuffer::init_type(), and register_type(). Referenced by ConfigureFn(). |
|
|
Definition at line 123 of file pixelBuffer.cxx. References _border, _component_width, _components, _format, _image, _loaded, _type, _xorg, _xsize, _yorg, and _ysize. |
|
Definition at line 153 of file pixelBuffer.cxx. References ImageBuffer::clear_alpha_filename(), load(), PNMImage::read(), ImageBuffer::set_filename(), and Namable::set_name(). Referenced by indirect_display_func(). |
|
Referenced by PlanarReflector::pre_apply(), SpheretexHighlighter::SpheretexHighlighter(), and SpotlightShader::SpotlightShader(). |
|
|
|
|
|
Referenced by GLGraphicsStateGuardian::copy_texture(), and DXGraphicsStateGuardian8::copy_texture(). |
|
Referenced by Spotlight::make_image(). |
|
Referenced by CRGraphicsStateGuardian::copy_texture(), and DXGraphicsStateGuardian7::prepare_texture(). |
|
Referenced by CRGraphicsStateGuardian::copy_texture(), indirect_display_func(), and DXGraphicsStateGuardian7::prepare_texture(). |
|
Referenced by CRGraphicsStateGuardian::copy_texture(), and DXGraphicsStateGuardian7::prepare_texture(). |
|
Referenced by CRGraphicsStateGuardian::copy_texture(), indirect_display_func(), and DXGraphicsStateGuardian7::prepare_texture(). |
|
|
|
Definition at line 351 of file pixelBuffer.cxx. References _components, _type, _xsize, _ysize, PNMImage::clear(), Namable::get_name(), get_unsigned_byte(), get_unsigned_short(), PNMImageHeader::has_alpha(), PNMImageHeader::is_grayscale(), PNMImage::set_alpha(), PNMImage::set_blue(), PNMImage::set_gray(), PNMImage::set_green(), PNMImage::set_red(), T_unsigned_byte, and T_unsigned_short. Referenced by DXTextureContext7::CreateTexture(), and write(). |
|
Referenced by load(). |
|
Referenced by load(). |
|
Referenced by load(). |
|
Referenced by load(). |
|
Definition at line 174 of file pixelBuffer.cxx. References ImageBuffer::get_filename(), store(), and PNMImage::write(). |
|
Definition at line 179 of file pixelBuffer.h. Referenced by copy(), operator=(), and PixelBuffer(). |
|
Definition at line 181 of file pixelBuffer.h. Referenced by operator=(), and PixelBuffer(). |
|
Definition at line 180 of file pixelBuffer.h. Referenced by copy(), load(), operator=(), PixelBuffer(), and store(). |
|
Definition at line 182 of file pixelBuffer.h. Referenced by copy(), load(), operator=(), and PixelBuffer(). |
|
|
Definition at line 185 of file pixelBuffer.h. Referenced by load(), operator=(), and PixelBuffer(). |
|
Definition at line 183 of file pixelBuffer.h. Referenced by load(), operator=(), PixelBuffer(), and store(). |
|
Reimplemented from ImageBuffer. Definition at line 25 of file pixelBuffer.cxx. |
|
Definition at line 177 of file pixelBuffer.h. Referenced by copy(), operator=(), and PixelBuffer(). |
|
Definition at line 172 of file pixelBuffer.h. Referenced by copy(), load(), operator=(), PixelBuffer(), and store(). |
|
Definition at line 178 of file pixelBuffer.h. Referenced by copy(), operator=(), and PixelBuffer(). |
|
Definition at line 173 of file pixelBuffer.h. Referenced by copy(), load(), operator=(), PixelBuffer(), and store(). |