Euphoria
|
scalablesprite.cc
Go to the documentation of this file.
65 ScalableSprite::ScalableSprite
84 const auto parsed = files::scalingsprite::parse(log::get_global_logger(), &sprite, json.root, &json.doc);
132 const auto uv_next_col = uv_current_col + abs(columns[column_index]) / calculated_texture_size_columns;
Definition: angle.h:124
std::vector< T > perform_table_layout(const std::vector< T > &pieces, T total_size, T zero=0)
Calculates a table layout based on the input layout.
Definition: tablelayout.h:22
JsonResult read_json_file(FileSystem *fs, const FilePath &file_name)
Definition: json.cc:58
@ parse_error
Definition: button.h:15
static Rectf from_left_right_top_bottom(float left_side, float right_side, float top_side, float bottom_side)
Definition: rect.cc:47
Definition: vec2.h:137
Definition: vfs_path.h:36
FilePath set_extension_copy(const std::string &ext) const
Definition: vfs_path.cc:170
Definition: vfs.h:74
float calculated_texture_size_rows
Definition: scalablesprite.h:54
~ScalableSprite()
std::shared_ptr< Texture2 > texture
Definition: scalablesprite.h:48
void render(SpriteRenderer *renderer, const Rectf &rect, const Rgba &tint) const
Definition: scalablesprite.cc:111
float calculated_texture_size_columns
Definition: scalablesprite.h:53
size2f get_minimum_size() const
Definition: scalablesprite.cc:100
Definition: spriterender.h:35
void draw_rect(const Texture2 &texture, const Rectf &sprite_area, const Rectf &texture_region, const Angle &rotation_angle, const Scale2f &rotation_anchor, const Rgba &tint_color)
Definition: spriterender.cc:71
Definition: texturecache.h:18
Definition: size2.h:12
static size2f create_from_width_height(float w, float h)
Definition: size2.cc:15