From 9b949fce39f0f39ce9275b71d7c347210775e7a8 Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Thu, 24 Jun 2010 17:15:34 -0700 Subject: Adding freetype font rendering to renderscript. Change-Id: I3a10ffe27092a41df156341c9cb3f7aa19c49f19 --- libs/rs/scriptc/rs_graphics.rsh | 4 ++++ libs/rs/scriptc/rs_types.rsh | 1 + 2 files changed, 5 insertions(+) (limited to 'libs/rs/scriptc') diff --git a/libs/rs/scriptc/rs_graphics.rsh b/libs/rs/scriptc/rs_graphics.rsh index c9667d037cbb..fba3d6d0acd0 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 1d8f1bdacbc7..69e1aedef2f7 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))); -- cgit v1.2.3-59-g8ed1b