00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 INLINE DXGeomMunger9::
00022 DXGeomMunger9(GraphicsStateGuardian *gsg, const RenderState *state) :
00023 StandardMunger(gsg, state, 1, NT_packed_dabc, C_color),
00024 _texture(DCAST(TextureAttrib, state->get_attrib(TextureAttrib::get_class_slot()))),
00025 _tex_gen(DCAST(TexGenAttrib, state->get_attrib(TexGenAttrib::get_class_slot())))
00026 {
00027 _filtered_texture = (TextureAttrib *)NULL;
00028 _reffed_filtered_texture = false;
00029 if (_texture != (TextureAttrib *)NULL) {
00030 _filtered_texture = _texture->filter_to_max(gsg->get_max_texture_stages());
00031 if (_filtered_texture != _texture) {
00032 _filtered_texture->ref();
00033 _reffed_filtered_texture = true;
00034 }
00035 }
00036
00037
00038 _texture.set_callback(this);
00039 _tex_gen.set_callback(this);
00040 }
00041