lumiera_/src/proc/engine/render-invocation.hpp

78 lines
1.9 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
{
ProcNode* theNode_;
public:
RenderInvocation (ProcNode* exitNode)
: theNode_(exitNode)
{
REQUIRE (theNode_);
}
size_t size() { return theNode_->nrO(); }
/** pull calculated data from the N-th node output channel */
BuffHandle operator[] (size_t channel);
};
///////////////////////////////////TODO: currently just fleshing out the API
} // namespace engine
#endif