You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
3.0 KiB
C++
79 lines
3.0 KiB
C++
/*
|
|
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
|
* its licensors.
|
|
*
|
|
* For complete copyright and license terms please see the LICENSE at the root of this
|
|
* distribution (the "License"). All use of this software is governed by the License,
|
|
* or, if provided, by the license below or the license accompanying this file. Do not
|
|
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
*
|
|
*/
|
|
#ifndef _EFFECTS_RENDERELEMENTS_GAMERENDERELEMENT_H_
|
|
#define _EFFECTS_RENDERELEMENTS_GAMERENDERELEMENT_H_
|
|
#pragma once
|
|
|
|
// Includes
|
|
#include "GameEffectsSystem.h"
|
|
#include <CREGameEffect.h>
|
|
|
|
// Forward declares
|
|
struct IGameRenderElementParams;
|
|
|
|
//==================================================================================================
|
|
// Name: IGameRenderElement
|
|
// Desc: Base interface for all game render elements
|
|
// Author: James Chilvers
|
|
//==================================================================================================
|
|
struct IGameRenderElement
|
|
: public IREGameEffect
|
|
, public _i_reference_target_t
|
|
{
|
|
DECLARE_TYPELIB(IGameRenderElement); // Allow soft coding on this interface
|
|
|
|
virtual ~IGameRenderElement() {}
|
|
|
|
virtual bool InitialiseGameRenderElement() = 0;
|
|
virtual void ReleaseGameRenderElement() = 0;
|
|
virtual void UpdatePrivateImplementation() = 0;
|
|
|
|
virtual CREGameEffect* GetCREGameEffect() = 0;
|
|
|
|
virtual IGameRenderElementParams* GetParams() = 0;
|
|
}; //------------------------------------------------------------------------------------------------
|
|
|
|
//==================================================================================================
|
|
// Name: CGameRenderElement
|
|
// Desc: Base class for all game render elements
|
|
// Author: James Chilvers
|
|
//==================================================================================================
|
|
class CGameRenderElement
|
|
: public IGameRenderElement
|
|
{
|
|
DECLARE_TYPE(CGameRenderElement, IGameRenderElement); // Exposes this type for SoftCoding
|
|
public:
|
|
CGameRenderElement();
|
|
virtual ~CGameRenderElement() {}
|
|
|
|
virtual bool InitialiseGameRenderElement();
|
|
virtual void ReleaseGameRenderElement();
|
|
virtual void UpdatePrivateImplementation();
|
|
|
|
virtual CREGameEffect* GetCREGameEffect();
|
|
|
|
protected:
|
|
CREGameEffect* SOFT(m_pREGameEffect);
|
|
}; //------------------------------------------------------------------------------------------------
|
|
|
|
//==================================================================================================
|
|
// Name: IGameRenderElementParams
|
|
// Desc: Game Render Element params
|
|
// Author: James Chilvers
|
|
//==================================================================================================
|
|
struct IGameRenderElementParams
|
|
{
|
|
virtual ~IGameRenderElementParams() {}
|
|
}; //------------------------------------------------------------------------------------------------
|
|
|
|
#endif//_EFFECTS_RENDERELEMENTS_GAMERENDERELEMENT_H_
|