Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/compositor/operations/COM_RenderLayersBaseProg.h')
-rw-r--r--source/blender/compositor/operations/COM_RenderLayersBaseProg.h55
1 files changed, 27 insertions, 28 deletions
diff --git a/source/blender/compositor/operations/COM_RenderLayersBaseProg.h b/source/blender/compositor/operations/COM_RenderLayersBaseProg.h
index 64e2496621f..ce2b8f767b6 100644
--- a/source/blender/compositor/operations/COM_RenderLayersBaseProg.h
+++ b/source/blender/compositor/operations/COM_RenderLayersBaseProg.h
@@ -36,64 +36,63 @@ extern "C" {
}
/**
- * Base class for all renderlayeroperations
- *
- * @todo: rename to operation.
- */
+ * Base class for all renderlayeroperations
+ *
+ * @todo: rename to operation.
+ */
class RenderLayersBaseProg : public NodeOperation {
private:
/**
- * Reference to the scene object.
- */
+ * Reference to the scene object.
+ */
Scene *scene;
/**
- * layerId of the layer where this operation needs to get its data from
- */
+ * layerId of the layer where this operation needs to get its data from
+ */
short layerId;
/**
- * cached instance to the float buffer inside the layer
- */
+ * cached instance to the float buffer inside the layer
+ */
float *inputBuffer;
/**
- * renderpass where this operation needs to get its data from
- */
+ * renderpass where this operation needs to get its data from
+ */
int renderpass;
int elementsize;
protected:
/**
- * Constructor
- */
+ * Constructor
+ */
RenderLayersBaseProg(int renderpass, int elementsize);
/**
- * Determine the output resolution. The resolution is retrieved from the Renderer
- */
+ * Determine the output resolution. The resolution is retrieved from the Renderer
+ */
void determineResolution(unsigned int resolution[], unsigned int preferredResolution[]);
/**
- * retrieve the reference to the float buffer of the renderer.
- */
- inline float *getInputBuffer() {return this->inputBuffer;}
+ * retrieve the reference to the float buffer of the renderer.
+ */
+ inline float *getInputBuffer() { return this->inputBuffer; }
public:
/**
- * setter for the scene field. Will be called from
- * @see RenderLayerNode to set the actual scene where
- * the data will be retrieved from.
- */
- void setScene(Scene *scene) {this->scene = scene;}
- Scene *getScene() {return this->scene;}
- void setLayerId(short layerId) {this->layerId = layerId;}
- short getLayerId() {return this->layerId;}
+ * setter for the scene field. Will be called from
+ * @see RenderLayerNode to set the actual scene where
+ * the data will be retrieved from.
+ */
+ void setScene(Scene *scene) { this->scene = scene; }
+ Scene *getScene() { return this->scene; }
+ void setLayerId(short layerId) { this->layerId = layerId; }
+ short getLayerId() { return this->layerId; }
void initExecution();
void deinitExecution();
void executePixel(float *output, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]);
-
};
#endif