![]() |
neoGFX
C++ GPU-oriented GUI library and app/game creation framework.
|
#include <shape.hpp>
Classes | |
struct | animation_info |
Public Types | |
typedef i_shape::frame_index | frame_index |
typedef i_shape::time_interval | time_interval |
typedef i_shape::animation_frame | animation_frame |
typedef i_shape::animation_frames | animation_frames |
typedef i_shape::time_interval | time_interval |
typedef i_shape::optional_time_interval | optional_time_interval |
typedef boost::optional< animation_info > | optional_animation_info |
![]() | |
typedef std::size_t | frame_index |
typedef scalar | time_interval |
typedef std::pair< frame_index, time_interval > | animation_frame |
typedef std::vector< animation_frame > | animation_frames |
typedef boost::optional< time_interval > | optional_time_interval |
Public Member Functions | |
shape () | |
shape (const colour &aColour) | |
shape (const i_texture &aTexture, const optional_animation_info &aAnimationInfo=optional_animation_info()) | |
shape (const i_image &aImage, const optional_animation_info &aAnimationInfo=optional_animation_info()) | |
shape (const i_texture &aTexture, const rect &aTextureRect, const optional_animation_info &aAnimationInfo=optional_animation_info()) | |
shape (const i_image &aImage, const rect &aTextureRect, const optional_animation_info &aAnimationInfo=optional_animation_info()) | |
shape (i_shape_container &aContainer) | |
shape (i_shape_container &aContainer, const colour &aColour) | |
shape (i_shape_container &aContainer, const i_texture &aTexture, const optional_animation_info &aAnimationInfo=optional_animation_info()) | |
shape (i_shape_container &aContainer, const i_image &aImage, const optional_animation_info &aAnimationInfo=optional_animation_info()) | |
shape (i_shape_container &aContainer, const i_texture &aTexture, const rect &aTextureRect, const optional_animation_info &aAnimationInfo=optional_animation_info()) | |
shape (i_shape_container &aContainer, const i_image &aImage, const rect &aTextureRect, const optional_animation_info &aAnimationInfo=optional_animation_info()) | |
shape (const shape &aOther) | |
object_category | category () const override |
const i_shape & | as_shape () const override |
i_shape & | as_shape () override |
const i_collidable_object & | as_collidable_object () const override |
i_collidable_object & | as_collidable_object () override |
const i_physical_object & | as_physical_object () const override |
i_physical_object & | as_physical_object () override |
bool | killed () const override |
void | kill () override |
vertex_list_pointer | vertices () const override |
texture_list_pointer | textures () const override |
face_list | faces () const override |
face_list | active_faces () const override |
void | activate_faces (face_list aActiveFaces) const override |
mat44 | transformation_matrix () const override |
const vertex_list & | transformed_vertices () const override |
void | set_vertices (vertex_list_pointer aVertices) override |
void | set_textures (texture_list_pointer aTextures) override |
void | set_faces (face_list aFaces) override |
const i_shape_container & | container () const override |
i_shape_container & | container () override |
bool | is_tag () const override |
i_shape & | tag_of () const override |
void | set_tag_of (i_shape &aTagOf, const vec3 &aOffset=vec3{}) override |
const vec3 & | tag_offset () const override |
void | set_tag_offset (const vec3 &aOffset) override |
void | unset_tag_of () override |
frame_index | frame_count () const override |
const i_shape_frame & | shape_frame (frame_index aFrameIndex) const override |
i_shape_frame & | shape_frame (frame_index aFrameIndex) override |
void | add_frame (i_shape_frame &aFrame) override |
void | add_frame (std::shared_ptr< i_shape_frame > aFrame) override |
void | replace_frame (frame_index aFrameIndex, i_shape_frame &aFrame) override |
void | replace_frame (frame_index aFrameIndex, std::shared_ptr< i_shape_frame > aFrame) override |
void | remove_frame (frame_index aFrameIndex) override |
const animation_frames & | animation () const override |
bool | repeat_animation () const override |
const animation_frame & | current_animation_frame () const override |
bool | has_animation_finished () const override |
void | animation_finished () override |
frame_index | current_frame_index () const override |
const i_shape_frame & | current_frame () const override |
i_shape_frame & | current_frame () |
vec3 | origin () const override |
vec3 | position () const override |
vec3 | extents () const override |
rect | bounding_box_2d (bool aWithPosition=true) const override |
void | set_animation (const animation_frames &aAnimation) override |
void | set_current_frame (frame_index aFrameIndex) override |
void | set_origin (const vec3 &aOrigin) override |
void | set_position (const vec3 &aPosition) override |
void | clear_extents () override |
void | set_extents (const vec3 &aExtents) override |
bool | has_transformation_matrix () const override |
void | clear_transformation_matrix () override |
void | set_transformation_matrix (const mat33 &aTransformationMatrix) override |
void | set_transformation_matrix (const mat44 &aTransformationMatrix) override |
bool | update (time_interval aNow) override |
void | paint (graphics_context &aGraphicsContext) const override |
virtual void | clear_vertices_cache () |
![]() | |
virtual | ~i_shape () |
void | set_origin (const vec2 &aOrigin) |
void | set_origin (const point &aOrigin) |
void | set_position (const vec2 &aPosition) |
void | set_position (const point &aPosition) |
void | set_extents (const vec2 &aExtents) |
void | set_extents (const size &aExtents) |
![]() | |
virtual | ~i_game_object () |
virtual const object_type & | type () const |
typedef boost::optional<animation_info> neogfx::shape::optional_animation_info |
neogfx::shape::shape | ( | ) |
neogfx::shape::shape | ( | const colour & | aColour | ) |
neogfx::shape::shape | ( | const i_texture & | aTexture, |
const optional_animation_info & | aAnimationInfo = optional_animation_info() |
||
) |
neogfx::shape::shape | ( | const i_image & | aImage, |
const optional_animation_info & | aAnimationInfo = optional_animation_info() |
||
) |
neogfx::shape::shape | ( | const i_texture & | aTexture, |
const rect & | aTextureRect, | ||
const optional_animation_info & | aAnimationInfo = optional_animation_info() |
||
) |
neogfx::shape::shape | ( | const i_image & | aImage, |
const rect & | aTextureRect, | ||
const optional_animation_info & | aAnimationInfo = optional_animation_info() |
||
) |
neogfx::shape::shape | ( | i_shape_container & | aContainer | ) |
neogfx::shape::shape | ( | i_shape_container & | aContainer, |
const colour & | aColour | ||
) |
neogfx::shape::shape | ( | i_shape_container & | aContainer, |
const i_texture & | aTexture, | ||
const optional_animation_info & | aAnimationInfo = optional_animation_info() |
||
) |
neogfx::shape::shape | ( | i_shape_container & | aContainer, |
const i_image & | aImage, | ||
const optional_animation_info & | aAnimationInfo = optional_animation_info() |
||
) |
neogfx::shape::shape | ( | i_shape_container & | aContainer, |
const i_texture & | aTexture, | ||
const rect & | aTextureRect, | ||
const optional_animation_info & | aAnimationInfo = optional_animation_info() |
||
) |
neogfx::shape::shape | ( | i_shape_container & | aContainer, |
const i_image & | aImage, | ||
const rect & | aTextureRect, | ||
const optional_animation_info & | aAnimationInfo = optional_animation_info() |
||
) |
neogfx::shape::shape | ( | const shape & | aOther | ) |
|
overridevirtual |
Implements neogfx::i_mesh.
|
overridevirtual |
Implements neogfx::i_mesh.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_game_object.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_game_object.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_game_object.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_game_object.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_game_object.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_game_object.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_shape.
Reimplemented in neogfx::text.
|
overridevirtual |
Implements neogfx::i_game_object.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
virtual |
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
virtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
Reimplemented in neogfx::text.
|
overridevirtual |
Implements neogfx::i_mesh.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_game_object.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_game_object.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_shape.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_shape.
Reimplemented in neogfx::text.
|
overridevirtual |
Implements neogfx::i_shape.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_mesh.
|
overridevirtual |
Implements neogfx::i_shape.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_shape.
Reimplemented in neogfx::sprite.
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_mesh.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_mesh.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_mesh.
|
overridevirtual |
Implements neogfx::i_mesh.
Reimplemented in neogfx::sprite.
|
overridevirtual |
Implements neogfx::i_mesh.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_shape.
|
overridevirtual |
Implements neogfx::i_mesh.