#include <ribGraphicsStateGuardian.h>
Inheritance diagram for RIBGraphicsStateGuardian:
Public Member Functions | |
RIBGraphicsStateGuardian (GraphicsWindow *win) | |
virtual void | reset () |
void | reset_file (ostream &out) |
void | reset_frame () |
virtual void | clear (const RenderBuffer &buffer) |
virtual void | clear (const RenderBuffer &buffer, const DisplayRegion *region) |
virtual void | prepare_display_region () |
virtual void | render_frame (const AllAttributesWrapper &initial_state) |
virtual void | render_scene (Node *root, ProjectionNode *projnode, const AllAttributesWrapper &initial_state) |
virtual void | render_subgraph (RenderTraverser *traverser, Node *subgraph, ProjectionNode *projnode, const AllAttributesWrapper &initial_state, const AllTransitionsWrapper &net_trans) |
virtual void | render_subgraph (RenderTraverser *traverser, Node *subgraph, const AllAttributesWrapper &initial_state, const AllTransitionsWrapper &net_trans) |
virtual bool | wants_normals (void) const |
virtual bool | wants_texcoords (void) const |
virtual bool | wants_colors (void) const |
virtual float | compute_distance_to (const LPoint3f &point) const |
virtual void | draw_point (const GeomPoint *geom) |
virtual void | draw_line (const GeomLine *geom) |
virtual void | draw_linestrip (const GeomLinestrip *) |
virtual void | draw_sprite (const GeomSprite *geom) |
virtual void | draw_polygon (const GeomPolygon *geom) |
virtual void | draw_quad (const GeomQuad *geom) |
virtual void | draw_tri (const GeomTri *geom) |
virtual void | draw_tristrip (const GeomTristrip *geom) |
virtual void | draw_trifan (const GeomTrifan *geom) |
virtual void | draw_sphere (const GeomSphere *geom) |
virtual TextureContext * | prepare_texture (Texture *tex) |
virtual void | apply_texture (TextureContext *tc) |
virtual void | release_texture (TextureContext *tc) |
virtual void | copy_texture (TextureContext *tc, const DisplayRegion *dr) |
virtual void | copy_texture (TextureContext *tc, const DisplayRegion *dr, const RenderBuffer &rb) |
virtual void | draw_texture (TextureContext *tc, const DisplayRegion *dr) |
virtual void | draw_texture (TextureContext *tc, const DisplayRegion *dr, const RenderBuffer &rb) |
virtual void | texture_to_pixel_buffer (TextureContext *, PixelBuffer *) |
virtual void | texture_to_pixel_buffer (TextureContext *, PixelBuffer *, const DisplayRegion *) |
virtual void | copy_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr) |
virtual void | copy_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr, const RenderBuffer &rb) |
virtual void | draw_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr, const NodeAttributes &na=NodeAttributes()) |
virtual void | draw_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr, const RenderBuffer &rb, const NodeAttributes &na=NodeAttributes()) |
virtual void | apply_material (Material *) |
virtual void | apply_fog (Fog *) |
virtual void | apply_light (PointLight *) |
virtual void | apply_light (DirectionalLight *) |
virtual void | apply_light (Spotlight *) |
virtual void | apply_light (AmbientLight *) |
virtual void | issue_transform (const TransformAttribute *attrib) |
virtual void | issue_color (const ColorAttribute *attrib) |
virtual void | issue_texture (const TextureAttribute *attrib) |
virtual void | issue_light (const LightAttribute *attrib) |
void | set_texture_directory (const string &directory) |
string | get_texture_directory () const |
void | set_texture_extension (const string &extension) |
string | get_texture_extension () const |
virtual TypeHandle | get_type (void) const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
GraphicsStateGuardian * | make_RIBGraphicsStateGuardian (const FactoryParams ¶ms) |
TypeHandle | get_class_type (void) |
void | init_type (void) |
Protected Types | |
typedef pmap< const Texture *, Filename > | TextureNames |
typedef pmap< const Light *, int > | LightIDs |
typedef pvector< bool > | EnabledLights |
Protected Member Functions | |
virtual | PT (SavedFrameBuffer) save_frame_buffer(const RenderBuffer &buffer |
virtual | CPT (DisplayRegion) dr) |
virtual void | restore_frame_buffer (SavedFrameBuffer *frame_buffer) |
void | set_color (const RGBColorf &color) |
void | get_rib_stuff (Node *root, const AllAttributesWrapper &initial_state) |
void | define_texture (const Texture *tex) |
void | define_light (const Light *light) |
void | write_light_color (const Colorf &color) const |
void | write_light_from (const Node *light) const |
void | write_light_to (const Node *light) const |
ostream & | new_line (int extra_indent=0) const |
void | reset_transform (const LMatrix4f &mat) const |
void | concat_transform (const LMatrix4f &mat) const |
void | draw_simple_poly (const Geom *geom) |
void | write_polygon (int num_verts) |
Static Protected Member Functions | |
void | get_color_and_intensity (const RGBColorf &input, RGBColorf &output, float &intensity) |
Protected Attributes | |
RGBColorf | _current_color |
string | _texture_directory |
string | _texture_extension |
ostream * | _output |
int | _indent_level |
TextureNames | _texture_names |
LightIDs | _light_ids |
EnabledLights | _enabled_lights |
Static Private Attributes | |
TypeHandle | _type_handle |
Friends | |
class | RibStuffTraverser |
|
Definition at line 162 of file ribGraphicsStateGuardian.h. |
|
Definition at line 160 of file ribGraphicsStateGuardian.h. |
|
Definition at line 158 of file ribGraphicsStateGuardian.h. |
|
Definition at line 101 of file ribGraphicsStateGuardian.cxx. References _texture_directory, _texture_extension, reset(), and win. Referenced by make_RIBGraphicsStateGuardian(). |
|
Definition at line 109 of file ribGraphicsStateGuardian.h. |
|
Definition at line 114 of file ribGraphicsStateGuardian.h. |
|
Definition at line 113 of file ribGraphicsStateGuardian.h. |
|
Definition at line 112 of file ribGraphicsStateGuardian.h. |
|
Definition at line 111 of file ribGraphicsStateGuardian.h. |
|
Definition at line 108 of file ribGraphicsStateGuardian.h. |
|
Reimplemented from GraphicsStateGuardian. Definition at line 555 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 182 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 172 of file ribGraphicsStateGuardian.cxx. |
|
Implements GraphicsStateGuardianBase. Definition at line 431 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 1058 of file ribGraphicsStateGuardian.cxx. References new_line(). |
|
Implements GraphicsStateGuardianBase. Definition at line 629 of file ribGraphicsStateGuardian.cxx. |
|
Implements GraphicsStateGuardianBase. Definition at line 620 of file ribGraphicsStateGuardian.cxx. |
|
Implements GraphicsStateGuardianBase. Definition at line 593 of file ribGraphicsStateGuardian.cxx. |
|
Implements GraphicsStateGuardianBase. Definition at line 584 of file ribGraphicsStateGuardian.cxx. |
|
Implements GraphicsStateGuardian. |
|
Definition at line 926 of file ribGraphicsStateGuardian.cxx. References _enabled_lights, _light_ids, deg_2_rad(), AmbientLight::get_class_type(), Spotlight::get_class_type(), DirectionalLight::get_class_type(), PointLight::get_class_type(), id, new_line(), write_light_color(), write_light_from(), and write_light_to(). |
|
Definition at line 887 of file ribGraphicsStateGuardian.cxx. References _texture_directory, _texture_extension, _texture_names, Texture::get_wrapu(), Texture::get_wrapv(), new_line(), tex, Texture::WM_clamp, and Texture::write(). |
|
Definition at line 454 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 75 of file ribGraphicsStateGuardian.h. |
|
|
|
|
|
Definition at line 445 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 472 of file ribGraphicsStateGuardian.cxx. References draw_simple_poly(). |
|
Definition at line 492 of file ribGraphicsStateGuardian.cxx. References draw_simple_poly(). |
|
|
Definition at line 526 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 463 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 611 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 602 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 482 of file ribGraphicsStateGuardian.cxx. References draw_simple_poly(). |
|
Definition at line 514 of file ribGraphicsStateGuardian.cxx. References draw_simple_poly(), and GeomTrifan::explode(). |
|
Definition at line 502 of file ribGraphicsStateGuardian.cxx. References draw_simple_poly(), and GeomTristrip::explode(). |
|
Reimplemented from GraphicsStateGuardian. Definition at line 171 of file ribGraphicsStateGuardian.h. References get_class_type(), and init_type(). |
|
Reimplemented from GraphicsStateGuardian. Definition at line 1234 of file ribGraphicsStateGuardian.cxx. References _type_handle. Referenced by ConfigureFn(), force_init_type(), RIBGraphicsWindow::get_gsg_type(), and get_type(). |
|
Definition at line 1204 of file ribGraphicsStateGuardian.cxx. References input. Referenced by write_light_color(). |
|
|
|
Definition at line 793 of file ribGraphicsStateGuardian.cxx. References _texture_directory. |
|
Definition at line 819 of file ribGraphicsStateGuardian.cxx. References _texture_extension. |
|
Reimplemented from GraphicsStateGuardian. Definition at line 1230 of file ribGraphicsStateGuardian.cxx. References get_class_type(). |
|
Reimplemented from GraphicsStateGuardian. Definition at line 1238 of file ribGraphicsStateGuardian.cxx. References _type_handle, GraphicsStateGuardian::get_class_type(), GraphicsStateGuardian::init_type(), and register_type(). Referenced by ConfigureFn(), and force_init_type(). |
|
|
|
|
|
|
|
|
|
Definition at line 1218 of file ribGraphicsStateGuardian.cxx. References get_param_into(), NULL, params, RIBGraphicsStateGuardian(), and win. Referenced by ConfigureFn(). |
|
Definition at line 1027 of file ribGraphicsStateGuardian.cxx. References _indent_level, _output, and indent(). Referenced by concat_transform(), define_light(), define_texture(), reset_transform(), and set_color(). |
|
Implements GraphicsStateGuardian. Definition at line 192 of file ribGraphicsStateGuardian.cxx. |
|
Reimplemented from GraphicsStateGuardian. Definition at line 536 of file ribGraphicsStateGuardian.cxx. References GraphicsStateGuardian::mark_prepared_texture(), tc, and tex. |
|
Reimplemented from GraphicsStateGuardian. |
|
Reimplemented from GraphicsStateGuardian. Definition at line 564 of file ribGraphicsStateGuardian.cxx. References Texture::clear_gsg(), tc, tex, and GraphicsStateGuardian::unmark_prepared_texture(). |
|
|
|
|
|
|
|
|
|
Reimplemented from GraphicsStateGuardian. Definition at line 119 of file ribGraphicsStateGuardian.cxx. References GraphicsStateGuardian::_buffer_mask, _indent_level, _output, _texture_names, NULL, GraphicsStateGuardian::reset(), reset_frame(), and RenderBuffer::T_color. Referenced by RIBGraphicsWindow::end_file(), reset_file(), and RIBGraphicsStateGuardian(). |
|
Definition at line 142 of file ribGraphicsStateGuardian.cxx. References _output, and reset(). Referenced by RIBGraphicsWindow::begin_file(). |
|
Definition at line 154 of file ribGraphicsStateGuardian.cxx. References _current_color, _enabled_lights, and _light_ids. Referenced by reset(). |
|
Definition at line 1039 of file ribGraphicsStateGuardian.cxx. References new_line(). |
|
Implements GraphicsStateGuardian. Definition at line 846 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 856 of file ribGraphicsStateGuardian.cxx. References _current_color, and new_line(). Referenced by write_polygon(). |
|
Definition at line 782 of file ribGraphicsStateGuardian.cxx. References _texture_directory. |
|
Definition at line 807 of file ribGraphicsStateGuardian.cxx. References _texture_extension. |
|
Implements GraphicsStateGuardianBase. Definition at line 96 of file ribGraphicsStateGuardian.h. |
|
Implements GraphicsStateGuardianBase. Definition at line 95 of file ribGraphicsStateGuardian.h. |
|
Reimplemented from GraphicsStateGuardian. Definition at line 407 of file ribGraphicsStateGuardian.cxx. |
|
Reimplemented from GraphicsStateGuardian. Definition at line 387 of file ribGraphicsStateGuardian.cxx. |
|
Reimplemented from GraphicsStateGuardian. Definition at line 397 of file ribGraphicsStateGuardian.cxx. |
|
Definition at line 982 of file ribGraphicsStateGuardian.cxx. References get_color_and_intensity(), and RGBColorf. Referenced by define_light(). |
|
Definition at line 998 of file ribGraphicsStateGuardian.cxx. Referenced by define_light(). |
|
Definition at line 1011 of file ribGraphicsStateGuardian.cxx. Referenced by define_light(). |
|
Definition at line 1136 of file ribGraphicsStateGuardian.cxx. References _indent_level, _output, rib_colors, rib_normals, rib_texcoords, rib_vertices, set_color(), and write_long_list(). Referenced by draw_simple_poly(). |
|
Definition at line 178 of file ribGraphicsStateGuardian.h. |
|
Definition at line 152 of file ribGraphicsStateGuardian.h. Referenced by reset_frame(), and set_color(). |
|
Definition at line 163 of file ribGraphicsStateGuardian.h. Referenced by define_light(), and reset_frame(). |
|
Definition at line 157 of file ribGraphicsStateGuardian.h. Referenced by new_line(), reset(), and write_polygon(). |
|
Definition at line 161 of file ribGraphicsStateGuardian.h. Referenced by define_light(), and reset_frame(). |
|
Definition at line 156 of file ribGraphicsStateGuardian.h. Referenced by new_line(), reset(), reset_file(), and write_polygon(). |
|
Definition at line 154 of file ribGraphicsStateGuardian.h. Referenced by define_texture(), get_texture_directory(), RIBGraphicsStateGuardian(), and set_texture_directory(). |
|
Definition at line 155 of file ribGraphicsStateGuardian.h. Referenced by define_texture(), get_texture_extension(), RIBGraphicsStateGuardian(), and set_texture_extension(). |
|
Definition at line 159 of file ribGraphicsStateGuardian.h. Referenced by define_texture(), and reset(). |
|
Reimplemented from GraphicsStateGuardian. Definition at line 57 of file ribGraphicsStateGuardian.cxx. Referenced by get_class_type(), and init_type(). |