531 Commits

Author SHA1 Message Date
Jason Sams
d5680f9ba9 Fix bug with bad conversion of java strings to C strings for object names. Update test app to test object defines. 2009-06-10 18:39:40 -07:00
Jason Sams
196ac850af Fix build error due to bad path generation in makefile for generated tools.
Implemented by JoeO
2009-06-10 18:35:42 -07:00
Jason Sams
94d8e90ad7 Split renderscript java code from test apps. Update makefiles. 2009-06-10 16:09:05 -07:00
Jason Sams
3eaa338e11 Add named objects and implement support for ProgramFragmentStore and ProgramFragment to be used by name in scripts. 2009-06-10 15:04:38 -07:00
Jason Sams
da423d8479 checkpoint pragma support. Includes more cleanup of script enviroment storage to keep the env settings in the base and only the per language state in ScriptC. 2009-06-09 12:15:30 -07:00
Jason Sams
928f5cf287 Move placement of script enviroment data to base. 2009-06-08 18:50:13 -07:00
Jason Sams
3a833d8e0f Fix build issue and ref count bug with scripts. 2009-06-08 15:20:31 -07:00
Jason Sams
39ddc950c9 Move call to compiler from jni to core library code. 2009-06-05 17:35:09 -07:00
Jack Palevich
2a741ad51f Use ANSI style function declaration for RS scripts. 2009-06-04 20:16:39 -07:00
Jason Sams
a09f11d6c6 Add support for scripts to return an animation flag. This allows them to indicate they are generating changing content and the rs thread to sleep if the content is static. 2009-06-04 17:58:03 -07:00
Jason Sams
8ad0010d6e Set the RS thread priority. 2009-06-04 14:35:01 -07:00
Jason Sams
33c824d17b Remove pointer hacks from script and use standard load/store functions. 2009-06-03 18:29:04 -07:00
Jason Sams
e2ae85fc5a Generalize bitmap support and add remaining GL formats.
Fix bug in command fifo looping case.
2009-06-03 16:04:54 -07:00
Jason Sams
ffe9f48890 Improve bitmap support and do conversion in native rather than java code to reduce conversion time. 2009-06-01 17:45:53 -07:00
Jack Palevich
e1ab434926 Don't prelink the libRS libraries.
These are temporary libraries for the development of RenderScript, so they
don't have to be prelinked.
2009-05-29 14:38:01 -07:00
Jason Sams
243e3fbcf7 Implement sampler GL setup code. 2009-05-28 16:16:46 -07:00
Jason Sams
02fb2cb531 Add sampler support 2009-05-28 16:16:46 -07:00
Jack Palevich
ec5a20bf2b Delete the acc script when deleting the Renderscript rsScriptC object.
Previously we had been leaking the ACCscript object.
2009-05-28 15:53:04 -07:00
Jack Palevich
63975dde40 Remove versions of scriptCSetScript method that take byte arrays.
This makes the API simpler, and therefore probably easier to use.
2009-05-28 15:34:15 -07:00
Jack Palevich
43702d8925 Add support for setting scripts, rather than having a hard-coded script.
Move the test script into a resource file.
Add APIs for reading a script from a resource, InputStream, string, or
byte array.
2009-05-28 13:38:16 -07:00
Jason Sams
0ae234c991 Add background bitmap to fountain test app for renderscript. 2009-05-27 17:46:57 -07:00
Jack Palevich
df98851d2f Change the Fountain test app's package to com.android.fountain.
It had been com.android.calc, which caused conflicts with the real Calc
application.
2009-05-27 17:00:45 -07:00
Android (Google) Code Review
ba89724351 Merge change 2568
* changes:
  Enable renderscript to build under the simulator.
2009-05-27 15:29:32 -07:00
Jack Palevich
81d0a9a70a Enable renderscript to build under the simulator.
Added missing #include file to declare memcpy().
2009-05-27 15:26:57 -07:00
Jason Sams
fe08d99725 Implement first pass bitmap to allocation support. The Java bindings can create a 2D allocation by passing in a Bitmap object. 2009-05-27 14:45:32 -07:00
Jack Palevich
8191d0f634 Turn on ACC script test. (It works!)
+ Modified test script to work with the limitations of the ACC langauge.
   - No <op>=
   - use correct C API names for callback methods.
2009-05-27 12:38:37 -07:00
Jack Palevich
55d4522392 Fix Fountain test app so that it actually builds.
Also check in first part of an libACC implementation.
2009-05-26 19:21:23 -07:00
Jack Palevich
eaff30744e Fix RenderScript JNI code build issue.
We should not try to build the JNI file until after we have built the
the generated header files that it includes.
2009-05-26 17:23:34 -07:00
Jack Palevich
5da30b73d4 Rename Calc sample to Fountain. 2009-05-26 14:26:43 -07:00
Jack Palevich
60aa3eaf55 Add sprite fountain test.
It's still called "Calc".
2009-05-26 13:45:08 -07:00
Jason Sams
d19f10d43a Add the Renderscript library. (Not in the build by default yet.)
This library can be used to create animated 3D User Interfaces.

This library is currently under heavy development, so it's not part of
the build by default.

In order to build this library, you must define

   BUILD_RENDERSCRIPT=true

in your build environment.

You will also have to manually edit

 build/core/prelink-linux-arm.map

And add libRS and libRS_jni at the end like this (exact address may change.)

libRS.so                0x9A100000
libRS_jni.so            0x9A000000
2009-05-22 17:11:00 -07:00