497 Commits

Author SHA1 Message Date
Jason Sams
fdcc14e7a2 Update rollo and support functions. Includes mockup of some new ui concepts. 2009-07-01 16:41:34 -07:00
Jason Sams
7c878f3a83 Begin adding mesh 2009-06-30 14:13:25 -07:00
Mathias Agopian
f31868e59f merge master in master_gl 2009-06-24 18:31:21 -07:00
Jason Sams
f29ca50d80 Cleanup logging and fix a startup race condition that manifested on Firestone. 2009-06-23 12:22:47 -07:00
Jason Sams
f8001669ba Fix 3 bugs in fountain test. Correctly generate the last mip level of a non-square mip chain. Default the background to not blended and disable dither/depth. 2009-06-22 18:13:36 -07:00
Mathias Agopian
3142f4f40b update renderscript to master_gl APIs 2009-06-22 18:01:09 -07:00
Jason Sams
4b962e57a9 Cleanup includes so Log.h can use the tag. rsUtils.h is the file that should be included everywhere and contain rs global defines. 2009-06-22 17:15:15 -07:00
Jason Sams
bba134c8a1 All light source objects. 2009-06-22 15:49:21 -07:00
Jason Sams
af49c744d0 implement modeview matrix sliding from within scripts. 2009-06-19 18:33:44 -07:00
Jason Sams
462d11b880 checkpoint filmstrip, implemented TLS. 2009-06-19 16:03:18 -07:00
Jason Sams
2d9c39d6e1 Fix two minor issues. Rename launchID to launchIndex and make util class Matrix public for apps to use. 2009-06-18 19:52:45 -07:00
Jason Sams
5f7fc27dce Replace spins with proper pthread conditions. 2009-06-18 16:58:42 -07:00
Jason Sams
9c54bdbf45 Implement default programs and implement defaults and parents for imports. 2009-06-17 16:52:59 -07:00
Jason Sams
b37c0a5db6 Switch fountain to use ProgramVertex rather than hard coded camers in scripts. Remove camera code from scripts. 2009-06-16 17:49:58 -07:00
Jason Sams
0826a6f90f Bug fixes. TriangleMesh now ref-counts, implement missing element formats, add missing modes for program vertex. Add matrix support classes. Add test app rollo 2009-06-15 19:04:56 -07:00
Jason Sams
1fe9b8c3bd Split FountainView into View and RS parts. Beging adding ProgramVertex to the java api. It was already implemented in native. 2009-06-11 14:46:10 -07:00
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