//===========================================================================// // File: D3DRMVideoRenderables.hpp // // Project: MUNGA Brick: Win95 Video Renderer // // Contents: Windows95 Layer Video Renderer // //---------------------------------------------------------------------------// // Date Who Modification // // -------- --- ---------------------------------------------------------- // // 03/13/97 JTR Initial coding. // //---------------------------------------------------------------------------// // Copyright (C) 1997, Virtual World Entertainment, Inc. // // All Rights reserved worldwide // // This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL // //===========================================================================// #pragma once #include "Adept.hpp" #include "VideoRenderer.hpp" namespace ElementRenderer { class SwitchElement; } namespace Adept { //########################################################################## //######################## SwitchComponent ############################## //########################################################################## class SwitchComponent: public VideoComponent { public: static void InitializeClass(); static void TerminateClass(); static ClassData *DefaultData; typedef VideoComponent BaseClass; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Constructor/Destructor // protected: SwitchComponent( ClassData *class_data, MemoryStream *stream, VideoComponentWeb *owning_web ); ElementRenderer::SwitchElement* AllocateSwitch(); public: static SwitchComponent* Make( MemoryStream *stream, VideoComponentWeb *owning_web ); //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Component support // public: void ChannelChanged(Channel* channel); ElementRenderer::SwitchElement* GetElement() { Check_Object(this); return Cast_Pointer( ElementRenderer::SwitchElement*, componentElement ); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Test support // public: void TestInstance(); //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Tool-related Functions // public: static ClassData* CreateFactoryRequest(FactoryRequestParameters *parameters); }; }