equal
deleted
inserted
replaced
30 #include "fontscalerdefs.h" |
30 #include "fontscalerdefs.h" |
31 |
31 |
32 /** |
32 /** |
33 * Constants that control the size of the vertex cache. |
33 * Constants that control the size of the vertex cache. |
34 */ |
34 */ |
35 #define MTLVC_MAX_INDEX 960 |
35 #define MTLVC_MAX_INDEX 192 |
36 |
36 |
37 /** |
37 /** |
38 * Constants that control the size of the texture pool. |
38 * Constants that control the size of the texture pool. |
39 */ |
39 */ |
40 #define MTLVC_MAX_TEX_INDEX 32 |
40 #define MTLVC_MAX_TEX_INDEX 32 |
68 (MTLVC_MASK_CACHE_HEIGHT_IN_TEXELS - MTLVC_MASK_CACHE_TILE_HEIGHT) |
68 (MTLVC_MASK_CACHE_HEIGHT_IN_TEXELS - MTLVC_MASK_CACHE_TILE_HEIGHT) |
69 |
69 |
70 /** |
70 /** |
71 * Exported methods. |
71 * Exported methods. |
72 */ |
72 */ |
73 jboolean MTLVertexCache_InitVertexCache(MTLContext *mtlc); |
73 jboolean MTLVertexCache_InitVertexCache(); |
74 void MTLVertexCache_FlushVertexCache(MTLContext *mtlc); |
74 void MTLVertexCache_FlushVertexCache(MTLContext *mtlc); |
75 void MTLVertexCache_RestoreColorState(MTLContext *mtlc); |
75 void MTLVertexCache_RestoreColorState(MTLContext *mtlc); |
76 |
76 |
77 void MTLVertexCache_EnableMaskCache(MTLContext *mtlc); |
77 void MTLVertexCache_EnableMaskCache(MTLContext *mtlc); |
78 void MTLVertexCache_DisableMaskCache(MTLContext *mtlc); |
78 void MTLVertexCache_DisableMaskCache(MTLContext *mtlc); |
82 jint width, jint height, |
82 jint width, jint height, |
83 jint maskscan, void *mask); |
83 jint maskscan, void *mask); |
84 |
84 |
85 void MTLVertexCache_AddGlyphTexture(MTLContext *mtlc, |
85 void MTLVertexCache_AddGlyphTexture(MTLContext *mtlc, |
86 jint width, jint height, |
86 jint width, jint height, |
87 GlyphInfo *ginfo); |
87 GlyphInfo *ginfo, |
|
88 BMTLSDOps *dstOps); |
88 void MTLVertexCache_AddVertexTriangles(jfloat dx1, jfloat dy1, |
89 void MTLVertexCache_AddVertexTriangles(jfloat dx1, jfloat dy1, |
89 jfloat dx2, jfloat dy2); |
90 jfloat dx2, jfloat dy2); |
90 void MTLVertexCache_CreateSamplingEncoder(MTLContext *mtlc, BMTLSDOps *dstOps); |
91 void MTLVertexCache_CreateSamplingEncoder(MTLContext *mtlc, BMTLSDOps *dstOps); |
91 |
92 |
92 #endif /* MTLVertexCache_h_Included */ |
93 #endif /* MTLVertexCache_h_Included */ |