Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: MuEMU Dynamic user RankTitle  (Visto 5174 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline manfromvn #20 Posteado: December 17, 2020, 11:01:36 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 82
  • Gracias recibida: 29
  • vn
An effective way,Never modified

Code: [Select]
teximage tex;
tex.image = tex_atlas;//
tex.x = 0; tex.y = 0; tex.width = 1024; tex.height = 256;//Suppose your picture is 1024*256
tex.u1 = 0; tex.v1 = 0; tex.u2 = 1; tex.v2 = 1;

std::vector<teximage> mov;
tex.split(mov, 4, 2, 6);//Cutting,across 4 , vertical 2 , total 6
ok ,Then for(...)dyeing mov this array


Code: [Select]
draw_image(teximage&tex, int x, int y, int width ,int height)
{
  draw_image(tex.image,//
     x, y, width, height, //
    tex.u1, tex.v1, tex.u2, tex.v2);//
}



How to use this code? could you give example? thanks


Offline onlinezajzaj #21 Posteado: December 18, 2020, 06:00:17 AM

  • MAESTRO

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 689
  • Gracias recibida: 17961
  • vn
An effective way,Never modified

Code: [Select]
teximage tex;
tex.image = tex_atlas;//
tex.x = 0; tex.y = 0; tex.width = 1024; tex.height = 256;//Suppose your picture is 1024*256
tex.u1 = 0; tex.v1 = 0; tex.u2 = 1; tex.v2 = 1;

std::vector<teximage> mov;
tex.split(mov, 4, 2, 6);//Cutting,across 4 , vertical 2 , total 6
ok ,Then for(...)dyeing mov this array


Code: [Select]
draw_image(teximage&tex, int x, int y, int width ,int height)
{
  draw_image(tex.image,//
     x, y, width, height, //
    tex.u1, tex.v1, tex.u2, tex.v2);//
}



How to use this code? could you give example? thanks

Đéo có ví dụ đâu

Chuyên cung cấp Server MU -  Dạy dev MU online - Giá rẻ.
TEACHER MU ONLINE VIỆT NAM / TRAO ĐỔI KINH NGHIỆM MU ONLINE TOP 1 tại VIỆT NAM
WhatApps/Zalo : +886983042918 - ONLINEZAJZAJ : https://zalo.me/caongochavt
https://www.paypal.me/teacherzajzaj

Offline khyle650 #22 Posteado: June 02, 2021, 12:22:23 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 103
  • Gracias recibida: 2220
  • es
No sé si estas imágenes son adecuadas para ti, pero si te funcionan, dímelo, tengo muchas.  comiendo


https://mega.nz/file/nhgwSCKY#aKiT4ekooQkSzamVBLZWEppOb6sXOVdIjUc7YPo0oL4

Alguien tiene mas efectos como estos? Que me pueda compartir.

Saludos.


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
4 Replies
1509 Views
Last post December 14, 2017, 08:41:29 AM
by caron22
2 Replies
1171 Views
Last post February 18, 2018, 09:06:17 AM
by segovia
6 Replies
2295 Views
Last post October 17, 2018, 10:16:22 AM
by GX_KYO
3 Replies
1213 Views
Last post March 04, 2020, 09:54:08 PM
by bimaloha
0 Replies
242 Views
Last post April 12, 2022, 11:13:27 AM
by omarsergio