Irrlicht Documentation question
Posted: Mon Sep 29, 2014 2:18 am
So, ive been able to modify the examples and get little things to work off of that but i have some questions. Keep in mind this is the first 3d engine that ive ever used, and im not really experienced with creating code from documented ..source? i think would be the right word. though i do have a well understanding of c++.
lets say for example i wanted to change the cursor in my application, well , the first place i would look is namespace list->gui where i can find the ICursorControl class. now i can see the virtual void irr::gui::ICursorControl::changeIcon function and it says "replace a cursor icon" i can look at the definition and see the enumeration paramaters for ECURSOR_ICON. but what i could not find is how do you know, when you need to use this to use getCursorControl
. the only reason i got it to work is because one of the examples had
so i modified it and did
and from the tutorials ive learned to know to add using namespace gui to get it working correctly. (or probably using gui:: before device would work to)
but how was i supposed to know to use getCursorControl to use it, under the setActiveIcon section of the member function Documentation i cant find any reasoning
telling me to use that with it. though maybe i just dont have enough experience with documentation to know how to just get anything "working". i wish i knew some free pdf's or lessons on understanding the logic behind using documentation or logical 3d engine use with c++ or something along the lines of that that would help me out other than more and more c++ tutorials. if anyone can help or knows of any references please share.
lets say for example i wanted to change the cursor in my application, well , the first place i would look is namespace list->gui where i can find the ICursorControl class. now i can see the virtual void irr::gui::ICursorControl::changeIcon function and it says "replace a cursor icon" i can look at the definition and see the enumeration paramaters for ECURSOR_ICON. but what i could not find is how do you know, when you need to use this to use getCursorControl
. the only reason i got it to work is because one of the examples had
Code: Select all
device->getCursorControl()->setVisible(true);
Code: Select all
device->getCursorControl()->setActiveIcon(ECI_CROSS);
but how was i supposed to know to use getCursorControl to use it, under the setActiveIcon section of the member function Documentation i cant find any reasoning
telling me to use that with it. though maybe i just dont have enough experience with documentation to know how to just get anything "working". i wish i knew some free pdf's or lessons on understanding the logic behind using documentation or logical 3d engine use with c++ or something along the lines of that that would help me out other than more and more c++ tutorials. if anyone can help or knows of any references please share.