void SR_NodeInit(SceneRenderer *sr, SFNode *node) { switch (Node_GetTag(node)) { case TAG_MPEG4_AnimationStream: InitAnimationStream(sr, node); break; case TAG_MPEG4_AudioBuffer: InitAudioBuffer(sr, node); break; case TAG_MPEG4_AudioSource: InitAudioSource(sr, node); break; case TAG_MPEG4_AudioClip: case TAG_X3D_AudioClip: InitAudioClip(sr, node); break; case TAG_MPEG4_TimeSensor: case TAG_X3D_TimeSensor: InitTimeSensor(sr, node); break; case TAG_MPEG4_ImageTexture: case TAG_X3D_ImageTexture: InitImageTexture(sr, node); break; case TAG_MPEG4_PixelTexture: case TAG_X3D_PixelTexture: InitPixelTexture(sr, node); break; case TAG_MPEG4_MovieTexture: case TAG_X3D_MovieTexture: InitMovieTexture(sr, node); break; default: sr->visual_renderer->NodeInit(sr->visual_renderer, node); break; } }
void gf_sr_on_node_init(GF_Renderer *sr, GF_Node *node) { switch (gf_node_get_tag(node)) { case TAG_MPEG4_AnimationStream: InitAnimationStream(sr, node); break; case TAG_MPEG4_AudioBuffer: InitAudioBuffer(sr, node); break; case TAG_MPEG4_AudioSource: InitAudioSource(sr, node); break; case TAG_MPEG4_AudioClip: case TAG_X3D_AudioClip: InitAudioClip(sr, node); break; case TAG_MPEG4_TimeSensor: case TAG_X3D_TimeSensor: InitTimeSensor(sr, node); break; case TAG_MPEG4_ImageTexture: case TAG_X3D_ImageTexture: InitImageTexture(sr, node); break; case TAG_MPEG4_PixelTexture: case TAG_X3D_PixelTexture: InitPixelTexture(sr, node); break; case TAG_MPEG4_MovieTexture: case TAG_X3D_MovieTexture: InitMovieTexture(sr, node); break; default: sr->visual_renderer->NodeInit(sr->visual_renderer, node); break; } }