zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EZ2D.h
Go to the documentation of this file.
1 /* This file is part of the Zenipex Library (zenilib).
2  * Copyright (C) 2011 Mitchell Keith Bloch (bazald).
3  *
4  * zenilib is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * zenilib is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with zenilib. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef ZENI_EZ2D_H
19 #define ZENI_EZ2D_H
20 
21 #include <Zeni/Color.h>
22 #include <Zeni/Coordinate.h>
23 #include <Zeni/String.h>
24 #include <Zeni/Vector3f.h>
25 
26 #include <Zeni/Define.h>
27 
28 namespace Zeni {
29 
36  ZENI_GRAPHICS_DLL void render_image(
37  const String &image_name,
38  const Point2f &upper_left,
39  const Point2f &lower_right,
40  const bool &horizontally_flipped = false,
41  const Color &color_filter = Color());
42 
51  ZENI_GRAPHICS_DLL void render_image(
52  const String &image_name,
53  const Point2f &upper_left,
54  const Point2f &lower_right,
55  const float &radians_ccw,
56  const float &scaling_factor,
57  const Point2f &about,
58  const bool &horizontally_flipped = false,
59  const Color &color_filter = Color());
60 
64  ZENI_GRAPHICS_DLL bool is_sprite(
65  const String &image_name);
66 
70  ZENI_GRAPHICS_DLL int sprite_num_frames(
71  const String &image_name);
72 
76  ZENI_GRAPHICS_DLL void set_sprite_frame(
77  const String &image_name,
78  const int &frame_number);
79 
83  ZENI_GRAPHICS_DLL void increment_sprite_frame(
84  const String &image_name);
85 
89  ZENI_GRAPHICS_DLL void decrement_sprite_frame(
90  const String &image_name);
91 
92 }
93 
94 #include <Zeni/Undefine.h>
95 
96 #endif
void increment_sprite_frame(const String &sprite_name)
Definition: EZ2D.cpp:107
void render_image(const String &image_name, const Point2f &upper_left, const Point2f &lower_right, const bool &horizontally_flipped, const Color &color_filter)
Definition: EZ2D.cpp:22
void decrement_sprite_frame(const String &sprite_name)
Definition: EZ2D.cpp:128
bool is_sprite(const String &sprite)
Definition: EZ2D.cpp:84
int sprite_num_frames(const String &sprite)
Definition: EZ2D.cpp:91
void set_sprite_frame(const String &sprite, const int &frame_number)
Definition: EZ2D.cpp:98