It is not critical but it is not that much time passed (2 weeks ago) after adding this commit, so maybe you decide to change something in close future.
1. We have inconsistency in naming:
a) setWidths() and getWidths() operates with "startEdgeWidth" and "endEdgeWidth" while setColor() and getColor() operates with "topColor" and " bottomColor" but indeed related to same terms;
b) i suggest to remove ending "s" in set/getWidths() OR add it to set/getColor();
2. get/set Height problems:
a) getHeight() is absent, but now we can call getSize().Height (since Height is the only field which we can be sure in);
b) setHeight() is absent, now if we need to set new height correctly, we should do next code:
Code: Select all
float s, e;
m_BillboardSceneNode->getWidths(s, e); // save widths
m_BillboardSceneNode->setSize(core::dimension2d<f32>(111, newHeightValue)); // "111" can be anyhting else
m_BillboardSceneNode->setWidths(s, e); // restore widths
4. Next one am not sure in, but want to report.
When i get 07.Collision example and test different width, i set "topWidth" to 20, "Height" to 20 and "bottomWidth" to 4 i am getting next result:
a) as you see kind of mix-up here (what is top and what is bottom; i checked OpenGL and DirectX, both have same result);
b) not sure, something wrong with texture coords, because billboard looks skewed (but it should look like trapezoid);
Thank you.
And sorry for wall of text above, i swear i tried to be short