[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11632] branches/soc-2007-mosani/source/ blender/render/render_api/plugins: I' ve added files for an actual aqsis plugin.

Aaron Moore two.a.ron at gmail.com
Fri Aug 17 05:12:38 CEST 2007


Revision: 11632
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11632
Author:   mosani
Date:     2007-08-17 05:12:37 +0200 (Fri, 17 Aug 2007)

Log Message:
-----------
I've added files for an actual aqsis plugin.

Added Paths:
-----------
    branches/soc-2007-mosani/source/blender/render/render_api/plugins/aqsis/
    branches/soc-2007-mosani/source/blender/render/render_api/plugins/aqsis/SConstruct
    branches/soc-2007-mosani/source/blender/render/render_api/plugins/aqsis/aqsis_plugin.c

Added: branches/soc-2007-mosani/source/blender/render/render_api/plugins/aqsis/SConstruct
===================================================================
--- branches/soc-2007-mosani/source/blender/render/render_api/plugins/aqsis/SConstruct	                        (rev 0)
+++ branches/soc-2007-mosani/source/blender/render/render_api/plugins/aqsis/SConstruct	2007-08-17 03:12:37 UTC (rev 11632)
@@ -0,0 +1,37 @@
+
+###################################
+# Compilation variables to modify.
+###################################
+
+library_name = "aqsis_plugin"
+library_sources = ["aqsis_plugin.c"]
+
+include_paths = [".", "../../../../blenpluginapi", "../../include"]
+include_paths += ["../../../../makesdna", "/usr/include/aqsis"]
+
+compiler_flags = '-g'
+linker_flags = '-g'
+
+#######################################
+# END Compilation variables to modify.
+#######################################
+
+
+
+#########
+# SETUP #
+#########
+
+# Set up our compile environment.
+env = Environment( CCFLAGS = compiler_flags, LINKFLAGS = linker_flags, CPPPATH = include_paths )
+
+
+
+###########
+# COMPILE #
+###########
+
+lib = env.SharedLibrary( library_name, library_sources, LIBS="aqsis", LIBPATH="/usr/lib" )
+env.Install( '../', lib )
+env.Alias( 'install', '../' )
+

Added: branches/soc-2007-mosani/source/blender/render/render_api/plugins/aqsis/aqsis_plugin.c
===================================================================
--- branches/soc-2007-mosani/source/blender/render/render_api/plugins/aqsis/aqsis_plugin.c	                        (rev 0)
+++ branches/soc-2007-mosani/source/blender/render/render_api/plugins/aqsis/aqsis_plugin.c	2007-08-17 03:12:37 UTC (rev 11632)
@@ -0,0 +1,52 @@
+/* A test renderer plugin */
+
+#include <stdio.h>
+#include "PLU_api.h"
+#include "RenderAPI.h"
+#include "ri.h"
+
+PLU_IMPORT_API(register)
+RND_IMPORT_FULL_API
+
+/* after you added the renderapi interface PLU_renderapi.h, you will need:
+
+
+   and also change every call of RND_something to PLU_renderapi->something
+
+or
+
+PLU_IMPORT_API(rnd_object)
+PLU_IMPORT_API(rnd_...)
+
+*/
+
+static void setup( RNDScene scene )
+{
+	RiDisplay( "file.jpg", "file", "rgb", RI_NULL );
+	RiFormat( 
+		RND_get_image_width( scene ),
+		RND_get_image_height( scene ), 1 );
+}
+static void render_frame( RNDScene scene, RNDResult result )
+{
+}
+static void finish( RNDScene scene )
+{
+}
+
+plugin_instance_t* init( plugin_control_t *c ){ return NULL; }
+void free_renderer( plugin_instance_t *This ){}
+
+void plugin_query()
+{
+	PLU_register->render_output(
+		"Aqsis Plugin",
+		"Aqsis",
+		"mosani, and others?",
+		"GPL",
+		"Help.",
+		"14 July 2007",
+		0,
+		init, init, free_renderer,
+		setup, render_frame, finish );
+}





More information about the Bf-blender-cvs mailing list