![]() |
neoGFX
C++ GPU-oriented GUI library and app/game creation framework.
|
#include <i_shape.hpp>
Classes | |
| struct | bad_frame_index |
| struct | no_shape_container |
| struct | not_a_tag |
Public Types | |
| 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 | |
| virtual | ~i_shape () |
| virtual const i_shape_container & | container () const =0 |
| virtual i_shape_container & | container ()=0 |
| virtual bool | is_tag () const =0 |
| virtual i_shape & | tag_of () const =0 |
| virtual void | set_tag_of (i_shape &aTagOf, const vec3 &aOffset=vec3{})=0 |
| virtual const vec3 & | tag_offset () const =0 |
| virtual void | set_tag_offset (const vec3 &aOffset)=0 |
| virtual void | unset_tag_of ()=0 |
| virtual frame_index | frame_count () const =0 |
| virtual const i_shape_frame & | shape_frame (frame_index aFrameIndex) const =0 |
| virtual i_shape_frame & | shape_frame (frame_index aFrameIndex)=0 |
| virtual void | add_frame (i_shape_frame &aFrame)=0 |
| virtual void | add_frame (std::shared_ptr< i_shape_frame > aFrame)=0 |
| virtual void | replace_frame (frame_index aFrameIndex, i_shape_frame &aFrame)=0 |
| virtual void | replace_frame (frame_index aFrameIndex, std::shared_ptr< i_shape_frame > aFrame)=0 |
| virtual void | remove_frame (frame_index aFrameIndex)=0 |
| virtual const animation_frames & | animation () const =0 |
| virtual bool | repeat_animation () const =0 |
| virtual const animation_frame & | current_animation_frame () const =0 |
| virtual bool | has_animation_finished () const =0 |
| virtual void | animation_finished ()=0 |
| virtual frame_index | current_frame_index () const =0 |
| virtual const i_shape_frame & | current_frame () const =0 |
| virtual i_shape_frame & | current_frame ()=0 |
| virtual vec3 | origin () const =0 |
| virtual vec3 | position () const =0 |
| virtual vec3 | extents () const =0 |
| virtual rect | bounding_box_2d (bool aWithPosition=true) const =0 |
| virtual void | set_animation (const animation_frames &aAnimation)=0 |
| virtual void | set_current_frame (frame_index aFrameIndex)=0 |
| virtual void | set_origin (const vec3 &aOrigin)=0 |
| virtual void | set_position (const vec3 &aPosition)=0 |
| virtual void | clear_extents ()=0 |
| virtual void | set_extents (const vec3 &aExtents)=0 |
| virtual bool | has_transformation_matrix () const =0 |
| virtual void | clear_transformation_matrix ()=0 |
| virtual void | set_transformation_matrix (const mat33 &aTransformationMatrix)=0 |
| virtual void | set_transformation_matrix (const mat44 &aTransformationMatrix)=0 |
| virtual bool | update (time_interval aNow)=0 |
| virtual void | paint (graphics_context &aGraphicsContext) const =0 |
| 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) |
Public Member Functions inherited from neogfx::i_game_object | |
| virtual | ~i_game_object () |
| virtual object_category | category () const =0 |
| virtual const i_shape & | as_shape () const =0 |
| virtual i_shape & | as_shape ()=0 |
| virtual const i_collidable_object & | as_collidable_object () const =0 |
| virtual i_collidable_object & | as_collidable_object ()=0 |
| virtual const i_physical_object & | as_physical_object () const =0 |
| virtual i_physical_object & | as_physical_object ()=0 |
| virtual const object_type & | type () const |
| virtual bool | killed () const =0 |
| virtual void | kill ()=0 |
Public Member Functions inherited from neogfx::i_mesh | |
| virtual vertex_list_pointer | vertices () const =0 |
| virtual texture_list_pointer | textures () const =0 |
| virtual face_list | faces () const =0 |
| virtual face_list | active_faces () const =0 |
| virtual void | activate_faces (face_list aActiveFaces) const =0 |
| virtual mat44 | transformation_matrix () const =0 |
| virtual const vertex_list & | transformed_vertices () const =0 |
| virtual void | set_vertices (vertex_list_pointer aVertices)=0 |
| virtual void | set_textures (texture_list_pointer aTextures)=0 |
| virtual void | set_faces (face_list aFaces)=0 |
Definition at line 58 of file i_shape.hpp.
| typedef std::pair<frame_index, time_interval> neogfx::i_shape::animation_frame |
Definition at line 64 of file i_shape.hpp.
| typedef std::vector<animation_frame> neogfx::i_shape::animation_frames |
Definition at line 65 of file i_shape.hpp.
| typedef std::size_t neogfx::i_shape::frame_index |
Definition at line 62 of file i_shape.hpp.
| typedef boost::optional<time_interval> neogfx::i_shape::optional_time_interval |
Definition at line 66 of file i_shape.hpp.
| typedef scalar neogfx::i_shape::time_interval |
Definition at line 63 of file i_shape.hpp.
|
inlinevirtual |
Definition at line 74 of file i_shape.hpp.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape, and neogfx::sprite.
|
pure virtual |
Implemented in neogfx::shape, and neogfx::text.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape, and neogfx::text.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape, neogfx::sprite, and neogfx::i_sprite.
|
pure virtual |
Implemented in neogfx::shape, and neogfx::text.
|
pure virtual |
Implemented in neogfx::shape, neogfx::sprite, and neogfx::i_sprite.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
inline |
Definition at line 143 of file i_shape.hpp.
|
inline |
Definition at line 147 of file i_shape.hpp.
|
pure virtual |
Implemented in neogfx::shape, neogfx::sprite, and neogfx::i_sprite.
|
inline |
Definition at line 127 of file i_shape.hpp.
|
inline |
Definition at line 131 of file i_shape.hpp.
|
pure virtual |
Implemented in neogfx::shape, neogfx::sprite, and neogfx::i_sprite.
|
inline |
Definition at line 135 of file i_shape.hpp.
|
inline |
Definition at line 139 of file i_shape.hpp.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.
|
pure virtual |
Implemented in neogfx::shape.