diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2010-06-24 17:15:34 -0700 |
|---|---|---|
| committer | Alex Sakhartchouk <alexst@google.com> | 2010-06-24 17:15:34 -0700 |
| commit | 9b949fce39f0f39ce9275b71d7c347210775e7a8 (patch) | |
| tree | 76b739126b5b3f10e8fd0bc63071dd22a105e227 /libs/rs/scriptc | |
| parent | 8f31bd6b68c796d4a4176721a6e13bfdba2166e0 (diff) | |
| download | frameworks_base-9b949fce39f0f39ce9275b71d7c347210775e7a8.zip frameworks_base-9b949fce39f0f39ce9275b71d7c347210775e7a8.tar.gz frameworks_base-9b949fce39f0f39ce9275b71d7c347210775e7a8.tar.bz2 | |
Adding freetype font rendering to renderscript.
Change-Id: I3a10ffe27092a41df156341c9cb3f7aa19c49f19
Diffstat (limited to 'libs/rs/scriptc')
| -rw-r--r-- | libs/rs/scriptc/rs_graphics.rsh | 4 | ||||
| -rw-r--r-- | libs/rs/scriptc/rs_types.rsh | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libs/rs/scriptc/rs_graphics.rsh b/libs/rs/scriptc/rs_graphics.rsh index c9667d0..fba3d6d 100644 --- a/libs/rs/scriptc/rs_graphics.rsh +++ b/libs/rs/scriptc/rs_graphics.rsh @@ -35,6 +35,10 @@ extern void __attribute__((overloadable)) rsgDrawSimpleMesh(rs_mesh ism, int sta extern void rsgClearColor(float, float, float, float); extern void rsgClearDepth(float); +extern void __attribute__((overloadable)) rsgDrawText(const char *, int x, int y); +extern void __attribute__((overloadable)) rsgDrawText(rs_allocation, int x, int y); +extern void rsgBindFont(rs_font); + /////////////////////////////////////////////////////// // misc extern void color(float, float, float, float); diff --git a/libs/rs/scriptc/rs_types.rsh b/libs/rs/scriptc/rs_types.rsh index 1d8f1bd..69e1aed 100644 --- a/libs/rs/scriptc/rs_types.rsh +++ b/libs/rs/scriptc/rs_types.rsh @@ -24,6 +24,7 @@ typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_program_fragme typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_program_vertex; typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_program_raster; typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_program_store; +typedef struct { int* p; } __attribute__((packed, aligned(4))) rs_font; typedef float float2 __attribute__((ext_vector_type(2))); typedef float float3 __attribute__((ext_vector_type(3))); |
