util.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. (c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org)
  3. (c) Copyright 2000-2004 Convergence (integrated media) GmbH
  4. All rights reserved.
  5. Written by Denis Oliver Kropp <dok@directfb.org>,
  6. Andreas Hundt <andi@fischlustig.de>,
  7. Sven Neumann <neo@directfb.org>,
  8. Ville Syrjälä <syrjala@sci.fi> and
  9. Claudio Ciccani <klan@users.sf.net>.
  10. This library is free software; you can redistribute it and/or
  11. modify it under the terms of the GNU Lesser General Public
  12. License as published by the Free Software Foundation; either
  13. version 2 of the License, or (at your option) any later version.
  14. This library is distributed in the hope that it will be useful,
  15. but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. Lesser General Public License for more details.
  18. You should have received a copy of the GNU Lesser General Public
  19. License along with this library; if not, write to the
  20. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  21. Boston, MA 02111-1307, USA.
  22. */
  23. #ifndef __GFX__UTIL_H__
  24. #define __GFX__UTIL_H__
  25. #include <core/surface.h>
  26. void dfb_gfx_copy( CoreSurface *source, CoreSurface *destination, const DFBRectangle *rect );
  27. void dfb_gfx_copy_to( CoreSurface *source, CoreSurface *destination, const DFBRectangle *rect, int x, int y, bool from_back );
  28. void dfb_gfx_stretch_to( CoreSurface *source, CoreSurface *destination, const DFBRectangle *srect, const DFBRectangle *drect, bool from_back );
  29. void dfb_back_to_front_copy( CoreSurface *surface, const DFBRegion *region );
  30. void dfb_back_to_front_copy_rotation( CoreSurface *surface, const DFBRegion *region, int rotation );
  31. void dfb_clear_depth( CoreSurface *surface, const DFBRegion *region );
  32. void dfb_sort_triangle( DFBTriangle *tri );
  33. void dfb_sort_trapezoid( DFBTrapezoid *trap );
  34. void dfb_gfx_copy_regions( CoreSurface *source,
  35. CoreSurfaceBufferRole from,
  36. CoreSurface *destination,
  37. CoreSurfaceBufferRole to,
  38. const DFBRegion *regions,
  39. unsigned int num,
  40. int x,
  41. int y );
  42. #endif