zenilib: zenilib/jni/external/zenilib/zeni_graphics/Zeni/EZ2D.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
Zeni::increment_sprite_frame
void increment_sprite_frame(const String &sprite_name)
Definition: EZ2D.cpp:107
Undefine.h
Zeni::render_image
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
Coordinate.h
Vector3f.h
Define.h
Zeni::decrement_sprite_frame
void decrement_sprite_frame(const String &sprite_name)
Definition: EZ2D.cpp:128
Zeni::is_sprite
bool is_sprite(const String &sprite)
Definition: EZ2D.cpp:84
Zeni::sprite_num_frames
int sprite_num_frames(const String &sprite)
Definition: EZ2D.cpp:91
String.h
Color.h
Zeni::set_sprite_frame
void set_sprite_frame(const String &sprite, const int &frame_number)
Definition: EZ2D.cpp:98