The server tree of https://code.moenext.com/nanahira/ygopro.git, branch server, commit 52c868ce071ea0f2fcb0cf39bf2fb4151d12b90c, stock: gframe/, premake5.lua, .ci/, LICENSE, and gframe/ygopro.rc + .ico (upstream keeps them in resource/ and copies them in before building). No game assets, no scripts, no ocgcore submodule: the core is ../core. The third-party sources upstream's Windows CI downloads are vendored here at the positions its premake expects, each with its premake fragment from upstream's premake/ folder inside it: lua 5.4.8, sqlite 3.53.3, libevent 2.1.13-stable (tests, samples and autotools helpers left out; the files its Windows prebuild copies into include/ left out), zlib 1.3.2 (contrib and examples left out), xz 5.8.3 (src/liblzma + src/common only), and irrlicht 1.9 from mycard at 20f86d25: include/ plus the source/Irrlicht headers and the 11 .cpp files the server's zip reader project compiles. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
67 lines
2.8 KiB
C++
67 lines
2.8 KiB
C++
// Written by Colin MacDonald - all rights assigned to Nikolaus Gebhardt
|
|
// Copyright (C) 2008-2012 Nikolaus Gebhardt
|
|
// This file is part of the "Irrlicht Engine".
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
#ifndef IRR_I_LIGHT_MANAGER_H_INCLUDED
|
|
#define IRR_I_LIGHT_MANAGER_H_INCLUDED
|
|
|
|
#include "IReferenceCounted.h"
|
|
#include "irrArray.h"
|
|
#include "ISceneManager.h" // for E_SCENE_NODE_RENDER_PASS, could probably move that to own header?
|
|
|
|
namespace irr
|
|
{
|
|
namespace scene
|
|
{
|
|
class ISceneNode;
|
|
|
|
//! ILightManager provides an interface for user applications to manipulate the list of lights in the scene.
|
|
/** The light list can be trimmed or re-ordered before device/ hardware
|
|
lights are created, and/or individual lights can be switched on and off
|
|
before or after each scene node is rendered. It is assumed that the
|
|
ILightManager implementation will store any data that it wishes to
|
|
retain, i.e. the ISceneManager to which it is assigned, the lightList,
|
|
the current render pass, and the current scene node.
|
|
|
|
It can also be useful for shaders as it allows finding out the currently rendered SceneNode.
|
|
*/
|
|
class ILightManager : public IReferenceCounted
|
|
{
|
|
public:
|
|
//! Called after the scene's light list has been built, but before rendering has begun.
|
|
/** As actual device/hardware lights are not created until the
|
|
ESNRP_LIGHT render pass, this provides an opportunity for the
|
|
light manager to trim or re-order the light list, before any
|
|
device/hardware lights have actually been created.
|
|
\param lightList: the Scene Manager's light list, which
|
|
the light manager may modify. This reference will remain valid
|
|
until OnPostRender().
|
|
*/
|
|
virtual void OnPreRender(core::array<ISceneNode*> & lightList) {}
|
|
|
|
//! Called after the last scene node is rendered.
|
|
/** After this call returns, the lightList passed to OnPreRender() becomes invalid. */
|
|
virtual void OnPostRender(void) {}
|
|
|
|
//! Called before a render pass begins
|
|
/** \param renderPass: the render pass that's about to begin */
|
|
virtual void OnRenderPassPreRender(E_SCENE_NODE_RENDER_PASS renderPass) {}
|
|
|
|
//! Called after the render pass specified in OnRenderPassPreRender() ends
|
|
/** \param[in] renderPass: the render pass that has finished */
|
|
virtual void OnRenderPassPostRender(E_SCENE_NODE_RENDER_PASS renderPass) {}
|
|
|
|
//! Called before the given scene node is rendered
|
|
/** \param[in] node: the scene node that's about to be rendered */
|
|
virtual void OnNodePreRender(ISceneNode* node) {}
|
|
|
|
//! Called after the the node specified in OnNodePreRender() has been rendered
|
|
/** \param[in] node: the scene node that has just been rendered */
|
|
virtual void OnNodePostRender(ISceneNode* node) {}
|
|
};
|
|
} // end namespace scene
|
|
} // end namespace irr
|
|
|
|
#endif
|