More rearrangement and renaming.
Change-Id: Ia922c5bff1734a29b786ba95065f81c8dedf90cd
diff --git a/scriptc/rs_core.rsh b/scriptc/rs_core.rsh
index 5b99976..5072e18 100644
--- a/scriptc/rs_core.rsh
+++ b/scriptc/rs_core.rsh
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 The Android Open Source Project
+ * Copyright (C) 2011-2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,16 +33,12 @@
#include "rs_debug.rsh"
#include "rs_element.rsh"
#include "rs_math.rsh"
-#include "rs_mesh.rsh"
#include "rs_matrix.rsh"
#include "rs_object.rsh"
-#include "rs_program.rsh"
#include "rs_quaternion.rsh"
#include "rs_sampler.rsh"
#include "rs_time.rsh"
-
-
/**
* Send a message back to the client. Will not block and returns true
* if the message was sendable and false if the fifo was full.
diff --git a/scriptc/rs_graphics.rsh b/scriptc/rs_graphics.rsh
index 80491ee..44ee99f 100644
--- a/scriptc/rs_graphics.rsh
+++ b/scriptc/rs_graphics.rsh
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 The Android Open Source Project
+ * Copyright (C) 2011-2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,6 +23,9 @@
#ifndef __RS_GRAPHICS_RSH__
#define __RS_GRAPHICS_RSH__
+#include "rs_mesh.rsh"
+#include "rs_program.rsh"
+
#if (defined(RS_VERSION) && (RS_VERSION >= 14))
/**
* Set the color target used for all subsequent rendering calls
diff --git a/scriptc/rs_mesh.rsh b/scriptc/rs_mesh.rsh
index 88f229b..b606c1c 100644
--- a/scriptc/rs_mesh.rsh
+++ b/scriptc/rs_mesh.rsh
@@ -54,7 +54,7 @@
* data
*/
extern uint32_t __attribute__((overloadable))
- rsMeshGetVertexAllocationCount(rs_mesh m);
+ rsgMeshGetVertexAllocationCount(rs_mesh m);
/**
* @param m mesh to get data from
@@ -63,7 +63,7 @@
* containing index data
*/
extern uint32_t __attribute__((overloadable))
- rsMeshGetPrimitiveCount(rs_mesh m);
+ rsgMeshGetPrimitiveCount(rs_mesh m);
/**
* @param m mesh to get data from
@@ -71,7 +71,7 @@
* @return allocation containing vertex data
*/
extern rs_allocation __attribute__((overloadable))
- rsMeshGetVertexAllocation(rs_mesh m, uint32_t index);
+ rsgMeshGetVertexAllocation(rs_mesh m, uint32_t index);
/**
* @param m mesh to get data from
@@ -79,7 +79,7 @@
* @return allocation containing index data
*/
extern rs_allocation __attribute__((overloadable))
- rsMeshGetIndexAllocation(rs_mesh m, uint32_t index);
+ rsgMeshGetIndexAllocation(rs_mesh m, uint32_t index);
/**
* @param m mesh to get data from
@@ -87,7 +87,7 @@
* @return primitive describing how the mesh is rendered
*/
extern rs_primitive __attribute__((overloadable))
- rsMeshGetPrimitive(rs_mesh m, uint32_t index);
+ rsgMeshGetPrimitive(rs_mesh m, uint32_t index);
#endif // __RS_MESH_RSH__
diff --git a/scriptc/rs_program.rsh b/scriptc/rs_program.rsh
index 8c52680..7434a77 100644
--- a/scriptc/rs_program.rsh
+++ b/scriptc/rs_program.rsh
@@ -55,7 +55,7 @@
* @param ps
*/
extern rs_depth_func __attribute__((overloadable))
- rsProgramStoreGetDepthFunc(rs_program_store ps);
+ rsgProgramStoreGetDepthFunc(rs_program_store ps);
/**
* @hide
@@ -64,7 +64,7 @@
* @param ps
*/
extern bool __attribute__((overloadable))
- rsProgramStoreGetDepthMask(rs_program_store ps);
+ rsgProgramStoreGetDepthMask(rs_program_store ps);
/**
* @hide
* Get program store red component color mask
@@ -72,7 +72,7 @@
* @param ps
*/
extern bool __attribute__((overloadable))
- rsProgramStoreGetColorMaskR(rs_program_store ps);
+ rsgProgramStoreGetColorMaskR(rs_program_store ps);
/**
* @hide
@@ -81,7 +81,7 @@
* @param ps
*/
extern bool __attribute__((overloadable))
- rsProgramStoreGetColorMaskG(rs_program_store ps);
+ rsgProgramStoreGetColorMaskG(rs_program_store ps);
/**
* @hide
@@ -90,7 +90,7 @@
* @param ps
*/
extern bool __attribute__((overloadable))
- rsProgramStoreGetColorMaskB(rs_program_store ps);
+ rsgProgramStoreGetColorMaskB(rs_program_store ps);
/**
* @hide
@@ -99,7 +99,7 @@
* @param ps
*/
extern bool __attribute__((overloadable))
- rsProgramStoreGetColorMaskA(rs_program_store ps);
+ rsgProgramStoreGetColorMaskA(rs_program_store ps);
/**
* @hide
@@ -108,7 +108,7 @@
* @param ps
*/
extern rs_blend_src_func __attribute__((overloadable))
- rsProgramStoreGetBlendSrcFunc(rs_program_store ps);
+ rsgProgramStoreGetBlendSrcFunc(rs_program_store ps);
/**
* @hide
@@ -117,7 +117,7 @@
* @param ps
*/
extern rs_blend_dst_func __attribute__((overloadable))
- rsProgramStoreGetBlendDstFunc(rs_program_store ps);
+ rsgProgramStoreGetBlendDstFunc(rs_program_store ps);
/**
* @hide
@@ -126,7 +126,7 @@
* @param ps
*/
extern bool __attribute__((overloadable))
- rsProgramStoreGetDitherEnabled(rs_program_store ps);
+ rsgProgramStoreGetDitherEnabled(rs_program_store ps);
/**
* @hide
@@ -135,7 +135,7 @@
* @param pr
*/
extern bool __attribute__((overloadable))
- rsProgramRasterGetPointSpriteEnabled(rs_program_raster pr);
+ rsgProgramRasterGetPointSpriteEnabled(rs_program_raster pr);
/**
* @hide
@@ -144,7 +144,7 @@
* @param pr
*/
extern rs_cull_mode __attribute__((overloadable))
- rsProgramRasterGetCullMode(rs_program_raster pr);
+ rsgProgramRasterGetCullMode(rs_program_raster pr);