DFBResult CoreGraphicsStateClient_FillTriangles( CoreGraphicsStateClient *client, const DFBTriangle *triangles, unsigned int num ) { D_DEBUG_AT( Core_GraphicsStateClient, "%s( client %p )\n", __FUNCTION__, client ); D_MAGIC_ASSERT( client, CoreGraphicsStateClient ); D_ASSERT( triangles != NULL ); if (!dfb_config->call_nodirect && (dfb_core_is_master( client->core ) || !fusion_config->secure_fusion)) { dfb_gfxcard_filltriangles( triangles, num, client->state ); } else { DFBResult ret; CoreGraphicsStateClient_Update( client, DFXL_FILLTRIANGLE, client->state ); ret = CoreGraphicsState_FillTriangles( client->gfx_state, triangles, num ); if (ret) return ret; } return DFB_OK; }
DFBResult IGraphicsState_Real__FillTriangles( CoreGraphicsState *obj, const DFBTriangle *triangles, u32 num ) { D_DEBUG_AT( DirectFB_CoreGraphicsState, "%s()\n", __FUNCTION__ ); if (!obj->state.destination) return DFB_NOCONTEXT; dfb_gfxcard_filltriangles( triangles, num, &obj->state ); return DFB_OK; }