neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
ecs_helpers.hpp File Reference

Go to the source code of this file.

Classes

struct  neogfx::renderable_animation
 

Namespaces

namespace  neogfx
 

Functions

template<typename CoordinateType , logical_coordinate_system CoordinateSystem>
game::mesh const & neogfx::to_ecs_component (game::mesh &aResult, const basic_rect< CoordinateType, CoordinateSystem > &aRect, mesh_type aMeshType=mesh_type::Triangles, optional_mat44 const &aTransformation={}, uint32_t aOffset=0)
 
template<typename CoordinateType , logical_coordinate_system CoordinateSystem>
game::mesh const & neogfx::to_ecs_component (const basic_rect< CoordinateType, CoordinateSystem > &aRect, mesh_type aMeshType=mesh_type::Triangles, optional_mat44 const &aTransformation={}, uint32_t aOffset=0)
 
template<typename T , std::size_t D>
std::array< basic_vector< T, D >, 4 > neogfx::center_quad (const std::array< basic_vector< T, D >, 4 > &aQuad, basic_vector< T, D > &aCenteringTranslation)
 
game::mesh const & neogfx::to_ecs_component (game::mesh &aResult, const quad &aQuad, mesh_type aMeshType=mesh_type::Triangles, optional_mat44 const &aTransformation={}, uint32_t aOffset=0)
 
game::mesh const & neogfx::to_ecs_component (const quad &aQuad, mesh_type aMeshType=mesh_type::Triangles, optional_mat44 const &aTransformation={}, uint32_t aOffset=0)
 
game::mesh const & neogfx::to_ecs_component (game::mesh &aResult, const quad_2d &aQuad, mesh_type aMeshType=mesh_type::Triangles, optional_mat44 const &aTransformation={}, uint32_t aOffset=0)
 
game::mesh const & neogfx::to_ecs_component (const quad_2d &aQuad, mesh_type aMeshType=mesh_type::Triangles, optional_mat44 const &aTransformation={}, uint32_t aOffset=0)
 
game::mesh neogfx::to_ecs_component (const vertices &aVertices, mesh_type aSourceMeshType=mesh_type::TriangleFan, mesh_type aDestinationMeshType=mesh_type::Triangles)
 
game::color neogfx::to_ecs_component (const color &aColor)
 
game::gradient neogfx::to_ecs_component (const gradient &aGradient)
 
game::material neogfx::to_ecs_component (const text_color &aTextColor)
 
shader_effect neogfx::to_ecs_component (text_effect_type aEffectType)
 
game::material neogfx::to_ecs_component (const brush &aBrush)
 
std::optional< game::filterneogfx::to_ecs_component (blurring_algorithm aAlgorithm, scalar aParameter1, scalar aParameter2)
 
game::texture neogfx::to_ecs_component (const i_texture &aTexture)
 
game::texture neogfx::to_ecs_component (const i_texture &aTexture, const rect &aTextureRect)
 
game::texture neogfx::to_ecs_component (const i_image &aImage)
 
game::texture neogfx::to_ecs_component (const i_image &aImage, const rect &aTextureRect)
 
game::material neogfx::image_to_material (game::i_ecs &aEcs, std::string const &aName, const neogfx::image &aImage)
 
game::material neogfx::image_to_material (game::i_ecs &aEcs, std::string const &aName, std::string const &aImageResource)
 
game::animation neogfx::regular_sprite_sheet_to_animation (const vec2u32 &aSpriteSheetExtents, const vec2u32 &aCells, const vec2u32 &aCellIndexTopLeft, const vec2u32 &aCellIndexBottomRight, scalar aDefaultDuration=0.0)
 
game::animation neogfx::regular_sprite_sheet_to_animation (const vec2u32 &aSpriteSheetExtents, const vec2u32 &aCells, scalar aDefaultFrameDuration=0.0)
 
game::animation neogfx::regular_sprite_sheet_to_animation (const game::material &aSpriteSheet, const vec2u32 &aCells, const vec2u32 &aCellIndexTopLeft, const vec2u32 &aCellIndexBottomRight, scalar aDefaultFrameDuration=0.0)
 
game::animation neogfx::regular_sprite_sheet_to_animation (const game::material &aSpriteSheet, const vec2u32 &aCells, scalar aDefaultFrameDuration=0.0)
 
renderable_animation neogfx::regular_sprite_sheet_to_renderable_animation (game::i_ecs &aEcs, std::string const &aName, const neogfx::image &aSpriteSheet, const vec2u32 &aCells, scalar aDefaultFrameDuration=0.0)
 
renderable_animation neogfx::regular_sprite_sheet_to_renderable_animation (game::i_ecs &aEcs, std::string const &aName, std::string const &aSpriteSheetResource, const vec2u32 &aCells, scalar aDefaultFrameDuration=0.0)
 
void neogfx::add_patch (game::mesh &aMesh, game::mesh_renderer &aMeshRenderer, const quad &aQuad, const neogfx::i_texture &aTexture, const mat33 &aTextureTransform=mat33::identity())
 
void neogfx::add_patch (game::mesh &aMesh, game::mesh_renderer &aMeshRenderer, const quad_2d &aQuad, const neogfx::i_texture &aTexture, const mat33 &aTextureTransform=mat33::identity())
 
void neogfx::add_patch (game::mesh &aMesh, game::mesh_renderer &aMeshRenderer, const rect &aRect, const neogfx::i_texture &aTexture, const mat33 &aTextureTransform=mat33::identity())