Skip to content

Instantly share code, notes, and snippets.

View Andrey2470T's full-sized avatar
🎯
Focusing

Andrey Andrey2470T

🎯
Focusing
  • Russia
View GitHub Profile
// Unfinished code of the future animation support for this type
v2f ll_corner_coords(0.0f, 0.0f);
v2f ur_corner_coords(1.0f, 1.0f);
if (params.animation.type != TAT_NONE)
{
core::dimension2du tex_size = mat.getTexture(0)->getSize();
v2u32 frame_size;
params.animation.determineParams(tex_size, nullptr, nullptr, &frame_size);