Missing SetScissor(float[]) GetScissor(float[])

Monkey Forums/Monkey Bug Reports/Missing SetScissor(float[]) GetScissor(float[])

Skn3(Posted 2013) [#1]
Sorry I should have modified the previous thread:
http://monkeycoder.co.nz/Community/posts.php?topic=4423
Please could an admin delete it?

The following function overloads are missing:
SetScissor:Void(float[4])
SetScissor:Void(int[4])
GetScissor:Void(float[4])
GetColor:Void(float[3])
GetColor:Void(int[3])
SetColor:Void(float[3])
SetColor:Void(int[3])

Maybe even these?:
Transform:Void(float[2])
Transform:Void(int[2])
Scale:Void(float[2])


marksibly(Posted 2013) [#2]
Hi,

I don't plan on adding all these, just as I wont also be adding 'int coord' versions of DrawImage/DrawLine etc. To do so would just introduce a ton of extra 'tmp array' creation for no real benefit.

In the case of multi value 'gets' though, I think having both an 'allocating' form (that returns an array) and a non-allocating form (that takes an array) is worth it.


Skn3(Posted 2013) [#3]
Sounds good to me :D