2009-08-31 12:16:47 +02:00
|
|
|
/*
|
|
|
|
|
RenderInvocation - Interface for creating processing nodes of various kinds
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2009-08-31 12:16:47 +02:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Hermann Vosseler <Ichthyostega@web.de>
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2009-08-31 12:16:47 +02:00
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
2010-12-17 23:28:49 +01:00
|
|
|
published by the Free Software Foundation; either version 2 of
|
|
|
|
|
the License, or (at your option) any later version.
|
|
|
|
|
|
2009-08-31 12:16:47 +02:00
|
|
|
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.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2009-08-31 12:16:47 +02:00
|
|
|
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.
|
2010-12-17 23:28:49 +01:00
|
|
|
|
2009-08-31 12:16:47 +02:00
|
|
|
* *****************************************************/
|
|
|
|
|
|
|
|
|
|
|
2016-11-03 18:22:31 +01:00
|
|
|
/** @file render-invocation.cpp
|
|
|
|
|
** TODO render-invocation.cpp
|
2016-11-03 18:20:10 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2009-08-31 12:16:47 +02:00
|
|
|
#include "proc/engine/render-invocation.hpp"
|
2009-09-04 01:59:44 +02:00
|
|
|
#include "proc/engine/stateproxy.hpp"
|
|
|
|
|
|
2009-08-31 12:16:47 +02:00
|
|
|
|
2011-12-02 16:10:03 +01:00
|
|
|
namespace proc {
|
2009-08-31 12:16:47 +02:00
|
|
|
namespace engine {
|
|
|
|
|
|
|
|
|
|
namespace { // Details...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // (END) Details...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// using mobject::Placement;
|
|
|
|
|
// using mobject::session::Effect;
|
|
|
|
|
|
|
|
|
|
|
2009-09-04 01:59:44 +02:00
|
|
|
/** @note this builds a one-way off invocation state context
|
|
|
|
|
* and then forwards the call; this may or may not cause
|
|
|
|
|
* actual calculations, depending on the cache.
|
|
|
|
|
* @todo for real use within the engine, the pull()-call should be
|
|
|
|
|
* dispatched through the scheduler; of course then the call semantics
|
|
|
|
|
* would be completely different. Maybe this invocation will be test only?
|
|
|
|
|
*/
|
2009-08-31 12:16:47 +02:00
|
|
|
BuffHandle
|
2009-09-04 01:59:44 +02:00
|
|
|
RenderInvocation::operator[] (size_t channel)
|
2009-08-31 12:16:47 +02:00
|
|
|
{
|
2009-09-04 01:59:44 +02:00
|
|
|
REQUIRE (theNode_);
|
|
|
|
|
REQUIRE (channel < size());
|
|
|
|
|
|
|
|
|
|
StateProxy invocationState;
|
|
|
|
|
return theNode_->pull(invocationState, channel);
|
2009-08-31 12:16:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2011-12-02 16:10:03 +01:00
|
|
|
}} // namespace engine
|