Jump to content

make Unigine::Variable support ivec2 and vec2


photo

Recommended Posts

now Unigine::Variable has support for all vec type except the ivec2 and vec2. and I can't figure out why it don't support ivec2 and vec2 type.

 

Have this ivec2 and vec2 type supported in engine could also benefit to some ui functions, like getPositionX/getPositionY functions, if Variable support ivec2 then we can just use getPosition to get the widget position in one line.

Link to comment
  • 3 weeks later...

Unigine script hasn't support vec2/ivec2/dvec2 types. Because of that Unigine::Variable hasn't have such support also.

 

 

why engine don't support these data types? vec2/ivec2/dvec2 is also useful.

Link to comment

Just as a side note: as Unigine::Variable always allocates memory for biggest supported data type (in a way comparable to union in C++) there also would be no advantage memory-wise to introduce 2-component data types.  

Link to comment
  • 1 year later...

Hello,

 

sorry for reviving a zombie thread :-)

I want to use the Mesh::getTexCoord0() Unigine script function and got an error message ' unknown token "vec2" '

Is vec2 support still not implemented? Or did I forget to include a certain header file?

Or is the documentation of the Mesh class incorrect?

 

Cheers

 Helmut

Link to comment
×
×
  • Create New...