LUMIERA.clone/src/proc/engine/render-invocation.hpp

89 lines
2.2 KiB
C++

/*
RENDER-INVOCATION.hpp - initiate the rendering of a single frame
Copyright (C) Lumiera.org
2009, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/** @file render-invocation.hpp
** Initiate a single calculation unit within the renderengine.
** Usually, this will cause the rendering of a single frame or sub-frame.
**
** @see engine::ProcNode
** @see State
** @see node-basic-test.cpp
**
*/
#ifndef ENGINE_RENDER_INVOCATION_H
#define ENGINE_RENDER_INVOCATION_H
#include "proc/state.hpp"
//#include "proc/engine/procnode.hpp"
//#include "proc/engine/buffhandle.hpp"
//#include "proc/engine/bufftable.hpp"
namespace engine {
/**
* TODO: type comment
*/
class RenderInvocation
: public State
{
protected:
// State& parent_;
// State& current_;
RenderInvocation()
{ }
private: /* === top-level implementation of the State interface === */
BuffHandle allocateBuffer (BufferDescriptor const&);
void releaseBuffer (BuffHandle& bh);
BuffHandle fetch (FrameID const& fID);
void is_calculated (BuffHandle const& bh);
FrameID const& genFrameID (NodeID const&, uint chanNo);
BuffTableStorage& getBuffTableStorage();
virtual State& getCurrentImplementation () { return *this; }
};
///////////////////////////////////TODO: currently just fleshing out the API
} // namespace engine
#endif