Griffin Premium
programlama, anticheat, imgui, argb, float4, imgui color

Merhaba Arkadaşlar, Bu kod D3DCOLOR_ARGB'den Chams gibi veya başka şeyler için kullanılır.
Ana kod:
Float4'ten D3DCOLOR_ARGB'a dönüştürme işlevi:
Kullanımı:
Merhaba Arkadaşlar, Bu kod D3DCOLOR_ARGB'den Chams gibi veya başka şeyler için kullanılır.
C++:
float Chams[]={0.45f, 0.55f, 0.60f, 1.00f};
Ana kod:
C++:
ImGui::ColorEdit3(("Chams"), Chams);
Float4'ten D3DCOLOR_ARGB'a dönüştürme işlevi:
C++:
D3DCOLOR FLOAT4TOD3DCOLOR(float Col[])
{
ImU32 col32_no_alpha=ImGui::ColorConvertFloat4ToU32 (ImVec4(Col[0], Col[1], Col[2], Col[3]));
float a = (col32_no_alpha >> 24) & 255;
float r = (col32_no_alpha >> 16) & 255;
float g = (col32_no_alpha >> 8) & 255;
float b = col32_no_alpha & 255;
return D3DCOLOR_ARGB((int)a,(int)b,(int)g,(int)r);
}
Kullanımı:
C++:
GenerateTexture(pDevice, &color , FLOAT4TOD3DCOLOR(Chams));