1.10
collision.h
1/*
2 * Copyright (C) 2018 Microchip Technology Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef EGT_DETAIL_COLLISION_H
7#define EGT_DETAIL_COLLISION_H
8
14#include <egt/detail/meta.h>
15#include <egt/geometry.h>
16#include <egt/types.h>
17
18namespace egt
19{
20inline namespace v1
21{
22namespace detail
23{
24
36EGT_API bool alpha_collision(const Rect& lhs, cairo_surface_t* limage,
37 const Rect& rhs, cairo_surface_t* rimage);
38
51EGT_API bool alpha_collision(const Rect& lhs, cairo_surface_t* limage,
52 const Point& rhs);
53
54}
55}
56}
57
58#endif
EGT_API bool alpha_collision(const Rect &lhs, cairo_surface_t *limage, const Rect &rhs, cairo_surface_t *rimage)
Detect alpha collision between two images.
EGT framework namespace.
Definition animation.h:24