← Back to team overview

leaningtech-dev team mailing list archive

[Question #525419]: Problems creating WebGl uniform from array

 

New question #525419 on Cheerp:
https://answers.launchpad.net/cheerp/+question/525419

Hi,
I have a vector that has a std::array as base class and have some problem with cheerp::MakeTypedArray

This code produce an error:
     mpGL->uniform4fv(muColor, cheerp::MakeTypedArray(mClrSrf.data()));

This code works fine:
    mpGL->uniform4f(muColor, mClrSrf[0],mClrSrf[1],mClrSrf[2],mClrSrf[3]);

Regards Johan

-- 
You received this question notification because your team Leaningtech
Team is an answer contact for Cheerp.